unixodbc-gui-qt-2.3.0/0000755000175000001440000000000011506076450011534 500000000000000unixodbc-gui-qt-2.3.0/README.build0000644000175000001440000000367711506076311013443 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ BUILD --------------------------------------------------------------- The sources are usually built using GNU auto-tools but can be built using qmake. The qmake method may be of particular interest to those on MS platforms. Those interested in the qmake method should read README.qmake - the following is for those interested in the GNU auto-tools method. Requirements ------------ These are notable requirements for building the source; - C++ development environment - GNU auto-tools such as autoconf - unixODBC-Core v2.3 - unixODBC-Dev v2.3 - Qt v4 - Qt dev v4 - Qt doc v4 NOTE: iODBC may not work because it lacks (at the this time) support for the UI plugin mechanism. Build ----- $ cd unixODBC-GUI-Qt- $ make -f Makefile.svn $ ./configure [options] $ make $ sudo make install NOTE: Experienced developers will recognize that we always start by creating the 'configure' script (with the 'make -f Makefile.svn') step. This may be reduced to svn only situations in the future. Documentation ------------- The documentation is not automatically built or installed during the build process. The following can be done to do this (using SuSE as example); $ sudo mkdir /usr/src/doc/unixODBC-GUI-Qt $ sudo cp -r doc /usr/src/doc/unixODBC-GUI-Qt $ cd /usr/src/doc/unixODBC-GUI-Qt/doc/External $ sudo qcollectiongenerator CollectionQ4.qhcp -o CollectionQ4.qhc $ assistant -collectionFile CollectionQ4.qhc -register Project.qch The documentation can be viewed by; $ assistant -collectionFile \ /usr/src/doc/unixODBC-GUI-Qt/doc/External \ CollectionQ4.qhc NOTE: The documentation may be automatically built/installed in the future. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/INSTALL0000644000175000001440000000304511506076311012503 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ INSTALL --------------------------------------------------------------- Installation should be done using one of the following methods (in order of preference); 1 - binary via operating system installer (ie RPM) 2 - source via operating system installer (ie RPM) 3 - source via 'tar-ball' 4 - source via sourceforge repository NOTE: Building from source will require a complete development environment. Binary via RPM -------------- RPM is a popular software package managment system for Linux. It is used by; SuSE, RedHat and others. This install method is the easiest and safest. Some operating systems use a similar method to RPM. See the documentation for your operating system for details. Source via RPM -------------- The source RPM (SRPM) can be installed. The sources can then be built in the usual way. SRPM's on SuSE (for example) will usually get installed into /usr/src/packages/SOURCES and will simply produce a source 'tar-ball'. See "Source via 'tar-ball'" for more. Source via 'tar-ball' --------------------- The source 'tar-ball' can be built in the usual way. Unpackage the files using; tar zxvf unixODBC-GUI-Qt-.tar.gz Now follow the instructions in README.build file. Source via SourceForge Repository --------------------------------- See README.svn --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/config.guess0000755000175000001440000012761511430301060013770 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: unixodbc-gui-qt-2.3.0/config.sub0000755000175000001440000010316711430301060013427 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 # Free Software Foundation, Inc. timestamp='2009-11-20' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: unixodbc-gui-qt-2.3.0/ODBCCreateDataSourceQ4/0000755000175000001440000000000011506076451015550 500000000000000unixodbc-gui-qt-2.3.0/ODBCCreateDataSourceQ4/Makefile.am0000644000175000001440000000053411506076311017521 00000000000000bin_PROGRAMS = ODBCCreateDataSourceQ4 INCLUDES = $(QT_CXXFLAGS) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"@libdir@\" $(LTDLINCL) ODBCCreateDataSourceQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ -lodbc -lodbcinst ODBCCreateDataSourceQ4_DEPENDANCIES = ../odbcinstQ4/libodbcinstQ4.la ODBCCreateDataSourceQ4_SOURCES = \ main.cpp unixodbc-gui-qt-2.3.0/ODBCCreateDataSourceQ4/Makefile.in0000644000175000001440000004160211506076376017546 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ODBCCreateDataSourceQ4$(EXEEXT) subdir = ODBCCreateDataSourceQ4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ODBCCreateDataSourceQ4_OBJECTS = main.$(OBJEXT) ODBCCreateDataSourceQ4_OBJECTS = $(am_ODBCCreateDataSourceQ4_OBJECTS) am__DEPENDENCIES_1 = ODBCCreateDataSourceQ4_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(ODBCCreateDataSourceQ4_SOURCES) DIST_SOURCES = $(ODBCCreateDataSourceQ4_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(QT_CXXFLAGS) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"@libdir@\" $(LTDLINCL) ODBCCreateDataSourceQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ -lodbc -lodbcinst ODBCCreateDataSourceQ4_DEPENDANCIES = ../odbcinstQ4/libodbcinstQ4.la ODBCCreateDataSourceQ4_SOURCES = \ main.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ODBCCreateDataSourceQ4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ODBCCreateDataSourceQ4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ODBCCreateDataSourceQ4$(EXEEXT): $(ODBCCreateDataSourceQ4_OBJECTS) $(ODBCCreateDataSourceQ4_DEPENDENCIES) @rm -f ODBCCreateDataSourceQ4$(EXEEXT) $(CXXLINK) $(ODBCCreateDataSourceQ4_OBJECTS) $(ODBCCreateDataSourceQ4_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/ODBCCreateDataSourceQ4/main.cpp0000644000175000001440000000457111506076311017122 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include #include /*! * \brief Invokes a UI to walk caller through creating a new Data Source Name. * * This wraps SQLCreateDataSource to get a simple executable. We are a * Qt4 based app so we explicitly request the Qt4 based UI ("odbcinstQ4"). * * This app can be complimented with other apps which use a different * toolkit (ie GTK). Presumably those other apps will also use a file name * for the executable which follows a similar convention as this.. * * \li ODBCCreateDataSource * * We can then designate a default, to assist desktop environment developers, * using a symlink in the file system. * * \todo Accept a DSN on the command-line. * * \param argc * \param argv * * \return int * \retval 0 Success * \retval 1 Error */ int main( int argc, char **argv ) { // init a Qt application... QApplication oApplication( argc, argv ); QCoreApplication::setOrganizationName("unixODBC-GUI-Qt"); QCoreApplication::setOrganizationDomain("unixodbc-gui-qt.sourceforge.net"); QCoreApplication::setApplicationName("ODBC Create Data Source"); // specify Qt4 UI plugin explicitly... ODBCINSTWND odbcinstwnd; strcpy( odbcinstwnd.szUI, "odbcinstQ4" ); odbcinstwnd.hWnd = qApp->desktop(); // call odbcinst library (which will map to odbcinstQ4 UI plugin)... if ( SQLCreateDataSource( (HWND)(&odbcinstwnd), NULL ) == TRUE ) return 0; // oops - report any errors we can dig up... for ( WORD nError = 1; nError < 10; nError++ ) { DWORD nErrorCode; char szErrorMsg[SQL_MAX_MESSAGE_LENGTH]; RETCODE nRetCode = SQLInstallerError( nError, &nErrorCode, szErrorMsg, SQL_MAX_MESSAGE_LENGTH, NULL ); if ( !SQL_SUCCEEDED( nRetCode ) ) { QMessageBox::critical( 0, QObject::tr( "ODBC Create Data Source" ), QObject::tr( "failed: no more errors to report" ) ); break; } QMessageBox::critical( 0, QObject::tr( "ODBC Create Data Source" ), szErrorMsg ); } // exit with error return 1; } unixodbc-gui-qt-2.3.0/ChangeLog0000644000175000001440000000012011506076311013213 0000000000000023.02.2010 2.3.0-1 * Made the unixODBC Qt bits build in thier own project. unixodbc-gui-qt-2.3.0/ODBCTestQ4/0000755000175000001440000000000011506076452013312 500000000000000unixodbc-gui-qt-2.3.0/ODBCTestQ4/stmt.cpp0000644000175000001440000017522311506076311014731 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "stmt.h" #include "OdbcTest.h" static attr_value io_type_option[] = { { "SQL_PARAM_INPUT", SQL_PARAM_INPUT, "2.0", 0 }, { "SQL_PARAM_INPUT_OUTPUT", SQL_PARAM_INPUT_OUTPUT, "2.0", 0 }, { "SQL_PARAM_INPUT", SQL_PARAM_OUTPUT, "2.0", 0 }, { NULL, 0, NULL, 0 } }; static attr_value value_type_option[] = { { "SQL_C_CHAR", SQL_C_CHAR, "1.0", 0 }, { "SQL_C_BINARY", SQL_C_BINARY, "1.0", 0 }, { "SQL_C_BIT", SQL_C_BIT, "1.0", 0 }, { "SQL_C_BOOKMARK", SQL_C_BOOKMARK, "2.0", 0 }, { "SQL_C_DATE", SQL_C_DATE, "1.0", 0 }, { "SQL_C_DOUBLE", SQL_C_DOUBLE, "1.0", 0 }, { "SQL_C_FLOAT", SQL_C_FLOAT, "1.0", 0 }, { "SQL_C_GUID", SQL_C_GUID, "1.0", 0 }, { "SQL_C_INTERVAL_DAY", SQL_C_INTERVAL_DAY, "3.0", 0 }, { "SQL_C_INTERVAL_DAY_TO_HOUR", SQL_C_INTERVAL_DAY_TO_HOUR, "3.0", 0 }, { "SQL_C_INTERVAL_DAY_TO_MINUTE", SQL_C_INTERVAL_DAY_TO_MINUTE, "3.0", 0 }, { "SQL_C_INTERVAL_DAY_TO_SECOND", SQL_C_INTERVAL_DAY_TO_SECOND, "3.0", 0 }, { "SQL_C_INTERVAL_HOUR", SQL_C_INTERVAL_HOUR, "3.0", 0 }, { "SQL_C_INTERVAL_HOUR_TO_MINUTE", SQL_C_INTERVAL_HOUR_TO_MINUTE, "3.0", 0 }, { "SQL_C_INTERVAL_HOUR_TO_SECOND", SQL_C_INTERVAL_HOUR_TO_SECOND, "3.0", 0 }, { "SQL_C_INTERVAL_MINUTE", SQL_C_INTERVAL_MINUTE, "3.0", 0 }, { "SQL_C_INTERVAL_MINUTE_TO_SECOND", SQL_C_INTERVAL_MINUTE_TO_SECOND, "3.0", 0 }, { "SQL_C_INTERVAL_SECOND", SQL_C_INTERVAL_SECOND, "3.0", 0 }, { "SQL_C_INTERVAL_YEAR", SQL_C_INTERVAL_YEAR, "3.0", 0 }, { "SQL_C_INTERVAL_MONTH", SQL_C_INTERVAL_MONTH, "3.0", 0 }, { "SQL_C_INTERVAL_YEAR_TO_MONTH", SQL_C_INTERVAL_YEAR_TO_MONTH, "3.0", 0 }, { "SQL_C_LONG", SQL_C_LONG, "2.0", 0 }, { "SQL_C_NUMERIC", SQL_C_NUMERIC, "3.0", 0 }, { "SQL_C_SBIGINT", SQL_C_SBIGINT, "3.0", 0 }, { "SQL_C_SLONG", SQL_C_SLONG, "2.0", 0 }, { "SQL_C_SHORT", SQL_C_SHORT, "2.0", 0 }, { "SQL_C_SSHORT", SQL_C_SSHORT, "2.0", 0 }, { "SQL_C_STINYINT", SQL_C_STINYINT, "2.0", 0 }, { "SQL_C_TIME", SQL_C_TIME, "1.0", 0 }, { "SQL_C_TIMESTAMP", SQL_C_TIMESTAMP, "1.0", 0 }, { "SQL_C_TINYINT", SQL_C_TINYINT, "1.0", 0 }, { "SQL_C_TYPE_DATE", SQL_C_TYPE_DATE, "3.0", 0 }, { "SQL_C_TYPE_TIME", SQL_C_TYPE_TIME, "3.0", 0 }, { "SQL_C_TYPE_TIMESTAMP", SQL_C_TYPE_TIMESTAMP, "3.0", 0 }, { "SQL_C_UBIGINT", SQL_C_UBIGINT, "2.0", 0 }, { "SQL_C_USHORT", SQL_C_USHORT, "2.0", 0 }, { "SQL_C_UTINYINT", SQL_C_UTINYINT, "2.0", 0 }, { "SQL_C_VARBOOKMARK", SQL_C_VARBOOKMARK, "3.0", 0 }, { "SQL_C_WCHAR", SQL_C_WCHAR, "3.0", 0 }, { "SQL_ARD_TYPE", SQL_ARD_TYPE, "3.0", 0 }, { "SQL_C_DEFAULT", SQL_C_DEFAULT, "1.0", 0 }, { NULL, 0, NULL, 0 } }; static attr_value param_type_option[] = { { "SQL_CHAR", SQL_CHAR, "1.0", 0 }, { "SQL_BIGINT", SQL_BIGINT, "1.0", 0 }, { "SQL_BINARY", SQL_BINARY, "1.0", 0 }, { "SQL_BIT", SQL_BIT, "1.0", 0 }, { "SQL_DATE", SQL_DATE, "1.0", 0 }, { "SQL_DECIMAL", SQL_DECIMAL, "1.0", 0 }, { "SQL_DEFAULT", SQL_DECIMAL, "3.0", 0 }, { "SQL_DOUBLE", SQL_DOUBLE, "1.0", 0 }, { "SQL_FLOAT", SQL_FLOAT, "1.0", 0 }, { "SQL_GUID", SQL_GUID, "1.0", 0 }, { "SQL_INTEGER", SQL_INTEGER, "1.0", 0 }, { "SQL_INTERVAL_DAY", SQL_INTERVAL_DAY, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_HOUR", SQL_INTERVAL_DAY_TO_HOUR, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_MINUTE", SQL_INTERVAL_DAY_TO_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_SECOND", SQL_INTERVAL_DAY_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_HOUR", SQL_INTERVAL_HOUR, "3.0", 0 }, { "SQL_INTERVAL_HOUR_TO_MINUTE", SQL_INTERVAL_HOUR_TO_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_HOUR_TO_SECOND", SQL_INTERVAL_HOUR_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_MINUTE", SQL_INTERVAL_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_MINUTE_TO_SECOND", SQL_INTERVAL_MINUTE_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_SECOND", SQL_INTERVAL_SECOND, "3.0", 0 }, { "SQL_INTERVAL_YEAR", SQL_INTERVAL_YEAR, "3.0", 0 }, { "SQL_INTERVAL_MONTH", SQL_INTERVAL_MONTH, "3.0", 0 }, { "SQL_INTERVAL_YEAR_TO_MONTH", SQL_INTERVAL_YEAR_TO_MONTH, "3.0", 0 }, { "SQL_LONGVARCHAR", SQL_LONGVARCHAR, "1.0", 0 }, { "SQL_LONGVARBINARY", SQL_LONGVARBINARY, "1.0", 0 }, { "SQL_NUMERIC", SQL_NUMERIC, "1.0", 0 }, { "SQL_REAL", SQL_REAL, "1.0", 0 }, { "SQL_SMALLINT", SQL_SMALLINT, "1.0", 0 }, { "SQL_TINYINT", SQL_TINYINT, "1.0", 0 }, { "SQL_TIME", SQL_TIME, "1.0", 0 }, { "SQL_TIMESTAMP", SQL_TIMESTAMP, "1.0", 0 }, { "SQL_TYPE_DATE", SQL_TYPE_DATE, "3.0", 0 }, { "SQL_TYPE_TIME", SQL_TYPE_TIME, "3.0", 0 }, { "SQL_TYPE_TIMESTAMP", SQL_TYPE_TIMESTAMP, "3.0", 0 }, { "SQL_VARBINARY", SQL_VARBINARY, "1.0", 0 }, { "SQL_VARCHAR", SQL_VARCHAR, "1.0", 0 }, { "SQL_WCHAR", SQL_WCHAR, "3.0", 0 }, { "SQL_WLONGVARCHAR", SQL_WLONGVARCHAR, "3.0", 0 }, { "SQL_WVARCHAR", SQL_WVARCHAR, "3.0", 0 }, { NULL, 0, NULL, 0 } }; static attr_value free_stmt_option[] = { { "SQL_CLOSE", SQL_CLOSE, NULL, 0 }, { "SQL_DROP", SQL_DROP, NULL, 0 }, { "SQL_UNBIND", SQL_UNBIND, NULL, 0 }, { "SQL_RESET_PARAMS", SQL_RESET_PARAMS, NULL, 0 }, { NULL, 0, NULL, 0 } }; static attr_value sql_data_types[] = { { "SQL_CHAR", SQL_CHAR, "1.0", 0 }, { "SQL_VARCHAR", SQL_VARCHAR, "1.0", 0 }, { "SQL_LONGVARCHAR", SQL_LONGVARCHAR, "1.0", 0 }, { "SQL_BINARY", SQL_BINARY, "1.0", 0 }, { "SQL_VARBINARY", SQL_VARBINARY, "1.0", 0 }, { "SQL_LONGVARBINARY", SQL_LONGVARBINARY, "1.0", 0 }, { "SQL_TINYINT", SQL_TINYINT, "1.0", 0 }, { "SQL_SMALLINT", SQL_SMALLINT, "1.0", 0 }, { "SQL_INTEGER", SQL_INTEGER, "1.0", 0 }, { "SQL_BIGINT", SQL_BIGINT, "1.0", 0 }, { "SQL_FLOAT", SQL_FLOAT, "1.0", 0 }, { "SQL_DOUBLE", SQL_DOUBLE, "1.0", 0 }, { "SQL_REAL", SQL_REAL, "1.0", 0 }, { "SQL_NUMERIC", SQL_NUMERIC, "1.0", 0 }, { "SQL_DATETIME", SQL_DATETIME, "1.0", 0 }, { "SQL_DATE", SQL_DATE, "1.0", 0 }, { "SQL_TIME", SQL_TIME, "1.0", 0 }, { "SQL_TIMESTAMP", SQL_TIMESTAMP, "1.0", 0 }, { "SQL_INTERVAL_DAY", SQL_INTERVAL_DAY, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_HOUR", SQL_INTERVAL_DAY_TO_HOUR, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_MINUTE", SQL_INTERVAL_DAY_TO_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_DAY_TO_SECOND", SQL_INTERVAL_DAY_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_HOUR", SQL_INTERVAL_HOUR, "3.0", 0 }, { "SQL_INTERVAL_HOUR_TO_MINUTE", SQL_INTERVAL_HOUR_TO_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_HOUR_TO_SECOND", SQL_INTERVAL_HOUR_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_MINUTE_TO_SECOND", SQL_INTERVAL_MINUTE_TO_SECOND, "3.0", 0 }, { "SQL_INTERVAL_MONTH", SQL_INTERVAL_MONTH, "3.0", 0 }, { "SQL_INTERVAL_MINUTE", SQL_INTERVAL_MINUTE, "3.0", 0 }, { "SQL_INTERVAL_SECOND", SQL_INTERVAL_SECOND, "3.0", 0 }, { "SQL_INTERVAL_YEAR", SQL_INTERVAL_YEAR, "3.0", 0 }, { "SQL_INTERVAL_YEAR_TO_MONTH", SQL_INTERVAL_YEAR_TO_MONTH, "3.0", 0 }, { "SQL_GUID", SQL_GUID, "3.0", 0 }, { NULL, 0, NULL, 0 } }; void dPrepare::Ok() { const char *sql, *lname; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLINTEGER n_len; if ( hand ) in_handle = hand->getHandle(); sql = str->currentText().toAscii().constData(); pOdbcTest->out_win->append( "SQLPrepare():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( sql, "" ) == 0 ) { sql = NULL; pOdbcTest->out_win->append( " Text: " ); } else if ( strcmp( sql, "" ) == 0 ) { sql = ""; pOdbcTest->out_win->append( " Text: " ); } else if ( strcmp( sql, "" ) == 0 ) { QString *s = new QString( pOdbcTest->in_win->toPlainText() ); if ( s->isEmpty()) sql = ""; else if ( s->isNull()) sql = NULL; else sql = s->toAscii().constData(); txt.sprintf( " Text: %s", sql ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Text: %s", sql ); pOdbcTest->out_win->append( txt ); } lname = name_len->currentText().toAscii().constData(); if ( strncmp( lname, "SQL_NTS", 7 ) == 0 ) { n_len = SQL_NTS; txt.sprintf( " Statement Len: SQL_NTS=-3" ); } else { n_len = atoi( lname ); txt.sprintf( " Statement Len: %d", n_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLPrepare( in_handle, (SQLCHAR*) sql, n_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dPrepare::dPrepare( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); str = new QComboBox( this ); str->setEditable( true ); str->setGeometry( 130, 80, 290, 20 ); str->insertItem( 0, "" ); str->insertItem( 1, "" ); str->insertItem( 2, "" ); name_len = new QComboBox( this ); name_len->setEditable( true ); name_len->setGeometry( 130, 110, 150, 20 ); l_name_len = new QLabel( "Statement Length:", this ); l_name_len->setGeometry( 10, 110, 110, 20 ); name_len->insertItem( 0, "SQL_NTS=-3" ); name_len->insertItem( 1, "0" ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); l_str = new QLabel( "SQL Text:", this ); l_str->setGeometry( 10, 80, 70, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dPrepare::~dPrepare() { delete ok; delete cancel; delete help; delete handles; delete str; delete l_handle; delete l_str; delete name_len; delete l_name_len; } void dExecute::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLExecute():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLExecute( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dExecute::dExecute( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 190, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dExecute::~dExecute() { delete ok; delete cancel; delete help; delete handles; delete l_handle; } void dExecDirect::Ok() { // handle... OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE hStatement = SQL_NULL_HANDLE; if ( hand ) hStatement = hand->getHandle(); pOdbcTest->out_win->append( "SQLExecDirect():" ); pOdbcTest->out_win->append( " In:" ); if ( hStatement ) pOdbcTest->out_win->append( QString( tr(" Statement Handle: %1") ).arg( (qlonglong)hStatement ) ); else pOdbcTest->out_win->append( " Statement Handle: SQL_NULL_HSTMT" ); // text... QString stringSQL = str->currentText(); const char *pszSQL = NULL; if ( stringSQL == "" || stringSQL.isNull() ) { pszSQL = NULL; pOdbcTest->out_win->append( " Text: " ); } else if ( stringSQL == "" || stringSQL.isEmpty() ) { pszSQL = ""; pOdbcTest->out_win->append( " Text: " ); } else { if ( stringSQL == "" ) stringSQL = pOdbcTest->in_win->toPlainText(); if ( stringSQL.isEmpty()) pszSQL = ""; else if ( stringSQL.isNull()) pszSQL = NULL; else pszSQL = stringSQL.toAscii().constData(); pOdbcTest->out_win->append( QString( tr(" Text: %1") ).arg( pszSQL ) ); } // length... QString stringLength = name_len->currentText().toAscii().constData(); SQLINTEGER nSQL = SQL_NTS; if ( stringLength.left( 7 ) == "SQL_NTS" ) { nSQL = SQL_NTS; pOdbcTest->out_win->append( tr(" Statement Len: SQL_NTS=-3") ); } else { nSQL = stringLength.toInt(); pOdbcTest->out_win->append( QString( tr(" Statement Len: %1") ).arg( nSQL ) ); } // do it... SQLRETURN nReturn = SQLExecDirect( hStatement, (SQLCHAR*)pszSQL, nSQL ); pOdbcTest->out_win->append( " Return:" ); pOdbcTest->out_win->append( QString( " %1=%2" ).arg( pOdbcTest->return_as_text( nReturn ) ).arg( nReturn ) ); pOdbcTest->out_win->append( "" ); } dExecDirect::dExecDirect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); str = new QComboBox( this ); str->setEditable( true ); str->setGeometry( 130, 80, 290, 20 ); str->insertItem( 0, "" ); str->insertItem( 1, "" ); str->insertItem( 2, "" ); name_len = new QComboBox( this ); name_len->setEditable( true ); name_len->setGeometry( 130, 110, 150, 20 ); l_name_len = new QLabel( "Statement Length:", this ); l_name_len->setGeometry( 10, 110, 110, 20 ); name_len->insertItem( 0, "SQL_NTS=-3" ); name_len->insertItem( 1, "0" ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); l_str = new QLabel( "SQL Text:", this ); l_str->setGeometry( 10, 80, 70, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dExecDirect::~dExecDirect() { delete ok; delete cancel; delete help; delete handles; delete str; delete l_handle; delete l_str; delete name_len; delete l_name_len; } void dNumParams::Valid() { if ( valid->isChecked() ) valid->setText( "ParamCountPtr: SQL_NULL_POINTER" ); else valid->setText( "ParamCountPtr: VALID" ); } void dNumParams::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT num_params; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLNumParam:" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( valid->isChecked() ) txt.sprintf( " ParamCountPtr: " ); else txt.sprintf( " ParamCountPtr: %p", &num_params ); pOdbcTest->out_win->append( txt ); num_params = -9999; SQLRETURN ret = SQLNumParams( in_handle, valid->isChecked() ? NULL : &num_params ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( num_params == -9999 ) { txt.sprintf( " *ParamCountPtr: " ); } else { txt.sprintf( " *ParamCountPtr: %d", num_params ); } pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dNumParams::dNumParams( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); valid = new QCheckBox( "ParamCountPtr: VALID", this ); valid->setGeometry( 10, 80, 300, 15 ); connect( valid, SIGNAL( clicked()), this, SLOT( Valid())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dNumParams::~dNumParams() { delete ok; delete cancel; delete help; delete handles; delete valid; } void dCancel::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLCancel():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLCancel( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dCancel::dCancel( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dCancel::~dCancel() { delete ok; delete cancel; delete help; delete handles; } void dCloseCursor::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLCloseCursor():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLCloseCursor( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dCloseCursor::dCloseCursor( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dCloseCursor::~dCloseCursor() { delete ok; delete cancel; delete help; delete handles; } void dGetCursorName::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT b_len; SQLCHAR *buf; SQLSMALLINT name_length, *name_length_ptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetCursorName():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( cursor_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = new SQLCHAR[ 300 ]; } else { buf = new SQLCHAR[ b_len ]; } if ( buf ) { txt.sprintf( " CursorName: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " CursorName: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); name_length = -9999; if ( name_valid->isChecked()) { name_length_ptr = NULL; } else { name_length_ptr = &name_length; } if ( name_length_ptr ) { txt.sprintf( " NameLengthPtr: %p", name_length_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " NameLengthPtr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetCursorName( in_handle, buf, b_len, name_length_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( buf ) { txt.sprintf( " *CursorName: \"%s\"", buf ); pOdbcTest->out_win->append( txt ); } if ( name_length == -9999 ) { txt.sprintf( " *NameLengthPtr: " ); } else { txt.sprintf( " *NameLengthPtr: %d", name_length ); } pOdbcTest->out_win->append( txt ); } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetCursorName::NameValid() { if ( name_valid->isChecked() ) name_valid->setText( "NameLengthPtr: SQL_NULL_POINTER" ); else name_valid->setText( "NameLengthPtr: VALID" ); } void dGetCursorName::CursorValid() { if ( cursor_valid->isChecked() ) cursor_valid->setText( "CursorName: SQL_NULL_POINTER" ); else cursor_valid->setText( "CursorName: VALID" ); } dGetCursorName::dGetCursorName( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); cursor_valid = new QCheckBox( "CursorName: VALID", this ); cursor_valid->setGeometry( 10, 80, 300, 15 ); name_valid = new QCheckBox( "NameLengthPtr: VALID", this ); name_valid->setGeometry( 10, 110, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 350, 80, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 270, 80, 60, 20 ); connect( cursor_valid, SIGNAL( clicked()), this, SLOT( CursorValid())); connect( name_valid, SIGNAL( clicked()), this, SLOT( NameValid())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dGetCursorName::~dGetCursorName() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete l_buffer_len; delete buffer_len; delete name_valid; delete cursor_valid; } void dFreeStmt::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLUSMALLINT option_val; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLFreeStmt():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = option->currentIndex(); option_val = free_stmt_option[ index ].value; txt.sprintf( " Option: %s=%d", free_stmt_option[ index ].text, free_stmt_option[ index ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLFreeStmt( in_handle, option_val ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && free_stmt_option[ index ].value == SQL_DROP ) { pOdbcTest->listHandle.removeAll( hand ); delete hand; } pOdbcTest->out_win->append( "" ); } dFreeStmt::dFreeStmt( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); option = new QComboBox( this ); option->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_list_box( free_stmt_option, option ); l_option = new QLabel( "Option:", this ); l_option->setGeometry( 10, 80, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dFreeStmt::~dFreeStmt() { delete ok; delete cancel; delete help; delete handles; delete option; delete l_handle; delete l_option; } void dSetCursorName::Ok() { const char *sql, *lname; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLINTEGER n_len; if ( hand ) in_handle = hand->getHandle(); sql = str->currentText().toAscii().constData(); pOdbcTest->out_win->append( "SQLSetCursorName():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( sql, "" ) == 0 ) { sql = NULL; pOdbcTest->out_win->append( " CursorName: " ); } else if ( strcmp( sql, "" ) == 0 ) { sql = ""; pOdbcTest->out_win->append( " CursorName: " ); } else if ( strcmp( sql, "" ) == 0 ) { QString *s = new QString( pOdbcTest->in_win->toPlainText() ); if ( s->isEmpty()) sql = ""; else if ( s->isNull()) sql = NULL; else sql = s->toAscii().constData(); txt.sprintf( " CursorName: %s", sql ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " CursorName: %s", sql ); pOdbcTest->out_win->append( txt ); } lname = name_len->currentText().toAscii().constData(); if ( strncmp( lname, "SQL_NTS", 7 ) == 0 ) { n_len = SQL_NTS; txt.sprintf( " Statement Len: SQL_NTS=-3" ); } else { n_len = atoi( lname ); txt.sprintf( " Statement Len: %d", n_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetCursorName( in_handle, (SQLCHAR*) sql, n_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSetCursorName::dSetCursorName( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); str = new QComboBox( this ); str->setEditable( true ); str->setGeometry( 130, 80, 290, 20 ); str->insertItem( 0, "" ); str->insertItem( 1, "" ); str->insertItem( 2, "" ); name_len = new QComboBox( this ); name_len->setGeometry( 130, 110, 150, 20 ); l_name_len = new QLabel( "CursorName Length:", this ); l_name_len->setGeometry( 10, 110, 110, 20 ); name_len->insertItem( 0, "SQL_NTS=-3" ); name_len->insertItem( 1, "0" ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); l_str = new QLabel( "SQL Text:", this ); l_str->setGeometry( 10, 80, 70, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dSetCursorName::~dSetCursorName() { delete ok; delete cancel; delete help; delete handles; delete str; delete l_handle; delete l_str; delete name_len; delete l_name_len; } const char *dDescribeParam::data_type_to_str( int type ) { struct attr_value *data_type = sql_data_types; while( TRUE ) { if ( !data_type->text ) break; if ( data_type->value == type ) break; data_type ++; }; if ( data_type->text ) return data_type->text; else return NULL; } void dDescribeParam::type_clkd() { if ( type_valid->isChecked() ) type_valid->setText( "DataTypePtr: SQL_NULL_PTR" ); else type_valid->setText( "DataTypePtr: VALID" ); } void dDescribeParam::size_clkd() { if ( size_valid->isChecked() ) size_valid->setText( "ParameterSizePtr: SQL_NULL_PTR" ); else size_valid->setText( "ParameterSizePtr: VALID" ); } void dDescribeParam::digit_clkd() { if ( digit_valid->isChecked() ) digit_valid->setText( "DecimalDigitsPtr: SQL_NULL_PTR" ); else digit_valid->setText( "DecimalDigitsPtr: VALID" ); } void dDescribeParam::null_clkd() { if ( null_valid->isChecked() ) null_valid->setText( "NullablePtr: SQL_NULL_PTR" ); else null_valid->setText( "NullablePtr: VALID" ); } void dDescribeParam::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLUSMALLINT parameter_number; SQLSMALLINT *data_type_ptr, data_type; SQLULEN *param_size_ptr, param_size; SQLSMALLINT *decimal_digits_ptr, decimal_digits; SQLSMALLINT *nullable_ptr, nullable; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLDescribeParam():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); parameter_number = param_num->text().toInt(); txt.sprintf( " Parameter Number: %d", parameter_number ); pOdbcTest->out_win->append( txt ); if ( type_valid->isChecked() ) { data_type_ptr = NULL; txt.sprintf( " DataTypePtr: " ); } else { data_type_ptr = &data_type; txt.sprintf( " DataTypePtr: %p", data_type_ptr ); } pOdbcTest->out_win->append( txt ); data_type = -9999; if ( size_valid->isChecked() ) { param_size_ptr = NULL; txt.sprintf( " ParameterSizePtr: " ); } else { param_size_ptr = ¶m_size; txt.sprintf( " ParameterSizePtr: %p", param_size_ptr ); } pOdbcTest->out_win->append( txt ); param_size = 9999; if ( digit_valid->isChecked() ) { decimal_digits_ptr = NULL; txt.sprintf( " DecimalDigitsPtr: " ); } else { decimal_digits_ptr = &decimal_digits; txt.sprintf( " DecimalDigitsPtr: %p", decimal_digits ); } pOdbcTest->out_win->append( txt ); decimal_digits = -9999; if ( null_valid->isChecked() ) { nullable_ptr = NULL; txt.sprintf( " NullablePtr: " ); } else { nullable_ptr = &nullable; txt.sprintf( " NullablePtr: %p", nullable_ptr ); } pOdbcTest->out_win->append( txt ); nullable = -9999; SQLRETURN ret = SQLDescribeParam( in_handle, parameter_number, data_type_ptr, param_size_ptr, decimal_digits_ptr, nullable_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret )) { if ( data_type_ptr ) { if ( data_type == -9999 ) { txt.sprintf( " *DataTypePtr: " ); } else { const char *str = data_type_to_str( data_type ); if ( str ) txt.sprintf( " *DataTypePtr: %s (%d)", str, data_type ); else txt.sprintf( " *DataTypePtr: %d", data_type ); } pOdbcTest->out_win->append( txt ); } if ( param_size_ptr ) { if ( param_size == 9999 ) { txt.sprintf( " *ParamSizePtr: " ); } else { txt.sprintf( " *ParamSizePtr: %d", param_size ); } pOdbcTest->out_win->append( txt ); } if ( decimal_digits_ptr ) { if ( decimal_digits == 9999 ) { txt.sprintf( " *DecimalDigitsPtr: " ); } else { txt.sprintf( " *DecimalDigits: %d", decimal_digits ); } pOdbcTest->out_win->append( txt ); } if ( nullable_ptr ) { if ( nullable == -9999 ) { txt.sprintf( " *NullablePtr: " ); } else { txt.sprintf( " *NullablePtr: %d", nullable ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dDescribeParam::dDescribeParam( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); param_num = new QLineEdit( this ); param_num->setGeometry( 130, 80, 70, 20 ); param_num->setMaxLength( 6 ); param_num->setText( "1" ); l_param_num = new QLabel( "ParameterNumber:", this ); l_param_num->setGeometry( 10, 80, 120, 20 ); type_valid = new QCheckBox( "DataTypePtr: VALID", this ); type_valid->setGeometry( 10, 110, 250, 15 ); size_valid = new QCheckBox( "ParameterSizePtr: VALID", this ); size_valid->setGeometry( 10, 140, 250, 15 ); digit_valid = new QCheckBox( "DecimalDigits Ptr: VALID", this ); digit_valid->setGeometry( 300, 110, 250, 15 ); null_valid = new QCheckBox( "NullablePtr: VALID", this ); null_valid->setGeometry( 300, 140, 250, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( type_valid, SIGNAL( clicked()), this, SLOT( type_clkd())); connect( size_valid, SIGNAL( clicked()), this, SLOT( size_clkd())); connect( digit_valid, SIGNAL( clicked()), this, SLOT( digit_clkd())); connect( null_valid, SIGNAL( clicked()), this, SLOT( null_clkd())); } dDescribeParam::~dDescribeParam() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete param_num; delete l_param_num; delete type_valid; delete size_valid; delete digit_valid; delete null_valid; } void dParamData::value_clkd() { if ( value_valid->isChecked() ) value_valid->setText( "ValuePtr: SQL_NULL_PTR" ); else value_valid->setText( "ValuePtr: VALID" ); } void dParamData::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLPOINTER *value_ptr, value; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLParamData():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( value_valid->isChecked() ) { value_ptr = NULL; txt.sprintf( " ValuePtr: " ); } else { value_ptr = &value; txt.sprintf( " ValuePtr: %p", value_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLParamData( in_handle, value_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret )) { if ( value_ptr ) { txt.sprintf( " *ValuePtr: %d", value ); pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dParamData::dParamData( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); value_valid = new QCheckBox( "ValuePtr: VALID", this ); value_valid->setGeometry( 10, 80, 250, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( value_valid, SIGNAL( clicked()), this, SLOT( value_clkd())); } dParamData::~dParamData() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete value_valid; } void dParamOption::pirow_clkd() { if ( pirow_valid->isChecked() ) pirow_valid->setText( "pirow: SQL_NULL_PTR" ); else pirow_valid->setText( "pirow: VALID" ); } void dParamOption::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLULEN *pirow_ptr, pirow; SQLUINTEGER crow; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLParamOptions():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); crow = crow_num->text().toInt(); txt.sprintf( " crow: %d", crow ); pOdbcTest->out_win->append( txt ); if ( pirow_valid->isChecked() ) { pirow_ptr = NULL; txt.sprintf( " pirow: " ); } else { pirow_ptr = &pirow; txt.sprintf( " pirow: %p", pirow_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLParamOptions( in_handle, crow, pirow_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); } dParamOption::dParamOption( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); crow_num = new QLineEdit( this ); crow_num->setGeometry( 130, 80, 70, 20 ); crow_num->setMaxLength( 6 ); crow_num->setText( "1" ); l_crow_num = new QLabel( "crow:", this ); l_crow_num->setGeometry( 10, 80, 120, 20 ); pirow_valid = new QCheckBox( "pirow: VALID", this ); pirow_valid->setGeometry( 10, 110, 250, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( pirow_valid, SIGNAL( clicked()), this, SLOT( pirow_clkd())); } dParamOption::~dParamOption() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete pirow_valid; delete crow_num; delete l_crow_num; } void dPutData::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLPOINTER data_ptr_var; SQLINTEGER strlen_or_len; const char *data_str, *strlen_or_len_str; if ( hand ) in_handle = hand->getHandle(); data_str = data_ptr->currentText().toAscii().constData(); pOdbcTest->out_win->append( "SQLPutData():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( data_str, "" ) == 0 ) { data_ptr_var = NULL; pOdbcTest->out_win->append( " DataPtr: " ); } else if ( strcmp( data_str, "" ) == 0 ) { data_ptr_var = (SQLPOINTER) ""; pOdbcTest->out_win->append( " DataPtr: " ); } else if ( strcmp( data_str, "" ) == 0 ) { QString *s = new QString( pOdbcTest->in_win->toPlainText() ); if ( s->isEmpty()) data_ptr_var = (SQLPOINTER)""; else if ( s->isNull()) data_ptr_var = NULL; else data_ptr_var = (SQLPOINTER) s->toAscii().constData(); txt.sprintf( " DataPtr: %s", data_ptr_var ); pOdbcTest->out_win->append( txt ); } else { data_ptr_var = ( SQLPOINTER ) data_str; txt.sprintf( " DataPtr: %s", data_ptr_var ); pOdbcTest->out_win->append( txt ); } strlen_or_len_str = str_len->currentText().toAscii().constData(); if ( strncmp( strlen_or_len_str, "SQL_NTS", 7 ) == 0 ) { strlen_or_len = SQL_NTS; txt.sprintf( " StrLen_or_ind: SQL_NTS=-3" ); } else if ( strncmp( strlen_or_len_str, "SQL_NULL_DATA", 13 ) == 0 ) { strlen_or_len = SQL_NULL_DATA; txt.sprintf( " StrLen_or_ind: SQL_NULL_DATA=-1" ); } else if ( strncmp( strlen_or_len_str, "SQL_DEFAULT_PARAM", 17 ) == 0 ) { strlen_or_len = SQL_DEFAULT_PARAM; txt.sprintf( " StrLen_or_ind: SQL_DEFAULT_PARAM=-5" ); } else { strlen_or_len = atoi( strlen_or_len_str ); txt.sprintf( " StrLen_or_ind: %d", strlen_or_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLPutData( in_handle, data_ptr_var, strlen_or_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dPutData::dPutData( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 150,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 230,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 310,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); data_ptr = new QComboBox( this ); data_ptr->setEditable( true ); data_ptr->setGeometry( 130, 80, 250, 20 ); data_ptr->insertItem( 0, "" ); data_ptr->insertItem( 1, "" ); data_ptr->insertItem( 2, "" ); str_len = new QComboBox( this ); str_len->setEditable( true ); str_len->setGeometry( 130, 110, 200, 20 ); str_len->insertItem( 0, "SQL_NTS=-3" ); str_len->insertItem( 1, "SQL_NULL_DATA=-1" ); str_len->insertItem( 2, "SQL_DEFAULT_PARAM=-5" ); str_len->insertItem( 3, "0" ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); l_data_ptr = new QLabel( "DataPtr:", this ); l_data_ptr->setGeometry( 10, 80, 70, 20 ); l_str_len = new QLabel( "StrLen_or_IndPtr:", this ); l_str_len->setGeometry( 10, 110, 70, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dPutData::~dPutData() { delete ok; delete cancel; delete help; delete handles; delete data_ptr; delete l_handle; delete l_data_ptr; delete str_len; delete l_str_len; } void dBindParameter::Ok() { } dBindParameter::dBindParameter( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 450,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 530,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 610,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); param_num = new QLineEdit( this ); param_num->setGeometry( 130, 80, 70, 20 ); param_num->setMaxLength( 6 ); param_num->setText( "1" ); l_param_num = new QLabel( "ParameterNumber:", this ); l_param_num->setGeometry( 10, 80, 120, 20 ); io_type = new QComboBox( this ); io_type->setGeometry( 420, 80, 250, 20 ); pOdbcTest->fill_list_box( io_type_option, io_type ); l_io_type = new QLabel( "InputOutputType:", this ); l_io_type->setGeometry( 320, 80, 100, 20 ); value_type = new QComboBox( this ); value_type->setGeometry( 130, 110, 360, 20 ); pOdbcTest->fill_list_box( value_type_option, value_type ); l_value_type = new QLabel( "ValueType:", this ); l_value_type->setGeometry( 10, 110, 100, 20 ); column_size = new QLineEdit( this ); column_size->setGeometry( 600, 110, 70, 20 ); column_size->setMaxLength( 6 ); column_size->setText( "0" ); l_column_size = new QLabel( "ColumnSize:", this ); l_column_size->setGeometry( 500, 110, 100, 20 ); param_type = new QComboBox( this ); param_type->setGeometry( 130, 140, 360, 20 ); pOdbcTest->fill_list_box( param_type_option, param_type ); l_param_type = new QLabel( "ParameterType:", this ); l_param_type->setGeometry( 10, 140, 100, 20 ); decimal_digits = new QLineEdit( this ); decimal_digits->setGeometry( 600, 140, 70, 20 ); decimal_digits->setMaxLength( 6 ); decimal_digits->setText( "0" ); l_decimal_digits = new QLabel( "DecimalDigits:", this ); l_decimal_digits->setGeometry( 500, 140, 100, 20 ); param_value = new QComboBox( this ); param_value->setGeometry( 130, 170, 360, 20 ); param_value->insertItem( 0, "" ); param_value->insertItem( 1, "" ); l_param_value = new QLabel( "ParameterValuePtr:", this ); l_param_value->setGeometry( 10, 170, 120, 20 ); buffer_length = new QLineEdit( this ); buffer_length->setGeometry( 600, 170, 70, 20 ); buffer_length->setMaxLength( 6 ); buffer_length->setText( "0" ); l_buffer_length = new QLabel( "BufferLength:", this ); l_buffer_length->setGeometry( 500, 170, 100, 20 ); strlen_or_ind = new QComboBox( this ); strlen_or_ind->setEditable( true ); strlen_or_ind->setGeometry( 130, 200, 360, 20 ); strlen_or_ind->insertItem( 0, "SQL_NTS=-3" ); strlen_or_ind->insertItem( 1, "SQL_NULL_DATA=-1" ); strlen_or_ind->insertItem( 2, "SQL_DATA_AT_EXEC=-2" ); strlen_or_ind->insertItem( 3, "SQL_DEFAULT_PARAM=-5" ); strlen_or_ind->insertItem( 4, "" ); strlen_or_ind->insertItem( 5, "0" ); l_strlen_or_ind = new QLabel( "StrLen_or_IndPtr:", this ); l_strlen_or_ind->setGeometry( 10, 200, 100, 20 ); len_data_at_exec = new QCheckBox( "SQL_LEN_DATA_AT_EXEC", this ); len_data_at_exec->setGeometry( 500, 200, 190, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dBindParameter::~dBindParameter() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete io_type; delete l_io_type; delete param_num; delete l_param_num; delete value_type; delete l_value_type; delete column_size; delete l_column_size; delete param_type; delete l_param_type; delete decimal_digits; delete l_decimal_digits; delete param_value; delete l_param_value; delete buffer_length; delete l_buffer_length; delete strlen_or_ind; delete l_strlen_or_ind; delete len_data_at_exec; } void dBindParam::Ok() { } dBindParam::dBindParam( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 450,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 530,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 610,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); param_num = new QLineEdit( this ); param_num->setGeometry( 130, 80, 70, 20 ); param_num->setMaxLength( 6 ); param_num->setText( "1" ); l_param_num = new QLabel( "ParameterNumber:", this ); l_param_num->setGeometry( 10, 80, 120, 20 ); value_type = new QComboBox( this ); value_type->setGeometry( 130, 110, 360, 20 ); pOdbcTest->fill_list_box( value_type_option, value_type ); l_value_type = new QLabel( "ValueType:", this ); l_value_type->setGeometry( 10, 110, 100, 20 ); column_size = new QLineEdit( this ); column_size->setGeometry( 600, 110, 70, 20 ); column_size->setMaxLength( 6 ); column_size->setText( "0" ); l_column_size = new QLabel( "ColumnSize:", this ); l_column_size->setGeometry( 500, 110, 100, 20 ); param_type = new QComboBox( this ); param_type->setGeometry( 130, 140, 360, 20 ); pOdbcTest->fill_list_box( param_type_option, param_type ); l_param_type = new QLabel( "ParameterType:", this ); l_param_type->setGeometry( 10, 140, 100, 20 ); decimal_digits = new QLineEdit( this ); decimal_digits->setGeometry( 600, 140, 70, 20 ); decimal_digits->setMaxLength( 6 ); decimal_digits->setText( "0" ); l_decimal_digits = new QLabel( "DecimalDigits:", this ); l_decimal_digits->setGeometry( 500, 140, 100, 20 ); param_value = new QComboBox( this ); param_value->setGeometry( 130, 170, 360, 20 ); param_value->insertItem( 0, "" ); param_value->insertItem( 1, "" ); l_param_value = new QLabel( "ParameterValuePtr:", this ); l_param_value->setGeometry( 10, 170, 120, 20 ); strlen_or_ind = new QComboBox( this ); strlen_or_ind->setEditable( true ); strlen_or_ind->setGeometry( 130, 200, 360, 20 ); strlen_or_ind->insertItem( 0, "SQL_NTS=-3" ); strlen_or_ind->insertItem( 1, "SQL_NULL_DATA=-1" ); strlen_or_ind->insertItem( 2, "SQL_DATA_AT_EXEC=-2" ); strlen_or_ind->insertItem( 3, "SQL_DEFAULT_PARAM=-5" ); strlen_or_ind->insertItem( 4, "" ); strlen_or_ind->insertItem( 5, "0" ); l_strlen_or_ind = new QLabel( "StrLen_or_IndPtr:", this ); l_strlen_or_ind->setGeometry( 10, 200, 100, 20 ); len_data_at_exec = new QCheckBox( "SQL_LEN_DATA_AT_EXEC", this ); len_data_at_exec->setGeometry( 500, 200, 190, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dBindParam::~dBindParam() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete param_num; delete l_param_num; delete value_type; delete l_value_type; delete column_size; delete l_column_size; delete param_type; delete l_param_type; delete decimal_digits; delete l_decimal_digits; delete param_value; delete l_param_value; delete strlen_or_ind; delete l_strlen_or_ind; delete len_data_at_exec; } void dAllocStmt::handle_clkd() { if ( handle_valid->isChecked() ) handle_valid->setText( "phstmt: SQL_NULL_POINTER" ); else handle_valid->setText( "phstmt: VALID" ); } void dAllocStmt::Ok() { SQLHSTMT hstmt, *hstmt_ptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLAllocStmt():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); if ( handle_valid->isChecked()) { hstmt_ptr = NULL; txt.sprintf( " phstmt: SQL_NULL_HANDLE" ); } else { hstmt_ptr = &hstmt; txt.sprintf( " phstmt: %p", hstmt_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLAllocStmt( in_handle, hstmt_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && hstmt_ptr ) { txt.sprintf( " *phstmt: %p", hstmt ); pOdbcTest->out_win->append( txt ); pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_STMT, hstmt, pOdbcTest->listHandle )); } pOdbcTest->out_win->append( "" ); } dAllocStmt::dAllocStmt( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 50, 80, 20 ); handle_valid = new QCheckBox( "phstmt: VALID", this ); handle_valid->setGeometry( 10, 80, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( handle_valid, SIGNAL( clicked()), this, SLOT( handle_clkd())); } dAllocStmt::~dAllocStmt() { delete ok; delete cancel; delete help; delete handle_valid; delete handles; delete l_handles; } void OdbcTest::slotBindParameter() { dBindParameter *dlg = new dBindParameter( this, "SQLBindParameter" ); dlg->exec(); delete dlg; } void OdbcTest::slotCancel() { dCancel *dlg = new dCancel( this, "SQLCancel" ); dlg->exec(); delete dlg; } void OdbcTest::slotCloseCursor() { dCloseCursor *dlg = new dCloseCursor( this, "SQLCloseCursor" ); dlg->exec(); delete dlg; } void OdbcTest::slotDescribeParam() { dDescribeParam *dlg = new dDescribeParam( this, "SQLDescribeParam" ); dlg->exec(); delete dlg; } void OdbcTest::slotExecute() { dExecute *dlg = new dExecute( this, "SQLExecute" ); dlg->exec(); delete dlg; } void OdbcTest::slotExecDirect() { dExecDirect *dlg = new dExecDirect( this, "SQLExecDirect" ); dlg->exec(); delete dlg; } void OdbcTest::slotFreeStmt() { dFreeStmt *dlg = new dFreeStmt( this, "SQLFreeStmt" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetCursorName() { dGetCursorName *dlg = new dGetCursorName( this, "SQLGetCursorName" ); dlg->exec(); delete dlg; } void OdbcTest::slotNumParams() { dNumParams *dlg = new dNumParams( this, "SQLNumParams" ); dlg->exec(); delete dlg; } void OdbcTest::slotParamData() { dParamData *dlg = new dParamData( this, "SQLParamData" ); dlg->exec(); delete dlg; } void OdbcTest::slotParamOptions() { dParamOption *dlg = new dParamOption( this, "SQLParamOptions" ); dlg->exec(); delete dlg; } void OdbcTest::slotPrepare() { dPrepare *dlg = new dPrepare( this, "SQLPrepare" ); dlg->exec(); delete dlg; } void OdbcTest::slotPutData() { dPutData *dlg = new dPutData( this, "SQLPutData" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetCursorName() { dSetCursorName *dlg = new dSetCursorName( this, "SQLSetCursorName" ); dlg->exec(); delete dlg; } void OdbcTest::slotAllocStmt() { dAllocStmt *dlg = new dAllocStmt( this, "SQLAllocStmt" ); dlg->exec(); delete dlg; } void OdbcTest::slotBindParam() { dBindParam *dlg = new dBindParam( this, "SQLBindParam" ); dlg->exec(); delete dlg; } void OdbcTest::slotFillParam() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotShowParam() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotShowCursorSettings() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvDrivers.cpp0000644000175000001440000002007711506076311016454 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvDrivers.h" #include "OdbcTest.h" void DlgEnvDrivers::server_clkd() { if ( server_valid->isChecked() ) server_valid->setText( "ServerName: SQL_NULL_POINTER" ); else server_valid->setText( "ServerName: VALID" ); } void DlgEnvDrivers::description_clkd() { if ( description_valid->isChecked() ) description_valid->setText( "Description: SQL_NULL_POINTER" ); else description_valid->setText( "Description: VALID" ); } void DlgEnvDrivers::nlp1_clkd() { if ( nlp1_valid->isChecked() ) nlp1_valid->setText( "NameLengthPtr1: SQL_NULL_POINTER" ); else nlp1_valid->setText( "NameLengthPtr1: VALID" ); } void DlgEnvDrivers::nlp2_clkd() { if ( nlp2_valid->isChecked() ) nlp2_valid->setText( "NameLengthPtr2: SQL_NULL_POINTER" ); else nlp2_valid->setText( "NameLengthPtr2: VALID" ); } void DlgEnvDrivers::Ok() { OdbcHandle *env = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLCHAR *server_name, *description; SQLSMALLINT bl1, bl2, *nlp1, *nlp2, nl1, nl2; SQLUSMALLINT direc; if ( env ) in_handle = env->getHandle(); pOdbcTest->out_win->append( "SQLDrivers():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Environment Handle: %p", in_handle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); direc = pEnvDriversDirections[ direction->currentIndex() ].value; txt.sprintf( " Direction: %s=%d", pEnvDriversDirections[ direction->currentIndex() ].text, pEnvDriversDirections[ direction->currentIndex() ].value ); bl1 = server_len->text().toInt(); if ( server_valid->isChecked() ) { server_name = NULL; txt.sprintf( " ServerName: " ); } else { if ( bl1 < 0 ) bl1 = 300; server_name = new SQLCHAR[ bl1 ]; txt.sprintf( " ServerName: %p", bl1 ); } pOdbcTest->out_win->append( txt ); if ( nlp1_valid->isChecked() ) { nlp1 = NULL; txt.sprintf( " NameLengthPtr 1: " ); } else { nl1 = -9999; nlp1 = &nl1; txt.sprintf( " NameLengthPtr 1: %p", nlp1 ); } pOdbcTest->out_win->append( txt ); bl2 = description_len->text().toInt(); if ( description_valid->isChecked() ) { description = NULL; txt.sprintf( " Description: " ); } else { if ( bl1 < 0 ) bl1 = 300; description = new SQLCHAR[ bl1 ]; txt.sprintf( " Description: %p", bl1 ); } pOdbcTest->out_win->append( txt ); if ( nlp2_valid->isChecked() ) { nlp2 = NULL; txt.sprintf( " NameLengthPtr 2: " ); } else { nl2 = -9999; nlp2 = &nl2; txt.sprintf( " NameLengthPtr 2: %p", nlp2 ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLDrivers( in_handle, direc, server_name, bl1, nlp1, description, bl2, nlp2 ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( server_name ) { txt.sprintf( " ServerName: %s", server_name ); pOdbcTest->out_win->append( txt ); } if ( nlp1 ) { if ( nl1 == 9999 ) { txt.sprintf( " *NameLengthPtr 1: " ); } else { txt.sprintf( " *NameLengthPtr 1: %d", nl1 ); } pOdbcTest->out_win->append( txt ); } if ( description ) { txt.sprintf( " Description: %s", description ); pOdbcTest->out_win->append( txt ); } if ( nlp2 ) { if ( nl2 == 9999 ) { txt.sprintf( " *NameLengthPtr 2: " ); } else { txt.sprintf( " *NameLengthPtr 2: %d", nl2 ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( server_name ) delete server_name; if ( description ) delete description; } DlgEnvDrivers::DlgEnvDrivers( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "Environment Handle:", this ); l_handles->setGeometry( 10, 50, 120, 20 ); direction = new QComboBox( this ); direction->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_list_box( pEnvDriversDirections, direction ); l_direction = new QLabel( "Direction:", this ); l_direction->setGeometry( 10, 80, 120, 20 ); server_valid = new QCheckBox( "ServerName: VALID", this ); server_valid->setGeometry( 10, 110, 300, 15 ); server_len = new QLineEdit( this ); server_len->setGeometry( 350, 110, 70, 20 ); server_len->setMaxLength( 6 ); server_len->setText( "300" ); l_server_len = new QLabel( "BufferLength 1:", this ); l_server_len->setGeometry( 240, 110, 100, 20 ); nlp1_valid = new QCheckBox( "Name Length Ptr 1: VALID", this ); nlp1_valid->setGeometry( 10, 140, 300, 15 ); description_valid = new QCheckBox( "Description: VALID", this ); description_valid->setGeometry( 10, 170, 300, 15 ); description_len = new QLineEdit( this ); description_len->setGeometry( 350, 170, 70, 20 ); description_len->setMaxLength( 6 ); description_len->setText( "300" ); l_description_len = new QLabel( "BufferLength 2:", this ); l_description_len->setGeometry( 240, 170, 100, 20 ); nlp2_valid = new QCheckBox( "Name Length Ptr 2: VALID", this ); nlp2_valid->setGeometry( 10, 200, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( server_valid, SIGNAL( clicked()), this, SLOT( server_clkd())); connect( nlp1_valid, SIGNAL( clicked()), this, SLOT( nlp1_clkd())); connect( description_valid, SIGNAL( clicked()), this, SLOT( description_clkd())); connect( nlp2_valid, SIGNAL( clicked()), this, SLOT( nlp2_clkd())); } DlgEnvDrivers::~DlgEnvDrivers() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete direction; delete l_direction; delete server_valid; delete server_len; delete l_server_len; delete nlp1_valid; delete description_valid; delete description_len; delete l_description_len; delete nlp2_valid; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mconn.cpp0000644000175000001440000003667011506076452015064 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'conn.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "conn.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'conn.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dDisconnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dDisconnect[] = { "dDisconnect\0\0Ok()\0" }; const QMetaObject dDisconnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dDisconnect, qt_meta_data_dDisconnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dDisconnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dDisconnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dDisconnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dDisconnect)) return static_cast(const_cast< dDisconnect*>(this)); return QDialog::qt_metacast(_clname); } int dDisconnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dFullConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 19, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dFullConnect[] = { "dFullConnect\0\0Ok()\0set_dsn(QString)\0" }; const QMetaObject dFullConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dFullConnect, qt_meta_data_dFullConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dFullConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dFullConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dFullConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dFullConnect)) return static_cast(const_cast< dFullConnect*>(this)); return QDialog::qt_metacast(_clname); } int dFullConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: set_dsn((*reinterpret_cast< const QString(*)>(_a[1]))); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetInfo[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 24, 9, 9, 9, 0x09, 38, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetInfo[] = { "dGetInfo\0\0target_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dGetInfo::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetInfo, qt_meta_data_dGetInfo, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetInfo::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetInfo::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetInfo::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetInfo)) return static_cast(const_cast< dGetInfo*>(this)); return QDialog::qt_metacast(_clname); } int dGetInfo::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dGetFunctions[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 29, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetFunctions[] = { "dGetFunctions\0\0target_clkd()\0Ok()\0" }; const QMetaObject dGetFunctions::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetFunctions, qt_meta_data_dGetFunctions, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetFunctions::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetFunctions::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetFunctions::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetFunctions)) return static_cast(const_cast< dGetFunctions*>(this)); return QDialog::qt_metacast(_clname); } int dGetFunctions::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dBrowseConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 31, 15, 15, 15, 0x09, 45, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dBrowseConnect[] = { "dBrowseConnect\0\0out_str_clkd()\0" "strlen_clkd()\0Ok()\0" }; const QMetaObject dBrowseConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dBrowseConnect, qt_meta_data_dBrowseConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dBrowseConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dBrowseConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dBrowseConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dBrowseConnect)) return static_cast(const_cast< dBrowseConnect*>(this)); return QDialog::qt_metacast(_clname); } int dBrowseConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: out_str_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dDriverConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 31, 15, 15, 15, 0x09, 45, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dDriverConnect[] = { "dDriverConnect\0\0out_str_clkd()\0" "strlen_clkd()\0Ok()\0" }; const QMetaObject dDriverConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dDriverConnect, qt_meta_data_dDriverConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dDriverConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dDriverConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dDriverConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dDriverConnect)) return static_cast(const_cast< dDriverConnect*>(this)); return QDialog::qt_metacast(_clname); } int dDriverConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: out_str_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dNativeSQL[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 27, 11, 11, 11, 0x09, 41, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_dNativeSQL[] = { "dNativeSQL\0\0out_str_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dNativeSQL::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dNativeSQL, qt_meta_data_dNativeSQL, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dNativeSQL::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dNativeSQL::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dNativeSQL::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dNativeSQL)) return static_cast(const_cast< dNativeSQL*>(this)); return QDialog::qt_metacast(_clname); } int dNativeSQL::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: out_str_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dAllocConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_dAllocConnect[] = { "dAllocConnect\0\0Ok()\0handle_clkd()\0" }; const QMetaObject dAllocConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dAllocConnect, qt_meta_data_dAllocConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dAllocConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dAllocConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dAllocConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dAllocConnect)) return static_cast(const_cast< dAllocConnect*>(this)); return QDialog::qt_metacast(_clname); } int dAllocConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: handle_clkd(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dFreeConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dFreeConnect[] = { "dFreeConnect\0\0Ok()\0" }; const QMetaObject dFreeConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dFreeConnect, qt_meta_data_dFreeConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dFreeConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dFreeConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dFreeConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dFreeConnect)) return static_cast(const_cast< dFreeConnect*>(this)); return QDialog::qt_metacast(_clname); } int dFreeConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvDrivers.cpp0000644000175000001440000000522411506076452016634 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvDrivers.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvDrivers.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvDrivers.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvDrivers[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 34, 14, 14, 14, 0x09, 53, 14, 14, 14, 0x09, 65, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvDrivers[] = { "DlgEnvDrivers\0\0Ok()\0server_clkd()\0" "description_clkd()\0nlp1_clkd()\0" "nlp2_clkd()\0" }; const QMetaObject DlgEnvDrivers::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvDrivers, qt_meta_data_DlgEnvDrivers, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvDrivers::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvDrivers::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvDrivers::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvDrivers)) return static_cast(const_cast< DlgEnvDrivers*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvDrivers::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: server_clkd(); break; case 2: description_clkd(); break; case 3: nlp1_clkd(); break; case 4: nlp2_clkd(); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/OdbcHandle.h0000644000175000001440000001006311506076311015360 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once /* * This is the first include file ODBCTestQ4 code needs to get in - * directly or indirectly. This brings in the; standard C, ODBC, and Qt * includes. */ /* bring in standard C stuff */ #include #ifdef UNIX #include #endif #include #if TIME_WITH_SYS_TIME # include # include #else # if HAVE_SYS_TIME_H # include # else # include # endif #endif /* this will bring in the ODBC 'test' stuff we need (and then some) */ #include typedef BOOL (*AUTOTESTNAME)(LPSTR,UINT*); typedef BOOL (*AUTOTESTDESC)(UWORD,LPSTR,LPSTR); typedef void (*AUTOTESTFUNC)(SERVERINFO*); /* bring in more ODBC stuff */ #include #include /* this brings in all of the Qt stuff we need */ #include /* * structure that defines the options and values */ typedef struct attr_value { const char * text; int value; const char * version; int data_type; } attr_value; typedef struct attr_options { const char * text; int attr; attr_value values[ 25 ]; const char * version; int data_type; int is_bitmap; int is_pointer; } attr_options; extern attr_value pEnvHandleTypes[]; extern attr_value pEnvCompletionTypes[]; extern attr_value pEnvDataSourcesDirections[]; extern attr_value pEnvDriversDirections[]; /*! * \brief ODBC handle. * * Our, not so, general purpose handle. This is a general purpose handle in that * it supports all of the ODBC handle types. Its not so general purpose in the * fact that we toss in some other stuff simply for convenience. * */ class OdbcHandle { public: OdbcHandle( int t, SQLHANDLE h, QList &list ); OdbcHandle( int t, SQLHANDLE h, QString desc = NULL, SQLHANDLE stmt = SQL_NULL_HANDLE ); OdbcHandle( OdbcHandle &e ); ~OdbcHandle(); char * toStr( char * str ); SQLHANDLE getHandle( void ) { return handle; }; SQLHANDLE getStmtHandle( void ) { return stmt_handle; }; int getType( void ) { return type; }; char *bookmark_ptr; SQLUINTEGER row_array_size; SQLUINTEGER param_array_size; SQLUINTEGER *param_bind_offset_ptr, param_bind_offset; SQLUSMALLINT *param_opt_ptr, param_opt; SQLUSMALLINT *param_status_ptr, param_status; SQLUINTEGER *params_processed_ptr, params_processed; SQLUINTEGER *row_bind_offset_ptr, row_bind_offset; SQLUSMALLINT *row_operation_ptr, row_operation; SQLUSMALLINT *row_status_ptr, row_status; SQLUINTEGER *rows_fetched_ptr, rows_fetched; private: int type; // handle type SQLHANDLE handle; // the underlying ODBC handle QString description; // int implicit; // for when we are a descriptor handle SQLHANDLE stmt_handle; // for when we are a descriptor handle? QList *handle_list; // subordinate/child handles }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvAllocEnv.cpp0000644000175000001440000000614311506076311016537 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvAllocEnv.h" #include "OdbcTest.h" void DlgEnvAllocEnv::handle_clkd() { if ( handle_valid->isChecked() ) handle_valid->setText( "phenv: SQL_NULL_POINTER" ); else handle_valid->setText( "phenv: VALID" ); } void DlgEnvAllocEnv::slotDone() { SQLHENV henv, *henv_ptr; pOdbcTest->out_win->append( "SQLAllocEnv():" ); pOdbcTest->out_win->append( " In:" ); if ( handle_valid->isChecked()) { henv_ptr = NULL; txt.sprintf( " phenv: SQL_NULL_HANDLE" ); } else { henv_ptr = &henv; txt.sprintf( " phenv: %p", henv_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLAllocEnv( henv_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && henv_ptr ) { txt.sprintf( " *phenv: %p", henv ); pOdbcTest->out_win->append( txt ); pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_ENV, henv ) ); } pOdbcTest->out_win->append( "" ); accept(); } DlgEnvAllocEnv::DlgEnvAllocEnv( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; QVBoxLayout *playoutTop = new QVBoxLayout( this ); handle_valid = new QCheckBox( "phenv: VALID", this ); playoutTop->addWidget( handle_valid ); pDialogButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, Qt::Horizontal, this ); playoutTop->addWidget( pDialogButtonBox ); connect( handle_valid, SIGNAL( clicked()), this, SLOT( handle_clkd())); connect( pDialogButtonBox, SIGNAL(accepted()), this, SLOT(slotDone()) ); connect( pDialogButtonBox, SIGNAL(rejected()), this, SLOT(reject()) ); // connect( pDialogButtonBox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); } DlgEnvAllocEnv::~DlgEnvAllocEnv() { delete handle_valid; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsNewSource.cpp0000644000175000001440000000544011506076311017315 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsNewSource.h" #include "DlgToolsManageTest.h" #include "OdbcTest.h" DlgToolsNewSource::DlgToolsNewSource( OdbcTest *pOdbcTest, QString name, DlgToolsManageTest *ptest ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; parent_test = ptest; cancel = new QPushButton( "Close", this ); cancel->setGeometry( 200,50, 70,25 ); ok = new QPushButton( "Ok", this ); ok->setGeometry( 110,50, 70,25 ); source = new QLineEdit( this ); source->setGeometry( 100, 20, 250, 20 ); source->setMaxLength( 128 ); l_dsn = new QLabel( "Test Source:", this ); l_dsn->setGeometry( 10, 20, 90, 20 ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); } DlgToolsNewSource::~DlgToolsNewSource() { delete cancel; delete ok; delete source; delete l_dsn; } void DlgToolsNewSource::Ok() { // sanity check... QString stringSource = source->text(); if ( stringSource.isEmpty() ) return; // add it (if it does not already exist)... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); if ( pOdbcTest->pSettings->contains( stringSource ) ) { QMessageBox::critical( this, "OdbcTest", QString( tr( "Source (%1) already defined") ).arg( stringSource ) ); pOdbcTest->pSettings->endGroup(); return; } pOdbcTest->pSettings->setValue( stringSource, "Installed" ); pOdbcTest->pSettings->endGroup(); // update UI... parent_test->test_source->addItem( stringSource ); parent_test->Activated( stringSource ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/conn.h0000644000175000001440000001266011506076311014337 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dDisconnect : public QDialog { Q_OBJECT public: dDisconnect( OdbcTest *pOdbcTest, QString name ); ~dDisconnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dFullConnect : public QDialog { Q_OBJECT public: dFullConnect( OdbcTest *pOdbcTest, QString name ); ~dFullConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLineEdit *dsn, *usr, *pwd; QLabel *l_handle, *l_dsn, *l_usr, *l_pwd; QListWidget *dsn_list; QTextEdit *in_win; QGroupBox *version, *cursor; QTextEdit *out_win; OdbcTest *pOdbcTest; QRadioButton *ver_2, *ver_3, *ver_def; QRadioButton *cur_ifneeded, *cur_use, *cur_driver, *cur_default; QString txt; protected slots: void Ok(); void set_dsn( const QString &); }; class dGetInfo : public QDialog { Q_OBJECT public: dGetInfo( OdbcTest *pOdbcTest, QString name ); ~dGetInfo(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QLineEdit *buffer_len; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_type, *l_buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; class dGetFunctions : public QDialog { Q_OBJECT public: dGetFunctions( OdbcTest *pOdbcTest, QString name ); ~dGetFunctions(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QCheckBox *target_valid; QLabel *l_handle, *l_type; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void Ok(); }; class dBrowseConnect : public QDialog { Q_OBJECT public: dBrowseConnect( OdbcTest *pOdbcTest, QString name ); ~dBrowseConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dDriverConnect : public QDialog { Q_OBJECT public: dDriverConnect( OdbcTest *pOdbcTest, QString name ); ~dDriverConnect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len, *driver_completion; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str, *l_driver_completion; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dNativeSQL : public QDialog { Q_OBJECT public: dNativeSQL( OdbcTest *pOdbcTest, QString name ); ~dNativeSQL(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *in_str, *str_len; QLineEdit *buffer_len; QCheckBox *out_str_valid, *strlen_valid; QLabel *l_handle, *l_out_str, *l_buffer_len; QLabel *l_str_len, *l_in_str; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_str_clkd(); void strlen_clkd(); void Ok(); }; class dAllocConnect : public QDialog { Q_OBJECT public: dAllocConnect( OdbcTest *pOdbcTest, QString name ); ~dAllocConnect(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QCheckBox *handle_valid; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void handle_clkd(); }; class dFreeConnect : public QDialog { Q_OBJECT public: dFreeConnect( OdbcTest *pOdbcTest, QString name ); ~dFreeConnect(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/installer.cpp0000644000175000001440000001076311506076311015734 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "OdbcTest.h" void OdbcTest::slotManageDataSources() { #ifdef WIN32 if ( !SQLManageDataSources( (SQLHWND)this->winId() ) ) { QMessageBox::about( this, "ODBC Test", "SQLManageDataSources() returned FALSE." ); } #else ODBCINSTWND Wnd; strcpy( Wnd.szUI, "odbcinstQ4" ); Wnd.hWnd = this; if ( !SQLManageDataSources( &Wnd ) ) { QMessageBox::about( this, "ODBC Test", "SQLManageDataSources() returned FALSE." ); } #endif } void OdbcTest::slotRemoveDefaultDataSource() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotConfigDataSource() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotCreateDataSource() { #ifdef WIN32 if ( !SQLCreateDataSource( (SQLHWND)this->winId(), NULL ) ) { QMessageBox::about( this, "ODBC Test", "SQLCreateDataSource() returned FALSE." ); } #else ODBCINSTWND Wnd; strcpy( Wnd.szUI, "odbcinstQ4" ); Wnd.hWnd = this; if ( !SQLCreateDataSource( &Wnd, NULL ) ) { QMessageBox::about( this, "ODBC Test", "SQLCreateDataSource() returned FALSE." ); } #endif } void OdbcTest::slotValidDSN() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotRemoveDSNFromIni() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotWriteDSNToIni() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotRemoveDrivers() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotConfigDrivers() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotInstallDriver() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotInstallDriverEx() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotGetInstalledDrivers() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotRemoveDriverManager() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotInstallDriverManager() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotReadFileDSN() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotWriteFileDSN() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotWritePrivateProfileString() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotGetPrivateProfileString() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotInstallTranslator() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotInstallTranslatorEx() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotRemoveTranslator() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotGetTranslator() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotSetConfigMode() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotGetConfigMode() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/results.cpp0000644000175000001440000025737411506076311015453 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "results.h" #include "OdbcTest.h" static attr_value data_types[] = { { "SQL_C_CHAR", SQL_C_CHAR, "1.0", 0}, { "SQL_C_BINARY", SQL_C_BINARY, "1.0", 0}, { "SQL_C_BIT", SQL_C_BIT, "1.0", 0}, { "SQL_C_BOOKMARK", SQL_C_BOOKMARK, "2.0", 0}, { "SQL_C_DATE", SQL_C_DATE, "1.0", 0}, { "SQL_C_DOUBLE", SQL_C_DOUBLE, "1.0", 0}, { "SQL_C_FLOAT", SQL_C_FLOAT, "1.0", 0}, { "SQL_C_GUID", SQL_C_GUID, "1.0", 0}, { "SQL_C_INTERVAL_DAY", SQL_C_INTERVAL_DAY, "3.0", 0}, { "SQL_C_INTERVAL_DAY_TO_HOUR", SQL_C_INTERVAL_DAY_TO_HOUR, "3.0", 0}, { "SQL_C_INTERVAL_DAY_TO_MINUTE", SQL_C_INTERVAL_DAY_TO_MINUTE, "3.0", 0}, { "SQL_C_INTERVAL_DAY_TO_SECOND", SQL_C_INTERVAL_DAY_TO_SECOND, "3.0", 0}, { "SQL_C_INTERVAL_HOUR", SQL_C_INTERVAL_HOUR, "3.0", 0}, { "SQL_C_INTERVAL_HOUR_TO_MINUTE", SQL_C_INTERVAL_HOUR_TO_MINUTE, "3.0", 0}, { "SQL_C_INTERVAL_HOUR_TO_SECOND", SQL_C_INTERVAL_HOUR_TO_SECOND, "3.0", 0}, { "SQL_C_INTERVAL_MINUTE_TO_SECOND", SQL_C_INTERVAL_MINUTE_TO_SECOND, "3.0", 0}, { "SQL_C_INTERVAL_MONTH", SQL_C_INTERVAL_MONTH, "3.0", 0}, { "SQL_C_INTERVAL_MINUTE", SQL_C_INTERVAL_MINUTE, "3.0", 0}, { "SQL_C_INTERVAL_SECOND", SQL_C_INTERVAL_SECOND, "3.0", 0}, { "SQL_C_INTERVAL_YEAR", SQL_C_INTERVAL_YEAR, "3.0", 0}, { "SQL_C_INTERVAL_YEAR_TO_MONTH", SQL_C_INTERVAL_YEAR_TO_MONTH, "3.0", 0}, { "SQL_C_LONG", SQL_C_LONG, "2.0", 0}, { "SQL_C_NUMERIC", SQL_C_NUMERIC, "3.0", 0}, { "SQL_C_SBIGINT", SQL_C_SBIGINT, "3.0", 0}, { "SQL_C_SLONG", SQL_C_SLONG, "2.0", 0}, { "SQL_C_SSHORT", SQL_C_SSHORT, "2.0", 0}, { "SQL_C_STINYINT", SQL_C_STINYINT, "2.0", 0}, { "SQL_C_TIME", SQL_C_TIME, "1.0", 0}, { "SQL_C_TIMESTAMP", SQL_C_TIMESTAMP, "1.0", 0}, { "SQL_C_TINYINT", SQL_C_TINYINT, "1.0", 0}, { "SQL_C_TYPE_DATE", SQL_C_TYPE_DATE, "3.0", 0}, { "SQL_C_TYPE_TIME", SQL_C_TYPE_TIME, "3.0", 0}, { "SQL_C_TYPE_TIMESTAMP", SQL_C_TYPE_TIMESTAMP, "3.0", 0}, { "SQL_C_UBIGINT", SQL_C_UBIGINT, "3.0", 0}, { "SQL_C_ULONG", SQL_C_ULONG, "2.0", 0}, { "SQL_C_USHORT", SQL_C_USHORT, "2.0", 0}, { "SQL_C_UTINYINT", SQL_C_UTINYINT, "2.0", 0}, { "SQL_C_VARBOOKMARK", SQL_C_VARBOOKMARK, "3.0", 0}, { "SQL_C_WCHAR", SQL_C_WCHAR, "3.0", 0}, { "SQL_ARD_TYPE", SQL_ARD_TYPE, "3.0", 0}, { "SQL_C_DEFAULT", SQL_C_DEFAULT, "3.0", 0}, { NULL, 0, NULL, 0} }; static attr_value sql_data_types[] = { { "SQL_CHAR", SQL_CHAR, "1.0", 0}, { "SQL_VARCHAR", SQL_VARCHAR, "1.0", 0}, { "SQL_LONGVARCHAR", SQL_LONGVARCHAR, "1.0", 0}, { "SQL_BINARY", SQL_BINARY, "1.0", 0}, { "SQL_VARBINARY", SQL_VARBINARY, "1.0", 0}, { "SQL_LONGVARBINARY", SQL_LONGVARBINARY, "1.0", 0}, { "SQL_TINYINT", SQL_TINYINT, "1.0", 0}, { "SQL_SMALLINT", SQL_SMALLINT, "1.0", 0}, { "SQL_INTEGER", SQL_INTEGER, "1.0", 0}, { "SQL_BIGINT", SQL_BIGINT, "1.0", 0}, { "SQL_FLOAT", SQL_FLOAT, "1.0", 0}, { "SQL_DOUBLE", SQL_DOUBLE, "1.0", 0}, { "SQL_REAL", SQL_REAL, "1.0", 0}, { "SQL_NUMERIC", SQL_NUMERIC, "1.0", 0}, { "SQL_DATETIME", SQL_DATETIME, "1.0", 0}, { "SQL_DATE", SQL_DATE, "1.0", 0}, { "SQL_TIME", SQL_TIME, "1.0", 0}, { "SQL_TIMESTAMP", SQL_TIMESTAMP, "1.0", 0}, { "SQL_INTERVAL_DAY", SQL_INTERVAL_DAY, "3.0", 0}, { "SQL_INTERVAL_DAY_TO_HOUR", SQL_INTERVAL_DAY_TO_HOUR, "3.0", 0}, { "SQL_INTERVAL_DAY_TO_MINUTE", SQL_INTERVAL_DAY_TO_MINUTE, "3.0", 0}, { "SQL_INTERVAL_DAY_TO_SECOND", SQL_INTERVAL_DAY_TO_SECOND, "3.0", 0}, { "SQL_INTERVAL_HOUR", SQL_INTERVAL_HOUR, "3.0", 0}, { "SQL_INTERVAL_HOUR_TO_MINUTE", SQL_INTERVAL_HOUR_TO_MINUTE, "3.0", 0}, { "SQL_INTERVAL_HOUR_TO_SECOND", SQL_INTERVAL_HOUR_TO_SECOND, "3.0", 0}, { "SQL_INTERVAL_MINUTE_TO_SECOND", SQL_INTERVAL_MINUTE_TO_SECOND, "3.0", 0}, { "SQL_INTERVAL_MONTH", SQL_INTERVAL_MONTH, "3.0", 0}, { "SQL_INTERVAL_MINUTE", SQL_INTERVAL_MINUTE, "3.0", 0}, { "SQL_INTERVAL_SECOND", SQL_INTERVAL_SECOND, "3.0", 0}, { "SQL_INTERVAL_YEAR", SQL_INTERVAL_YEAR, "3.0", 0}, { "SQL_INTERVAL_YEAR_TO_MONTH", SQL_INTERVAL_YEAR_TO_MONTH, "3.0", 0}, { "SQL_GUID", SQL_GUID, "3.0", 0}, { NULL, 0, NULL, 0} }; static attr_options field_ident_struct[] = { { "SQL_DESC_AUTO_UNIQUE_VALUE", SQL_DESC_AUTO_UNIQUE_VALUE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_BASE_COLUMN_NAME", SQL_DESC_BASE_COLUMN_NAME, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_BASE_TABLE_NAME", SQL_DESC_BASE_TABLE_NAME, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_CASE_SENSITIVE", SQL_DESC_CASE_SENSITIVE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_CATALOG_NAME", SQL_DESC_CATALOG_NAME, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_CONCISE_TYPE", SQL_DESC_CONCISE_TYPE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_COUNT", SQL_DESC_COUNT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_DISPLAY_SIZE", SQL_DESC_DISPLAY_SIZE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_FIXED_PREC_SCALE", SQL_DESC_FIXED_PREC_SCALE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_LABEL", SQL_DESC_LABEL, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_LENGTH", SQL_DESC_LENGTH, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_LITERAL_PREFIX", SQL_DESC_LITERAL_PREFIX, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_LITERAL_SUFFIX", SQL_DESC_LITERAL_SUFFIX, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_LOCAL_TYPE_NAME", SQL_DESC_LOCAL_TYPE_NAME, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_NAME", SQL_DESC_NAME, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_NULLABLE", SQL_DESC_NULLABLE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_NUM_PREC_RADIX", SQL_DESC_NUM_PREC_RADIX, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_OCTET_LENGTH", SQL_DESC_OCTET_LENGTH, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_PRECISION", SQL_DESC_PRECISION, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_SCALE", SQL_DESC_SCALE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_SCHEMA_NAME", SQL_DESC_SCHEMA_NAME, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_SEARCHABLE", SQL_DESC_SEARCHABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_TABLE_NAME", SQL_DESC_TABLE_NAME, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_TYPE", SQL_DESC_TYPE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_TYPE_NAME", SQL_DESC_TYPE_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_UNNAMED", SQL_DESC_UNNAMED, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_UNSIGNED", SQL_DESC_UNSIGNED, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESC_UPDATABLE", SQL_DESC_UPDATABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0} }; static attr_options ca_field_ident_struct[] = { { "SQL_COLUMN_AUTO_INCREMENT", SQL_COLUMN_AUTO_INCREMENT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_CASE_SENSITIVE", SQL_COLUMN_CASE_SENSITIVE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_COUNT", SQL_COLUMN_COUNT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_DISPLAY_SIZE", SQL_COLUMN_DISPLAY_SIZE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_LABEL", SQL_COLUMN_LABEL, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_LENGTH", SQL_COLUMN_LENGTH, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_MONEY", SQL_COLUMN_MONEY, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_NAME", SQL_COLUMN_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_NULLABLE", SQL_COLUMN_NULLABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_OWNER_NAME", SQL_COLUMN_OWNER_NAME, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_PRECISION", SQL_COLUMN_PRECISION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_QUALIFIER_NAME", SQL_COLUMN_QUALIFIER_NAME, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_SCALE", SQL_COLUMN_SCALE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_SEARCHABLE", SQL_COLUMN_SEARCHABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_TABLE_NAME", SQL_COLUMN_TABLE_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_TYPE", SQL_COLUMN_TYPE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_TYPE_NAME", SQL_COLUMN_TYPE_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_UNSIGNED", SQL_COLUMN_UNSIGNED, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_COLUMN_UPDATABLE", SQL_COLUMN_UPDATABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0} }; static attr_value fetch_scroll_orentation[] = { { "SQL_FETCH_NEXT", SQL_FETCH_NEXT, "1.0", 0}, { "SQL_FETCH_PRIOR", SQL_FETCH_PRIOR, "1.0", 0}, { "SQL_FETCH_RELATIVE", SQL_FETCH_RELATIVE, "1.0", 0}, { "SQL_FETCH_ABSOLUTE", SQL_FETCH_ABSOLUTE, "1.0", 0}, { "SQL_FETCH_FIRST", SQL_FETCH_FIRST, "1.0", 0}, { "SQL_FETCH_LAST", SQL_FETCH_LAST, "1.0", 0}, { "SQL_FETCH_BOOKMARK", SQL_FETCH_BOOKMARK, "1.0", 0}, { NULL, 0, NULL, 0} }; static attr_value set_scroll_cur_operation[] = { { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, "1.0", 0}, { "SQL_CONCUR_LOCK", SQL_CONCUR_LOCK, "1.0", 0}, { "SQL_CONCUR_ROWVER", SQL_CONCUR_ROWVER, "1.0", 0}, { "SQL_CONCUR_VALUES", SQL_CONCUR_VALUES, "1.0", 0}, { NULL, 0, NULL, 0} }; static attr_value set_scroll_ks_values[] = { { "SQL_SCROLL_FORWARD_ONLY", SQL_SCROLL_FORWARD_ONLY, "1.0", 0}, { "SQL_SCROLL_KEYSET_DRIVEN", SQL_SCROLL_KEYSET_DRIVEN, "1.0", 0}, { "SQL_SCROLL_DYNAMIC", SQL_SCROLL_DYNAMIC, "1.0", 0}, { "SQL_SCROLL_STATIC", SQL_SCROLL_STATIC, "1.0", 0}, { NULL, 0, NULL, 0} }; static attr_value bulk_operation[] = { { "SQL_ADD", SQL_ADD, "3.0", 0}, { "SQL_UPDATE_BY_BOOKMARK", SQL_UPDATE_BY_BOOKMARK, "3.0", 0}, { "SQL_DELETE_BY_BOOKMARK", SQL_DELETE_BY_BOOKMARK, "3.0", 0}, { "SQL_FETCH_BY_BOOKMARK", SQL_FETCH_BY_BOOKMARK, "3.0", 0}, { NULL, 0, NULL, 0} }; static attr_value set_pos_operation[] = { { "SQL_POSITION", SQL_POSITION, NULL, 0}, { "SQL_REFRESH", SQL_REFRESH, NULL, 0}, { "SQL_UPDATE", SQL_UPDATE, NULL, 0}, { "SQL_DELETE", SQL_DELETE, NULL, 0}, { NULL, 0, NULL, 0} }; static attr_value set_pos_lock_type[] = { { "SQL_LOCK_NO_CHANGE", SQL_LOCK_NO_CHANGE, NULL, 0}, { "SQL_LOCK_EXCLUSIVE", SQL_LOCK_EXCLUSIVE, NULL, 0}, { "SQL_LOCK_UNLOCK", SQL_LOCK_UNLOCK, NULL, 0}, { NULL, 0, NULL, 0} }; void dNumResultCols::out_handle_ptr_clkd() { if ( valid->isChecked() ) valid->setText( "ColumnCountPtr: SQL_NULL_HANDLE" ); else valid->setText( "ColumnCountPtr: VALID" ); } void dNumResultCols::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT num_cols; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLNumResultCols():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( valid->isChecked() ) txt.sprintf( " ColumnCountPtr: ." ); else txt.sprintf( " ColumnCountPtr: %p", &num_cols ); pOdbcTest->out_win->append( txt ); num_cols = -9999; SQLRETURN ret = SQLNumResultCols( in_handle, valid->isChecked() ? NULL : &num_cols ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( num_cols == -9999 ) { txt.sprintf( " *ColumnCountPtr: " ); } else { txt.sprintf( " *ColumnCountPtr: %d", num_cols ); } pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dNumResultCols::dNumResultCols( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); valid = new QCheckBox( "ColumnCountPtr: VALID", this ); valid->setGeometry( 10, 80, 300, 15 ); connect( valid, SIGNAL( clicked()), this, SLOT( out_handle_ptr_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dNumResultCols::~dNumResultCols() { delete ok; delete cancel; delete help; delete handles; delete valid; } void dFetch::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLFetch():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLFetch( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dFetch::dFetch( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dFetch::~dFetch() { delete ok; delete cancel; delete help; delete handles; } void dGetData::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "TargetValuePtr: SQL_NULL_POINTER" ); else target_valid->setText( "TargetValuePtr: VALID" ); } void dGetData::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLen_or_IndValuePtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLen_or_IndValuePtr: VALID" ); } void dGetData::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); int index; SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT column_number; SQLINTEGER b_len, data_type; SQLLEN *strlen_ptr, strlen_or_ind; char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetData():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); column_number = column_num->text().toInt(); txt.sprintf( " Column Number: %d", column_number ); pOdbcTest->out_win->append( txt ); index = type->currentIndex(); data_type = data_types[ index ].value; txt.sprintf( " Target Type: %s=%d (%s)", data_types[ index ].text, data_types[ index ].value, data_types[ index ].version ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( target_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = new char[ 300 ]; } else { buf = new char[ b_len ]; } if ( buf ) { txt.sprintf( " Target Value Ptr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Target Value Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); strlen_or_ind = -999999; if ( strlen_valid->isChecked()) { strlen_ptr = NULL; } else { strlen_ptr = &strlen_or_ind; } if ( strlen_ptr ) { txt.sprintf( " Strlen_or_Ind Ptr: %p", strlen_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Strlen_or_Ind Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetData( in_handle, column_number, data_type, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret ) && strlen_ptr ) { if ( strlen_or_ind == -999999 ) { txt.sprintf( " *Strlen_or_Ind Ptr: " ); } else { txt.sprintf( " *Strlen_or_Ind Ptr: %d", strlen_or_ind ); } pOdbcTest->out_win->append( txt ); } /* * display the result */ if ( SQL_SUCCEEDED( ret ) && (( strlen_ptr && strlen_or_ind >= 0 ) || !strlen_ptr )) { switch ( data_type ) { case SQL_C_CHAR: if ( strlen( buf ) > 64 ) { buf[ 64 ] = '\0'; txt.sprintf( " *Target Value Ptr: \"%s...\"", buf ); } else { txt.sprintf( " *Target Value Ptr: \"%s\"", buf ); } break; case SQL_C_BIT: { unsigned char bit; memcpy( &bit, buf, sizeof( bit )); txt.sprintf( " *Target Value Ptr: %d", bit ); break; } case SQL_C_DATE: case SQL_C_TYPE_DATE: { SQL_DATE_STRUCT dt; memcpy( &dt, buf, sizeof( dt )); txt.sprintf( " *Target Value Ptr: %04d-%02d-%02d", dt.year, dt.month, dt.day ); break; } case SQL_C_DOUBLE: { double val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %f", val ); break; } case SQL_C_FLOAT: { float val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %f", val ); break; } case SQL_C_INTERVAL_DAY: case SQL_C_INTERVAL_DAY_TO_HOUR: case SQL_C_INTERVAL_DAY_TO_MINUTE: case SQL_C_INTERVAL_DAY_TO_SECOND: case SQL_C_INTERVAL_HOUR: case SQL_C_INTERVAL_HOUR_TO_MINUTE: case SQL_C_INTERVAL_HOUR_TO_SECOND: case SQL_C_INTERVAL_MINUTE_TO_SECOND: case SQL_C_INTERVAL_MINUTE: case SQL_C_INTERVAL_SECOND: { SQL_INTERVAL_STRUCT val; char str[ 128 ]; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr:\n" ); sprintf( str, " interval.interval_type: %d (%s)\n", val.interval_type, pOdbcTest->int_type_as_string( val.interval_type )); txt += str; sprintf( str, " interval.sign: %d\n", val.interval_sign); txt += str; sprintf( str, " interval.intval.day_second.day: %d\n", val.intval.day_second.day); txt += str; sprintf( str, " interval.intval.day_second.hour: %d\n", val.intval.day_second.hour); txt += str; sprintf( str, " interval.intval.day_second.minute: %d\n", val.intval.day_second.minute); txt += str; sprintf( str, " interval.intval.day_second.second: %d\n", val.intval.day_second.second); txt += str; sprintf( str, " interval.intval.day_second.fraction: %09d\n", val.intval.day_second.fraction); txt += str; break; } case SQL_C_INTERVAL_YEAR: case SQL_C_INTERVAL_YEAR_TO_MONTH: case SQL_C_INTERVAL_MONTH: { SQL_INTERVAL_STRUCT val; char str[ 128 ]; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr:\n" ); sprintf( str, " interval.interval_type: %d (%s)\n", val.interval_type, pOdbcTest->int_type_as_string( val.interval_type )); txt += str; sprintf( str, " interval.sign: %d\n", val.interval_sign); txt += str; sprintf( str, " interval.intval.year_month.year: %d\n", val.intval.year_month.year); txt += str; sprintf( str, " interval.intval.year_month.month: %d\n", val.intval.year_month.month); txt += str; break; } case SQL_C_LONG: { long val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %d (0x%x)", val, val ); break; } case SQL_C_NUMERIC: { break; } case SQL_C_SBIGINT: { break; } case SQL_C_SLONG: { long val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %d (0x%x)", val, val ); break; } case SQL_C_SSHORT: { short val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %d (0x%x)", val, val ); break; } case SQL_C_STINYINT: { char val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %d (0x%x)", val, val ); break; } case SQL_C_TIME: case SQL_C_TYPE_TIME: { SQL_TIME_STRUCT dt; memcpy( &dt, buf, sizeof( dt )); txt.sprintf( " *Target Value Ptr: %02d:%02d:%02d", dt.hour, dt.minute, dt.second ); break; } case SQL_C_TIMESTAMP: case SQL_C_TYPE_TIMESTAMP: { SQL_TIMESTAMP_STRUCT dt; memcpy( &dt, buf, sizeof( dt )); txt.sprintf( " *Target Value Ptr: %04d-%02d%02d %02d:%02d:%02d.%0d", dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second, dt.fraction ); break; } case SQL_C_TINYINT: { char val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %d (0x%x)", val, val ); break; } case SQL_C_UBIGINT: { break; } case SQL_C_ULONG: { unsigned long val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %lu (0x%lx)", val, val ); break; } case SQL_C_USHORT: { unsigned short val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %u (0x%x)", val, val ); break; } case SQL_C_UTINYINT: { unsigned char val; memcpy( &val, buf, sizeof( val )); txt.sprintf( " *Target Value Ptr: %u (0x%x)", val, val ); break; } case SQL_C_BINARY: case SQL_C_GUID: case SQL_C_WCHAR: case SQL_ARD_TYPE: case SQL_C_DEFAULT: default: txt.sprintf( " *Target Value Ptr: 0x" ); if ( strlen_ptr ) { if ( strlen_or_ind > 32 ) { for ( int i = 0; i < 32; i ++ ) { char tmp[ 3 ]; sprintf( tmp, "%X", buf[ i ] ); txt += tmp; } } else { for ( int i = 0; i < strlen_or_ind; i ++ ) { char tmp[ 3 ]; sprintf( tmp, "%X", buf[ i ] ); txt += tmp; } } } else { if ( b_len > 32 ) { for ( int i = 0; i < 32; i ++ ) { char tmp[ 3 ]; sprintf( tmp, "%X", buf[ i ] ); txt += tmp; } } else { for ( int i = 0; i < b_len; i ++ ) { char tmp[ 3 ]; sprintf( tmp, "%X", buf[ i ] ); txt += tmp; } } } break; } pOdbcTest->out_win->append( txt ); } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } dGetData::dGetData( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); column_num = new QLineEdit( this ); column_num->setGeometry( 130, 80, 70, 20 ); column_num->setMaxLength( 6 ); column_num->setText( "1" ); l_column_num = new QLabel( "Column Number:", this ); l_column_num->setGeometry( 10, 80, 120, 20 ); type = new QComboBox( this ); type->setGeometry( 130, 110, 340, 20 ); pOdbcTest->fill_list_box( data_types, type ); l_type = new QLabel( "Target Type:", this ); l_type->setGeometry( 10, 110, 120, 20 ); target_valid = new QCheckBox( "TargetValuePtr: VALID", this ); target_valid->setGeometry( 10, 140, 300, 15 ); strlen_valid = new QCheckBox( "StrLen_or_IndValuePtr: VALID", this ); strlen_valid->setGeometry( 10, 170, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 140, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 140, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dGetData::~dGetData() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete column_num; delete l_column_num; delete type; delete l_type; delete target_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dDescribeCol::name_clkd() { if ( name_valid->isChecked() ) name_valid->setText( "Column Name Ptr: SQL_NULL_PTR" ); else name_valid->setText( "Column Name Ptr: VALID" ); } void dDescribeCol::type_clkd() { if ( type_valid->isChecked() ) type_valid->setText( "Name Length Ptr: SQL_NULL_PTR" ); else type_valid->setText( "Name Length Ptr: VALID" ); } void dDescribeCol::size_clkd() { if ( size_valid->isChecked() ) size_valid->setText( "Column Size Ptr: SQL_NULL_PTR" ); else size_valid->setText( "Column Size Ptr: VALID" ); } void dDescribeCol::digit_clkd() { if ( digit_valid->isChecked() ) digit_valid->setText( "Decimal Digits Ptr: SQL_NULL_PTR" ); else digit_valid->setText( "Decimal Digits Ptr: VALID" ); } void dDescribeCol::null_clkd() { if ( null_valid->isChecked() ) null_valid->setText( "Nullable Ptr: SQL_NULL_PTR" ); else null_valid->setText( "Nullable Ptr: VALID" ); } const char *dDescribeCol::data_type_to_str( int type ) { struct attr_value *data_type = sql_data_types; while ( TRUE ) { if ( !data_type->text ) break; if ( data_type->value == type ) break; data_type ++; }; if ( data_type->text ) return data_type->text; else return NULL; } void dDescribeCol::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT column_number; SQLSMALLINT buffer_length; SQLCHAR *column_name; SQLSMALLINT *name_length_ptr, name_length; SQLSMALLINT *data_type_ptr, data_type; SQLULEN *column_size_ptr, column_size; SQLSMALLINT *decimal_digit_ptr, decimal_digit; SQLSMALLINT *nullable_ptr, nullable; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLDescribeCol():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); column_number = column_num->text().toInt(); txt.sprintf( " Column Number: %d", column_number ); pOdbcTest->out_win->append( txt ); buffer_length = column_len->text().toInt(); if ( name_valid->isChecked()) { column_name = NULL; } else if ( buffer_length < 300 ) { column_name = new SQLCHAR[ 300 ]; } else { column_name = new SQLCHAR[ buffer_length ]; } if ( column_name ) { txt.sprintf( " Column Name Ptr: %p", column_name ); pOdbcTest->out_win->append( txt ); txt.sprintf( " Column Name Length: %d", buffer_length ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Column Name Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } if ( name_valid->isChecked() ) { name_length_ptr = NULL; txt.sprintf( " Name Length Ptr: " ); } else { name_length_ptr = &name_length; txt.sprintf( " Name Length Ptr: %p", name_length_ptr ); } pOdbcTest->out_win->append( txt ); name_length = -9999; if ( type_valid->isChecked() ) { data_type_ptr = NULL; txt.sprintf( " Data Type Ptr: " ); } else { data_type_ptr = &data_type; txt.sprintf( " Data Type Ptr: %p", data_type_ptr ); } pOdbcTest->out_win->append( txt ); data_type = -9999; if ( name_valid->isChecked() ) { column_size_ptr = NULL; txt.sprintf( " Column Size Ptr: " ); } else { column_size_ptr = &column_size; txt.sprintf( " Column Size Ptr: %p", column_size_ptr ); } pOdbcTest->out_win->append( txt ); column_size = 9999; if ( digit_valid->isChecked() ) { decimal_digit_ptr = NULL; txt.sprintf( " Decimal Digits Ptr: " ); } else { decimal_digit_ptr = &decimal_digit; txt.sprintf( " Decimal Digits Ptr: %p", decimal_digit_ptr ); } pOdbcTest->out_win->append( txt ); decimal_digit = -9999; if ( null_valid->isChecked() ) { nullable_ptr = NULL; txt.sprintf( " Nullable Ptr: " ); } else { nullable_ptr = &nullable; txt.sprintf( " Nullable Ptr: %p", nullable_ptr ); } pOdbcTest->out_win->append( txt ); nullable = -9999; SQLRETURN ret = SQLDescribeCol( in_handle, column_number, column_name, buffer_length, name_length_ptr, data_type_ptr, column_size_ptr, decimal_digit_ptr, nullable_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret )) { if ( column_name ) { txt.sprintf( " Column Name: %s", column_name ); pOdbcTest->out_win->append( txt ); } if ( name_length_ptr ) { if ( name_length == -9999 ) { txt.sprintf( " *Name Length Ptr: " ); } else { txt.sprintf( " *Name Length Ptr: %d", name_length ); } pOdbcTest->out_win->append( txt ); } if ( data_type_ptr ) { if ( data_type == -9999 ) { txt.sprintf( " *Data Type Ptr: " ); } else { const char *str = data_type_to_str( data_type ); if ( str ) txt.sprintf( " *Data Type Ptr: %s (%d)", str, data_type ); else txt.sprintf( " *Data Type Ptr: %d", data_type ); } pOdbcTest->out_win->append( txt ); } if ( column_size_ptr ) { if ( column_size == 9999 ) { txt.sprintf( " *Column Size Ptr: " ); } else { txt.sprintf( " *Column Size Ptr: %d", column_size ); } pOdbcTest->out_win->append( txt ); } if ( decimal_digit_ptr ) { if ( decimal_digit == -9999 ) { txt.sprintf( " *Decimal Digits Ptr: " ); } else { txt.sprintf( " *Decimal Digits Ptr: %d", decimal_digit ); } pOdbcTest->out_win->append( txt ); } if ( nullable_ptr ) { if ( nullable == -9999 ) { txt.sprintf( " *Nullable Ptr: " ); } else { txt.sprintf( " *Nullable Ptr: %d", nullable ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dDescribeCol::dDescribeCol( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); column_num = new QLineEdit( this ); column_num->setGeometry( 130, 80, 70, 20 ); column_num->setMaxLength( 6 ); column_num->setText( "1" ); l_column_num = new QLabel( "Column Number:", this ); l_column_num->setGeometry( 10, 80, 120, 20 ); column_len = new QLineEdit( this ); column_len->setGeometry( 400, 110, 70, 20 ); column_len->setMaxLength( 6 ); column_len->setText( "300" ); l_column_len = new QLabel( "Column Buffer Len:", this ); l_column_len->setGeometry( 280, 110, 110, 20 ); name_valid = new QCheckBox( "Column Name Ptr: VALID", this ); name_valid->setGeometry( 10, 110, 250, 15 ); type_valid = new QCheckBox( "Name Length Ptr: VALID", this ); type_valid->setGeometry( 10, 140, 250, 15 ); size_valid = new QCheckBox( "Column Size Ptr: VALID", this ); size_valid->setGeometry( 10, 170, 250, 15 ); digit_valid = new QCheckBox( "Decimal Digits Ptr: VALID", this ); digit_valid->setGeometry( 10, 200, 250, 15 ); null_valid = new QCheckBox( "Nullable Ptr: VALID", this ); null_valid->setGeometry( 10, 230, 250, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( name_valid, SIGNAL( clicked()), this, SLOT( name_clkd())); connect( type_valid, SIGNAL( clicked()), this, SLOT( type_clkd())); connect( size_valid, SIGNAL( clicked()), this, SLOT( size_clkd())); connect( digit_valid, SIGNAL( clicked()), this, SLOT( digit_clkd())); connect( null_valid, SIGNAL( clicked()), this, SLOT( null_clkd())); } dDescribeCol::~dDescribeCol() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete column_num; delete l_column_num; delete column_len; delete l_column_len; delete name_valid; delete type_valid; delete size_valid; delete digit_valid; delete null_valid; } void dRowCount::Valid() { if ( valid->isChecked() ) valid->setText( "RowCountPtr: SQL_NULL_PTR" ); else valid->setText( "RowCountPtr: VALID" ); } void dRowCount::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLLEN num_rows; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLRowCount():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_PTR" ); pOdbcTest->out_win->append( txt ); if ( valid->isChecked() ) txt.sprintf( " RowCountPtr: out_win->append( txt ); num_rows = -9999; SQLRETURN ret = SQLRowCount( in_handle, valid->isChecked() ? NULL : &num_rows ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( num_rows == -9999 ) { txt.sprintf( " *RowCountPtr: " ); } else { txt.sprintf( " *RowCountPtr: %d", num_rows ); } pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dRowCount::dRowCount( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); valid = new QCheckBox( "RowCountPtr: VALID", this ); valid->setGeometry( 10, 80, 300, 15 ); connect( valid, SIGNAL( clicked()), this, SLOT( Valid())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dRowCount::~dRowCount() { delete ok; delete cancel; delete help; delete handles; delete valid; } void dMoreResults::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLMoreResults():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLMoreResults( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dMoreResults::dMoreResults( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dMoreResults::~dMoreResults() { delete ok; delete cancel; delete help; delete handles; } void dSetPos::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLUSMALLINT row_num, op_val, lock_val; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetPos():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); row_num = row_number->text().toInt(); txt.sprintf( " Row Number: %d", row_num ); pOdbcTest->out_win->append( txt ); index = operation->currentIndex(); op_val = set_pos_operation[ index ].value; txt.sprintf( " Operation: %s=%d", set_pos_operation[ index ].text, set_pos_operation[ index ].value ); pOdbcTest->out_win->append( txt ); index = lock_type->currentIndex(); lock_val = set_pos_lock_type[ index ].value; txt.sprintf( " Lock Type: %s=%d", set_pos_lock_type[ index ].text, set_pos_lock_type[ index ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetPos( in_handle, row_num, op_val, lock_val ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSetPos::dSetPos( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 100,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 180,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 260,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); row_number = new QLineEdit( this ); row_number->setGeometry( 130, 80, 70, 20 ); row_number->setMaxLength( 6 ); row_number->setText( "1" ); l_row_number = new QLabel( "Row Number:", this ); l_row_number->setGeometry( 10, 80, 120, 20 ); operation = new QComboBox( this ); operation->setGeometry( 130, 110, 200, 20 ); pOdbcTest->fill_list_box( set_pos_operation, operation ); l_operation = new QLabel( "Operation:", this ); l_operation->setGeometry( 10, 110, 120, 20 ); lock_type = new QComboBox( this ); lock_type->setGeometry( 130, 140, 200, 20 ); pOdbcTest->fill_list_box( set_pos_lock_type, lock_type ); l_lock_type = new QLabel( "Lock Type:", this ); l_lock_type->setGeometry( 10, 140, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dSetPos::~dSetPos() { delete ok; delete cancel; delete help; delete handles; delete operation; delete lock_type; delete l_handle; delete l_operation; delete l_lock_type; delete row_number; delete l_row_number; } void dBulkOperations::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLUSMALLINT op_val; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLBulkOperations():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = operation->currentIndex(); op_val = bulk_operation[ index ].value; txt.sprintf( " Operation: %s=%d", bulk_operation[ index ].text, bulk_operation[ index ].value ); pOdbcTest->out_win->append( txt ); index = operation->currentIndex(); op_val = bulk_operation[ index ].value; txt.sprintf( " Operation: %s=%d", bulk_operation[ index ].text, bulk_operation[ index ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLBulkOperations( in_handle, op_val ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dBulkOperations::dBulkOperations( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 150,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 230,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 310,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); operation = new QComboBox( this ); operation->setGeometry( 130, 80, 250, 20 ); pOdbcTest->fill_list_box( bulk_operation, operation ); l_operation = new QLabel( "Operation:", this ); l_operation->setGeometry( 10, 80, 100, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dBulkOperations::~dBulkOperations() { delete ok; delete cancel; delete help; delete handles; delete operation; delete l_handle; delete l_operation; } void dColAttribute::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; int index; SQLUSMALLINT column_number; SQLUSMALLINT field_identifier; SQLPOINTER buf; SQLSMALLINT b_len, *b_len_ptr, b_len_value; SQLLEN *numeric_ptr, numeric_value; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLColAttribute():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); column_number = col_num->text().toInt(); txt.sprintf( " Column Number: %d", column_number ); pOdbcTest->out_win->append( txt ); field_identifier = field_ident_struct[ index = field_ident->currentIndex() ].attr; txt.sprintf( " Field Identifier: %s=%d", field_ident_struct[ index ].text, field_ident_struct[ index ].attr ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( char_ptr_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = malloc( 300 ); } else { buf = malloc( b_len ); } if ( buf ) { txt.sprintf( " CharacterAttributePtr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " CharacterAttributePtr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked()) { b_len_ptr = NULL; } else { b_len_ptr = &b_len_value; } if ( b_len_ptr ) { txt.sprintf( " StringLengthPtr: %p", b_len_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " StringLengthPtr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } b_len_value = -9999; if ( numeric_valid->isChecked()) { numeric_ptr = NULL; } else { numeric_ptr = &numeric_value; } if ( numeric_ptr ) { txt.sprintf( " NumericAttributePtr: %p", numeric_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " NumericAttributePtr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } numeric_value = -99999; SQLRETURN ret = SQLColAttribute( in_handle, column_number, field_identifier, buf, b_len, b_len_ptr, numeric_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( field_ident_struct[ index ].data_type == SQL_CHAR ) { if ( b_len_ptr ) { if ( b_len_value != -9999 ) { txt.sprintf( " *StringLengthPtr: %d", b_len_value ); } else { txt.sprintf( " *StringLengthPtr: " ); } pOdbcTest->out_win->append( txt ); } if ( buf ) { txt.sprintf( " *CharacterAttributePtr: %s", buf ); pOdbcTest->out_win->append( txt ); } } else { if ( numeric_ptr ) { txt.sprintf( " *NumericAttributePtr: %d", numeric_value ); pOdbcTest->out_win->append( txt ); } } } pOdbcTest->out_win->append( "" ); if ( buf ) free( buf ); } void dColAttribute::char_ptr_clkd() { if ( char_ptr_valid->isChecked() ) char_ptr_valid->setText( "CharacterAttributePtr: SQL_NULL_HANDLE" ); else char_ptr_valid->setText( "CharacterAttributePtr: VALID" ); } void dColAttribute::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StringLengthPtr: SQL_NULL_HANDLE" ); else strlen_valid->setText( "StringLengthPtr: VALID" ); } void dColAttribute::numeric_clkd() { if ( numeric_valid->isChecked() ) numeric_valid->setText( "NumericAttributePtr: SQL_NULL_HANDLE" ); else numeric_valid->setText( "NumericAttributePtr: VALID" ); } dColAttribute::dColAttribute( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 250,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 330,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 410,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handles = new QLabel( "Statement Handle:", this ); l_handles->setGeometry( 10, 50, 120, 20 ); col_num = new QLineEdit( this ); col_num->setGeometry( 130, 80, 70, 20 ); col_num->setMaxLength( 6 ); col_num->setText( "1" ); l_col_num = new QLabel( "ColumnNumber:", this ); l_col_num->setGeometry( 10, 80, 100, 20 ); field_ident = new QComboBox( this ); field_ident->setGeometry( 130, 110, 350, 20 ); pOdbcTest->fill_list_box( field_ident_struct, field_ident ); l_field_ident = new QLabel( "FieldIdentifier::", this ); l_field_ident->setGeometry( 10, 110, 120, 20 ); char_ptr_valid = new QCheckBox( "CharacterAttributePtr: VALID", this ); char_ptr_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 140, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "BufferLength:", this ); l_buffer_len->setGeometry( 300, 140, 80, 20 ); strlen_valid = new QCheckBox( "StringLengthPtr: VALID", this ); strlen_valid->setGeometry( 10, 170, 300, 15 ); numeric_valid = new QCheckBox( "NumericAttributePtr: VALID", this ); numeric_valid->setGeometry( 10, 200, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( char_ptr_valid, SIGNAL( clicked()), this, SLOT( char_ptr_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); connect( numeric_valid, SIGNAL( clicked()), this, SLOT( numeric_clkd())); } dColAttribute::~dColAttribute() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete col_num; delete l_col_num; delete field_ident; delete l_field_ident; delete char_ptr_valid; delete strlen_valid; delete numeric_valid; delete buffer_len; delete l_buffer_len; } void dColAttributes::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; int index; SQLUSMALLINT column_number; SQLUSMALLINT field_identifier; SQLPOINTER buf; SQLSMALLINT b_len, *b_len_ptr, b_len_value; SQLLEN *numeric_ptr, numeric_value; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLColAttributes():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); column_number = col_num->text().toInt(); txt.sprintf( " icol: %d", column_number ); pOdbcTest->out_win->append( txt ); field_identifier = ca_field_ident_struct[ index = field_ident->currentIndex() ].attr; txt.sprintf( " fDescType: %s=%d", ca_field_ident_struct[ index ].text, ca_field_ident_struct[ index ].attr ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( char_ptr_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = malloc( 300 ); } else { buf = malloc( b_len ); } if ( buf ) { txt.sprintf( " rgbDesc: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " rgbDesc: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " cbDescMax: %d", b_len ); pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked()) { b_len_ptr = NULL; } else { b_len_ptr = &b_len_value; } if ( b_len_ptr ) { txt.sprintf( " pcbDesc: %p", b_len_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " pcbDesc: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } b_len_value = -9999; if ( numeric_valid->isChecked()) { numeric_ptr = NULL; } else { numeric_ptr = &numeric_value; } if ( numeric_ptr ) { txt.sprintf( " pfDesc: %p", numeric_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " pfDesc: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } numeric_value = -99999; SQLRETURN ret = SQLColAttributes( in_handle, column_number, field_identifier, buf, b_len, b_len_ptr, numeric_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( ca_field_ident_struct[ index ].data_type == SQL_CHAR ) { if ( b_len_ptr ) { if ( b_len_value != -9999 ) { txt.sprintf( " *pcbDesc: %d", b_len_value ); } else { txt.sprintf( " *pcbDesc: " ); } pOdbcTest->out_win->append( txt ); } if ( buf ) { txt.sprintf( " *rgbDesc: %s", buf ); pOdbcTest->out_win->append( txt ); } } else { if ( numeric_ptr ) { txt.sprintf( " *pfDesc: %d", numeric_value ); pOdbcTest->out_win->append( txt ); } } } pOdbcTest->out_win->append( "" ); if ( buf ) free( buf ); } void dColAttributes::char_ptr_clkd() { if ( char_ptr_valid->isChecked() ) char_ptr_valid->setText( "rgbDesc: SQL_NULL_HANDLE" ); else char_ptr_valid->setText( "rgbDesc: VALID" ); } void dColAttributes::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "pcbDesc: SQL_NULL_HANDLE" ); else strlen_valid->setText( "pcbDesc: VALID" ); } void dColAttributes::numeric_clkd() { if ( numeric_valid->isChecked() ) numeric_valid->setText( "pfDesc: SQL_NULL_HANDLE" ); else numeric_valid->setText( "pfDesc: VALID" ); } dColAttributes::dColAttributes( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 250,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 330,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 410,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handles = new QLabel( "Statement Handle:", this ); l_handles->setGeometry( 10, 50, 120, 20 ); col_num = new QLineEdit( this ); col_num->setGeometry( 130, 80, 70, 20 ); col_num->setMaxLength( 6 ); col_num->setText( "1" ); l_col_num = new QLabel( "icol:", this ); l_col_num->setGeometry( 10, 80, 100, 20 ); field_ident = new QComboBox( this ); field_ident->setGeometry( 130, 110, 350, 20 ); pOdbcTest->fill_list_box( ca_field_ident_struct, field_ident ); l_field_ident = new QLabel( "fDescType:", this ); l_field_ident->setGeometry( 10, 110, 120, 20 ); char_ptr_valid = new QCheckBox( "rgbDesc: VALID", this ); char_ptr_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 140, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "cbDescMax:", this ); l_buffer_len->setGeometry( 300, 140, 80, 20 ); strlen_valid = new QCheckBox( "pcbDesc: VALID", this ); strlen_valid->setGeometry( 10, 170, 300, 15 ); numeric_valid = new QCheckBox( "pfDesc: VALID", this ); numeric_valid->setGeometry( 10, 200, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( char_ptr_valid, SIGNAL( clicked()), this, SLOT( char_ptr_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); connect( numeric_valid, SIGNAL( clicked()), this, SLOT( numeric_clkd())); } dColAttributes::~dColAttributes() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete col_num; delete l_col_num; delete field_ident; delete l_field_ident; delete char_ptr_valid; delete strlen_valid; delete numeric_valid; delete buffer_len; delete l_buffer_len; } void dFetchScroll::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT fetch_orentation; SQLINTEGER fetch_offset; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLFetchScroll():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = orentation->currentIndex(); fetch_orentation = fetch_scroll_orentation[ index ].value; txt.sprintf( " FetchOrentation: %s=%d", fetch_scroll_orentation[ index ].text, fetch_scroll_orentation[ index ].value ); pOdbcTest->out_win->append( txt ); fetch_offset = offset->text().toInt(); txt.sprintf( " FetchOffset: %d", fetch_offset ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLFetchScroll( in_handle, fetch_orentation, fetch_offset ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dFetchScroll::dFetchScroll( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 200,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 280,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 360,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); orentation = new QComboBox( this ); orentation->setGeometry( 130, 80, 300, 20 ); pOdbcTest->fill_list_box( fetch_scroll_orentation, orentation ); l_orentation = new QLabel( "FetchOffset:", this ); l_orentation->setGeometry( 10, 80, 120, 20 ); offset = new QLineEdit( this ); offset->setGeometry( 130, 110, 70, 20 ); offset->setMaxLength( 6 ); offset->setText( "1" ); l_offset = new QLabel( "FetchOffset:", this ); l_offset->setGeometry( 10, 110, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dFetchScroll::~dFetchScroll() { delete ok; delete cancel; delete help; delete handles; delete orentation; delete offset; delete l_handle; delete l_orentation; delete l_offset; } void dExtendedFetch::count_ptr_clkd() { if ( count_ptr_valid->isChecked() ) count_ptr_valid->setText( "RowCountPtr: SQL_NULL_HANDLE" ); else count_ptr_valid->setText( "RowCountPtr: VALID" ); } void dExtendedFetch::status_ptr_clkd() { if ( status_ptr_valid->isChecked() ) status_ptr_valid->setText( "RowStatusArray: SQL_NULL_HANDLE" ); else status_ptr_valid->setText( "RowStatusArray: VALID" ); } void dExtendedFetch::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT fetch_orentation; SQLINTEGER fetch_offset; SQLULEN /* SQLUINTEGER */ *row_count_ptr; SQLULEN /* SQLUINTEGER */ row_count; SQLUSMALLINT *row_status_array; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLExtendedFetch():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = orentation->currentIndex(); fetch_orentation = fetch_scroll_orentation[ index ].value; txt.sprintf( " FetchOrentation: %s=%d", fetch_scroll_orentation[ index ].text, fetch_scroll_orentation[ index ].value ); pOdbcTest->out_win->append( txt ); fetch_offset = offset->text().toInt(); txt.sprintf( " FetchOffset: %d", fetch_offset ); pOdbcTest->out_win->append( txt ); if ( count_ptr_valid->isChecked()) { row_count_ptr = NULL; } else { row_count_ptr = &row_count; } if ( status_ptr_valid->isChecked()) { row_status_array = NULL; } else { if ( hand->row_array_size > 1 ) { row_status_array = new SQLUSMALLINT[ hand->row_array_size ]; } else { row_status_array = new SQLUSMALLINT[ 1 ]; } } SQLRETURN ret = SQLExtendedFetch( in_handle, fetch_orentation, fetch_offset, row_count_ptr, row_status_array ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( row_count_ptr ) { txt.sprintf( " *RowCountPtr: %d", row_count); pOdbcTest->out_win->append( txt ); } if ( row_status_array ) { if ( hand->row_array_size > 1 ) { /* * we need to display the rowset here... */ } else { txt.sprintf( " *RowStatusArray: %d", row_status_array[ 0 ]); pOdbcTest->out_win->append( txt ); } } } pOdbcTest->out_win->append( "" ); if ( row_status_array ) { delete row_status_array; } } dExtendedFetch::dExtendedFetch( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 200,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 280,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 360,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); orentation = new QComboBox( this ); orentation->setGeometry( 130, 80, 300, 20 ); pOdbcTest->fill_list_box( fetch_scroll_orentation, orentation ); l_orentation = new QLabel( "FetchOrentation:", this ); l_orentation->setGeometry( 10, 80, 120, 20 ); offset = new QLineEdit( this ); offset->setGeometry( 130, 110, 70, 20 ); offset->setMaxLength( 6 ); offset->setText( "1" ); l_offset = new QLabel( "FetchOffset:", this ); l_offset->setGeometry( 10, 110, 120, 20 ); count_ptr_valid = new QCheckBox( "RowCountPtr: VALID", this ); count_ptr_valid->setGeometry( 10, 140, 300, 15 ); status_ptr_valid = new QCheckBox( "RowStatusArray: VALID", this ); status_ptr_valid->setGeometry( 10, 170, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( count_ptr_valid, SIGNAL( clicked()), this, SLOT( count_ptr_clkd())); connect( status_ptr_valid, SIGNAL( clicked()), this, SLOT( status_ptr_clkd())); } dExtendedFetch::~dExtendedFetch() { delete ok; delete cancel; delete help; delete handles; delete orentation; delete offset; delete l_handle; delete l_orentation; delete l_offset; delete count_ptr_valid; delete status_ptr_valid; } void dSetScrollOptions::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLUSMALLINT fConcurrency, crowRowset; SQLINTEGER crowKeyset; int index; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetScrollOptions():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = concurrency->currentIndex(); fConcurrency = set_scroll_cur_operation[ index ].value; txt.sprintf( " fConcurrency: %s=%d", set_scroll_cur_operation[ index ].text, set_scroll_cur_operation[ index ].value ); pOdbcTest->out_win->append( txt ); index = keyset ->currentIndex(); crowKeyset = set_scroll_ks_values[ index ].value; txt.sprintf( " crowKeyset: %s=%d", set_scroll_ks_values[ index ].text, set_scroll_ks_values[ index ].value ); pOdbcTest->out_win->append( txt ); crowRowset = rowset->text().toInt(); txt.sprintf( " crowRowset: %d", crowRowset ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetScrollOptions( in_handle, fConcurrency, crowKeyset, crowRowset ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( crowRowset < 1 ) crowRowset = 1; hand->row_array_size = crowRowset; } pOdbcTest->out_win->append( "" ); } dSetScrollOptions::dSetScrollOptions( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 200,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 280,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 360,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); concurrency = new QComboBox( this ); concurrency->setGeometry( 130, 80, 300, 20 ); pOdbcTest->fill_list_box( set_scroll_cur_operation, concurrency ); l_concurrency = new QLabel( "fConcurrency:", this ); l_concurrency->setGeometry( 10, 80, 120, 20 ); keyset = new QComboBox( this ); keyset->setGeometry( 130, 110, 300, 20 ); pOdbcTest->fill_list_box( set_scroll_ks_values, keyset ); l_keyset = new QLabel( "crowKeyset:", this ); l_keyset->setGeometry( 10, 110, 120, 20 ); rowset = new QLineEdit( this ); rowset->setGeometry( 130, 140, 70, 20 ); rowset->setMaxLength( 6 ); rowset->setText( "1" ); l_rowset = new QLabel( "crowRowset:", this ); l_rowset->setGeometry( 10, 140, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dSetScrollOptions::~dSetScrollOptions() { delete ok; delete cancel; delete help; delete handles; delete concurrency; delete keyset; delete l_handle; delete l_concurrency; delete l_keyset; delete rowset; delete l_rowset; } void OdbcTest::slotBindCol() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotBulkOperations() { dBulkOperations *dlg = new dBulkOperations( this, "SQLBulkOperations" ); dlg->exec(); delete dlg; } void OdbcTest::slotColAttribute() { dColAttribute *dlg = new dColAttribute( this, "SQLColAttribute" ); dlg->exec(); delete dlg; } void OdbcTest::slotColAttributes() { dColAttributes *dlg = new dColAttributes( this, "SQLColAttributes" ); dlg->exec(); delete dlg; } void OdbcTest::slotDescribeCol() { dDescribeCol *dlg = new dDescribeCol( this, "SQLDescribeCol" ); dlg->exec(); delete dlg; } void OdbcTest::slotExtendedFetch() { dExtendedFetch *dlg = new dExtendedFetch( this, "SQLExtendedFetch" ); dlg->exec(); delete dlg; } void OdbcTest::slotFetch() { dFetch *dlg = new dFetch( this, "SQLFetch" ); dlg->exec(); delete dlg; } void OdbcTest::slotFetchScroll() { dFetchScroll *dlg = new dFetchScroll( this, "SQLFetchScroll" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetData() { dGetData *dlg = new dGetData( this, "SQLGetData" ); dlg->exec(); delete dlg; } void OdbcTest::slotMoreResults() { dMoreResults *dlg = new dMoreResults( this, "SQLMoreResults" ); dlg->exec(); delete dlg; } void OdbcTest::slotNumResultCols() { dNumResultCols *dlg = new dNumResultCols( this, "SQLNumResultCols" ); dlg->exec(); delete dlg; } void OdbcTest::slotRowCount() { dRowCount *dlg = new dRowCount( this, "SQLRowCount" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetPos() { dSetPos *dlg = new dSetPos( this, "SQLSetPos" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetScrollOptions() { dSetScrollOptions *dlg = new dSetScrollOptions( this, "SQLSetScrollOptions" ); dlg->exec(); delete dlg; } void OdbcTest::slotBindColAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotDescribeColAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotFetchAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::getDataStmt( SQLHANDLE hstmt ) { SQLRETURN ret; SQLSMALLINT column_count; struct column_info { SQLCHAR column_name[ 128 ]; SQLSMALLINT data_type; SQLULEN column_size; SQLCHAR column_buffer[ 64 ]; SQLLEN str_len; }; int i; int line_count; if ( !hstmt ) { return; } /* * Get number of columns */ ret = SQLNumResultCols( hstmt, &column_count ); if ( !SQL_SUCCEEDED( ret )) { dumpError( SQL_HANDLE_STMT, hstmt ); out_win->append( "SQLNumResultCols() failed\n" ); return; } if ( column_count < 1 ) { out_win->append( "No result columns\n" ); return; } /* * get column names and types */ struct column_info *col_info = new struct column_info[ column_count ]; for ( i = 0; i < column_count; i ++ ) { ret = SQLDescribeCol( hstmt, i + 1, col_info[ i ].column_name, sizeof( col_info[ i ].column_name ), NULL, &col_info[ i ].data_type, &col_info[ i ].column_size, NULL, NULL ); if ( !SQL_SUCCEEDED( ret )) { dumpError( SQL_HANDLE_STMT, hstmt ); out_win->append( "SQLDescribeCol() failed\n" ); delete col_info; return; } } /* * output buffer */ char *line = new char[ column_count * ( sizeof( col_info[ i ].column_name ) + 1 )]; line[ 0 ] = '\0'; for ( i = 0; i < column_count; i ++ ) { if ( i > 0 ) strcat( line, ":" ); strcat( line, (char *)col_info[ i ].column_name ); } out_win->append( line ); /* * get the data */ line_count = 0; while ( SQL_SUCCEEDED( ret = SQLFetch( hstmt ))) { line_count ++; line[ 0 ] = '\0'; for ( i = 0; i < column_count; i ++ ) { ret = SQLGetData( hstmt, i + 1, SQL_C_CHAR, col_info[ i ].column_buffer, sizeof( col_info[ i ].column_buffer ), &col_info[ i ].str_len ); if ( !SQL_SUCCEEDED( ret )) { dumpError( SQL_HANDLE_STMT, hstmt ); out_win->append( "SQLGetData() failed\n" ); delete line; delete col_info; return; } if ( i > 0 ) strcat( line, ":" ); if ( col_info[ i ].str_len < 0 ) { strcat( line, "NULL" ); } else { strcat( line, (char*)col_info[ i ].column_buffer ); } } out_win->append( line ); } if ( ret != SQL_NO_DATA ) { dumpError( SQL_HANDLE_STMT, hstmt ); out_win->append( "SQLFetch() failed\n" ); delete line; delete col_info; return; } /* * Eat any trunc errors */ do { SQLINTEGER native; SQLCHAR sqlstate[ 6 ]; SQLCHAR msg[ SQL_MAX_MESSAGE_LENGTH ]; ret = SQLError( SQL_NULL_HENV, SQL_NULL_HDBC, hstmt, sqlstate, &native, msg, sizeof( msg ), NULL ); } while ( SQL_SUCCEEDED( ret )); /* * close off the cursor */ ret = SQLCloseCursor( hstmt ); if ( !SQL_SUCCEEDED( ret )) { dumpError( SQL_HANDLE_STMT, hstmt ); out_win->append( "SQLCloseCursor() failed\n" ); delete line; delete col_info; return; } sprintf( line, "%d Line(s) Fetched\n", line_count ); out_win->append( line ); delete line; delete col_info; } void OdbcTest::slotGetDataAll() { /* * look for a statement handle */ SQLHANDLE hstmt = NULL; int handle_count = 0; char txt[ 128 ]; QListIterator i( listHandle ); while ( i.hasNext() ) { OdbcHandle *hand = i.next(); if ( !hand ) break; hand->toStr( txt ); if ( hand->getType() == SQL_HANDLE_STMT ) { handle_count ++; hstmt = hand->getHandle(); } } if ( handle_count == 0 ) { QMessageBox::about( this, "Get Data All", "No statement handles avalable" ); } else if ( handle_count == 1 ) { getDataStmt( hstmt ); } else { getDataStmt(); } } void OdbcTest::slotShowBoundCols() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotDisplayRowSet() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgDbcConnect.h0000644000175000001440000000326411506076311016033 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgDbcConnect : public QDialog { Q_OBJECT public: DlgDbcConnect( OdbcTest *pOdbcTest, QString stringTitle ); ~DlgDbcConnect(); protected: QComboBox * pcomboboxHandles; QComboBox * pcomboboxServers; QComboBox * pcomboboxUsers; QComboBox * pcomboboxAuthentications; QComboBox * pcomboboxServerLengths; QComboBox * pcomboboxUserLengths; QComboBox * pcomboboxAuthenticationLengths; OdbcTest * pOdbcTest; protected slots: void slotOk(); void slotHelp(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgDbcConnect.cpp0000644000175000001440000002371311506076311016367 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2009-01-02 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgDbcConnect.h" #include "OdbcTest.h" DlgDbcConnect::DlgDbcConnect( OdbcTest *pOdbcTest, QString stringTitle ) : QDialog( pOdbcTest ) { setWindowTitle( stringTitle ); this->pOdbcTest = pOdbcTest; // QDialogButtonBox *pDialogButtonBox = new QDialogButtonBox( this ); pDialogButtonBox->setStandardButtons( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help ); // connection handles... pcomboboxHandles = new QComboBox( this ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, pcomboboxHandles ); // servers... pcomboboxServers = new QComboBox( this ); pcomboboxServers->setEditable( true ); pcomboboxServers->insertItem( 0, "" ); pcomboboxServers->insertItem( 1, "" ); pcomboboxServerLengths = new QComboBox( this ); pcomboboxServerLengths->setEditable( true ); pcomboboxServerLengths->insertItem( 0, "SQL_NTS=-3" ); pcomboboxServerLengths->insertItem( 1, "0" ); { // get last environment handle... SQLHANDLE hEnvironment = SQL_NULL_HANDLE; { QListIterator i( pOdbcTest->listHandle ); while ( i.hasNext() ) { OdbcHandle *pOdbcHandle = i.next(); if ( pOdbcHandle && pOdbcHandle->getType() == SQL_HANDLE_ENV ) { hEnvironment = pOdbcHandle->getHandle(); } } } // use last environment handle to get list of servers (Data Source Names)... if ( hEnvironment ) { SQLRETURN nReturn; SQLCHAR szDataSourceName[ 128 ]; int nIndex = 2; nReturn = SQLDataSources( hEnvironment, SQL_FETCH_FIRST, szDataSourceName, sizeof( szDataSourceName ), NULL, NULL, 0, NULL ); while ( SQL_SUCCEEDED( nReturn ) ) { pcomboboxServers->insertItem( nIndex ++, ( char * )szDataSourceName ); nReturn = SQLDataSources( hEnvironment, SQL_FETCH_NEXT, szDataSourceName, sizeof( szDataSourceName ), NULL, NULL, 0, NULL ); } } } // users... pcomboboxUsers = new QComboBox( this ); pcomboboxUsers->setEditable( true ); pcomboboxUsers->insertItem( 0, "" ); pcomboboxUsers->insertItem( 1, "" ); pcomboboxUserLengths = new QComboBox( this ); pcomboboxUserLengths->setEditable( true ); pcomboboxUserLengths->insertItem( 0, "SQL_NTS=-3" ); pcomboboxUserLengths->insertItem( 1, "0" ); // authorizations... pcomboboxAuthentications = new QComboBox( this ); pcomboboxAuthentications->setEditable( true ); pcomboboxAuthentications->insertItem( 0, "" ); pcomboboxAuthentications->insertItem( 1, "" ); pcomboboxAuthenticationLengths = new QComboBox( this ); pcomboboxAuthenticationLengths->setEditable( true ); pcomboboxAuthenticationLengths->insertItem( 0, "SQL_NTS=-3" ); pcomboboxAuthenticationLengths->insertItem( 1, "0" ); // layout... QVBoxLayout *pLayoutTop = new QVBoxLayout( this ); QGridLayout *pLayout = new QGridLayout(); pLayoutTop->addLayout( pLayout ); pLayoutTop->addWidget( pDialogButtonBox ); pLayout->addWidget( new QLabel( "Handle:", this ), 0, 0 ); pLayout->addWidget( pcomboboxHandles, 0, 1 ); pLayout->addWidget( new QLabel( "Server:", this ), 1, 0 ); pLayout->addWidget( pcomboboxServers, 1, 1 ); pLayout->addWidget( new QLabel( "String Length:", this ), 1, 2 ); pLayout->addWidget( pcomboboxServerLengths, 1, 3 ); pLayout->addWidget( new QLabel( "User:", this ), 2, 0 ); pLayout->addWidget( pcomboboxUsers, 2, 1 ); pLayout->addWidget( new QLabel( "String Length:", this ), 2, 2 ); pLayout->addWidget( pcomboboxUserLengths, 2, 3 ); pLayout->addWidget( new QLabel( "Authentication:", this ), 3, 0 ); pLayout->addWidget( pcomboboxAuthentications, 3, 1 ); pLayout->addWidget( new QLabel( "String Length:", this ), 3, 2 ); pLayout->addWidget( pcomboboxAuthenticationLengths, 3, 3 ); // connect signals... connect( pDialogButtonBox, SIGNAL(accepted()), this, SLOT(slotOk()) ); connect( pDialogButtonBox, SIGNAL(rejected()), this, SLOT(reject()) ); connect( pDialogButtonBox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); } DlgDbcConnect::~DlgDbcConnect() { } void DlgDbcConnect::slotOk() { OdbcHandle *pOdbcHandle = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, pcomboboxHandles ); SQLHANDLE hConnection = SQL_NULL_HANDLE; QString stringServer = pcomboboxServers->currentText(); QString stringUser = pcomboboxUsers->currentText(); QString stringAuthentication = pcomboboxAuthentications->currentText(); QString stringServerLength = pcomboboxServerLengths->currentText(); QString stringUserLength = pcomboboxUserLengths->currentText(); QString stringAuthenticationLength = pcomboboxAuthenticationLengths->currentText(); if ( pOdbcHandle ) hConnection = pOdbcHandle->getHandle(); pOdbcTest->out_win->append( "SQLConnect():" ); pOdbcTest->out_win->append( " In:" ); // connection handle... if ( hConnection ) pOdbcTest->out_win->append( QString( tr(" Connection Handle: %1") ).arg( (ulong)hConnection ) ); else pOdbcTest->out_win->append( tr(" Connection Handle: SQL_NULL_HDBC") ); // server string... if ( stringServer == "" ) { stringServer = QString(); pOdbcTest->out_win->append( tr(" Server: " ) ); } else if ( stringServer == "" ) { stringServer = ""; pOdbcTest->out_win->append( tr(" Server: " ) ); } else pOdbcTest->out_win->append( tr(" Server: ") + stringServer ); // server string length... if ( stringServerLength.left( 7 ) == "SQL_NTS" ) { stringServerLength = QString::number( SQL_NTS ); pOdbcTest->out_win->append( tr(" Server Len: SQL_NTS=-3" ) ); } else pOdbcTest->out_win->append( QString( tr(" Server Len: %1") ).arg( stringServerLength.toInt() ) ); // user string... if ( stringUser == "" ) { stringUser = QString(); pOdbcTest->out_win->append( tr(" User: ") ); } else if ( stringUser == "" ) { stringUser = ""; pOdbcTest->out_win->append( tr(" User: ") ); } else pOdbcTest->out_win->append( QString( tr(" User: ") + stringUser ) ); // user string length... if ( stringUserLength.left( 7 ) == "SQL_NTS" ) { stringUserLength = QString::number( SQL_NTS ); pOdbcTest->out_win->append( tr(" User Len: SQL_NTS=-3") ); } else pOdbcTest->out_win->append( QString( tr(" User Len: %1") ).arg( stringUserLength.toInt() ) ); // authorization string... if ( stringAuthentication == "" ) { stringAuthentication = QString(); pOdbcTest->out_win->append( tr(" Auth: ") ); } else if ( stringAuthentication == "" ) { stringAuthentication = ""; pOdbcTest->out_win->append( tr(" Auth: ") ); } else pOdbcTest->out_win->append( QString( tr(" Auth: ") + stringAuthentication ) ); // authorization string length... if ( stringAuthenticationLength.left( 7 ) == "SQL_NTS" ) { stringAuthenticationLength = QString::number( SQL_NTS ); pOdbcTest->out_win->append( tr(" Auth Len: SQL_NTS=-3" ) ); } else pOdbcTest->out_win->append( QString( tr(" Auth Len: %1") ).arg( stringAuthenticationLength.toInt() ) ); /* printf( "[PAH][%s][%d][%s] [%s][%d][%s][%d][%s][%d]\n", __FILE__, __LINE__, __FUNCTION__, (SQLCHAR*)stringServer.toAscii().data(), stringServerLength.toInt(), (SQLCHAR*)stringUser.toAscii().data(), stringUserLength.toInt(), (SQLCHAR*)stringAuthentication.toAscii().data(), stringAuthenticationLength.toInt() ); */ // do it... SQLRETURN nReturn = SQLConnect( hConnection, (SQLCHAR*)stringServer.toAscii().data(), stringServerLength.toInt(), (SQLCHAR*)stringUser.toAscii().data(), stringUserLength.toInt(), (SQLCHAR*)stringAuthentication.toAscii().data(), stringAuthenticationLength.toInt() ); // return value... pOdbcTest->out_win->append( " Return:" ); pOdbcTest->out_win->append( QString( tr(" %1=%2") ).arg( pOdbcTest->return_as_text( nReturn ) ).arg( nReturn ) ); pOdbcTest->out_win->append( "" ); accept(); } void DlgDbcConnect::slotHelp() { } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvDataSources.h0000644000175000001440000000350511506076311016715 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvDataSources : public QDialog { Q_OBJECT public: DlgEnvDataSources( OdbcTest *pOdbcTest, QString name ); ~DlgEnvDataSources(); protected: QDialogButtonBox *pDialogButtonBox; QComboBox *handles, *direction; QCheckBox *server_valid, *nlp1_valid, *description_valid, *nlp2_valid; QLabel *l_handles, *l_direction, *l_server_len, *l_description_len; QLineEdit *server_len, *description_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void slotDone(); void server_clkd(); void description_clkd(); void nlp1_clkd(); void nlp2_clkd(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/stmt.h0000644000175000001440000002011411506076311014362 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dPrepare : public QDialog { Q_OBJECT public: dPrepare( OdbcTest *pOdbcTest, QString name ); ~dPrepare(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *str, *name_len; QLabel *l_handle, *l_str, *l_name_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dExecute : public QDialog { Q_OBJECT public: dExecute( OdbcTest *pOdbcTest, QString name ); ~dExecute(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dExecDirect : public QDialog { Q_OBJECT public: dExecDirect( OdbcTest *pOdbcTest, QString name ); ~dExecDirect(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *str, *name_len; QLabel *l_handle, *l_str, *l_name_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dNumParams : public QDialog { Q_OBJECT public: dNumParams( OdbcTest *pOdbcTest, QString name ); ~dNumParams(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QCheckBox *valid; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Valid(); void Ok(); }; class dCancel : public QDialog { Q_OBJECT public: dCancel( OdbcTest *pOdbcTest, QString name ); ~dCancel(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dCloseCursor : public QDialog { Q_OBJECT public: dCloseCursor( OdbcTest *pOdbcTest, QString name ); ~dCloseCursor(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dGetCursorName : public QDialog { Q_OBJECT public: dGetCursorName( OdbcTest *pOdbcTest, QString name ); ~dGetCursorName(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *option; QLabel *l_handle, *l_option, *l_buffer_len; QCheckBox *name_valid, *cursor_valid; QLineEdit *buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void CursorValid(); void NameValid(); }; class dFreeStmt : public QDialog { Q_OBJECT public: dFreeStmt( OdbcTest *pOdbcTest, QString name ); ~dFreeStmt(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *option; QLabel *l_handle, *l_option; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dSetCursorName : public QDialog { Q_OBJECT public: dSetCursorName( OdbcTest *pOdbcTest, QString name ); ~dSetCursorName(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *str, *name_len; QLabel *l_handle, *l_str, *l_name_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dDescribeParam : public QDialog { Q_OBJECT public: dDescribeParam( OdbcTest *pOdbcTest, QString name ); ~dDescribeParam(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLineEdit *param_num; QLabel *l_handle, *l_param_num; QCheckBox *type_valid; QCheckBox *digit_valid; QCheckBox *size_valid; QCheckBox *null_valid; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; const char *data_type_to_str( int ); protected slots: void type_clkd(); void digit_clkd(); void size_clkd(); void null_clkd(); void Ok(); }; class dParamData : public QDialog { Q_OBJECT public: dParamData( OdbcTest *pOdbcTest, QString name ); ~dParamData(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QCheckBox *value_valid; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void value_clkd(); void Ok(); }; class dParamOption : public QDialog { Q_OBJECT public: dParamOption( OdbcTest *pOdbcTest, QString name ); ~dParamOption(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QLineEdit *crow_num; QLabel *l_param_num, *l_crow_num; QCheckBox *pirow_valid; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void pirow_clkd(); void Ok(); }; class dPutData : public QDialog { Q_OBJECT public: dPutData( OdbcTest *pOdbcTest, QString name ); ~dPutData(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *data_ptr, *str_len; QLabel *l_handle, *l_data_ptr, *l_str_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dBindParameter : public QDialog { Q_OBJECT public: dBindParameter( OdbcTest *pOdbcTest, QString name ); ~dBindParameter(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *io_type, *value_type; QComboBox *param_type, *param_value, *strlen_or_ind; QLabel *l_handle, *l_io_type, *l_value_type; QLabel *l_param_type, *l_param_value, *l_strlen_or_ind, *l_param_num; QLineEdit *column_size, *decimal_digits, *buffer_length, *param_num; QLabel *l_column_size, *l_decimal_digits, *l_buffer_length; QCheckBox *len_data_at_exec; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dBindParam : public QDialog { Q_OBJECT public: dBindParam( OdbcTest *pOdbcTest, QString name ); ~dBindParam(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *value_type; QComboBox *param_type, *param_value, *strlen_or_ind; QLabel *l_handle, *l_value_type; QLabel *l_param_type, *l_param_value, *l_strlen_or_ind, *l_param_num; QLineEdit *column_size, *decimal_digits, *param_num; QLabel *l_column_size, *l_decimal_digits; QCheckBox *len_data_at_exec; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dAllocStmt : public QDialog { Q_OBJECT public: dAllocStmt( OdbcTest *pOdbcTest, QString name ); ~dAllocStmt(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QCheckBox *handle_valid; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void handle_clkd(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvEndTran.cpp0000644000175000001440000000771311506076311016373 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvEndTran.h" #include "OdbcTest.h" void DlgEnvEndTran::sel_handle( int /* index */ ) { int handle_t; handles->clear(); handle_t = pEnvHandleTypes[ handle_type->currentIndex() ].value; pOdbcTest->fill_handle_list( handle_t, handles ); } void DlgEnvEndTran::Ok() { int htype = pEnvHandleTypes[ handle_type->currentIndex() ].value; OdbcHandle *hand = pOdbcTest->extract_handle_list( htype, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT completion; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLEndTran():" ); pOdbcTest->out_win->append( " In:" ); txt.sprintf( " Handle Type: %s", pEnvHandleTypes[ handle_type->currentIndex() ].text ); pOdbcTest->out_win->append( txt ); if ( in_handle ) txt.sprintf( " Handle: %p", in_handle ); else txt.sprintf( " Handle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); completion = pEnvCompletionTypes[ completion_type->currentIndex() ].value; SQLRETURN ret = SQLEndTran( htype, in_handle, completion ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } DlgEnvEndTran::DlgEnvEndTran( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 110,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 190,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 270,10, 70,25 ); handle_type = new QComboBox( this ); handle_type->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_list_box( pEnvHandleTypes, handle_type ); l_handle_type = new QLabel( "Handle Type:", this ); l_handle_type->setGeometry( 10, 50, 120, 20 ); handles = new QComboBox( this ); handles->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 80, 120, 20 ); completion_type = new QComboBox( this ); completion_type->setGeometry( 130, 110, 200, 20 ); pOdbcTest->fill_list_box( pEnvCompletionTypes, completion_type ); l_completion_type = new QLabel( "Completion Type:", this ); l_completion_type->setGeometry( 10, 110, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( handle_type, SIGNAL(activated(int)), this, SLOT( sel_handle(int))); } DlgEnvEndTran::~DlgEnvEndTran() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete handle_type; delete l_handle_type; delete completion_type; delete l_completion_type; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsManageTest.cpp0000644000175000001440000000546311506076452017623 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsManageTest.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsManageTest.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsManageTest.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsManageTest[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 20, 19, 19, 19, 0x09, 25, 19, 19, 19, 0x09, 37, 19, 19, 19, 0x09, 55, 49, 19, 19, 0x09, 74, 70, 19, 19, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsManageTest[] = { "DlgToolsManageTest\0\0Ok()\0NewSource()\0" "DelSource()\0index\0Activated(int)\0str\0" "Activated(QString)\0" }; const QMetaObject DlgToolsManageTest::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsManageTest, qt_meta_data_DlgToolsManageTest, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsManageTest::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsManageTest::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsManageTest::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsManageTest)) return static_cast(const_cast< DlgToolsManageTest*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsManageTest::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: NewSource(); break; case 2: DelSource(); break; case 3: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: Activated((*reinterpret_cast< const QString(*)>(_a[1]))); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/README0000644000175000001440000000136311506076311014107 00000000000000+-------------------------------------------------------------+ | ODBCTestQ4 | +-------------------------------------------------------------+ README --------------------------------------------------------------- Description: This is a program which allows menu driven execution of ODBC calls. This program also allows 'auto tests' to be executed. This program has been created to provide similar functionality as the MS odbctst32.exe program. Authors: This program was created by Nick Gorham and then heavily modified by Peter Harvey during a pure Qt4 port. Some features may not be ported at this time. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvFreeHandle.cpp0000644000175000001440000000737511506076311017041 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvFreeHandle.h" #include "OdbcTest.h" void DlgEnvFreeHandle::Ok() { SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLRETURN ret; SQLINTEGER type; const char *handle; switch( types->currentIndex()) { case 0: type = SQL_HANDLE_ENV; handle = "SQL_HANDLE_ENV=1"; break; case 1: type = SQL_HANDLE_DBC; handle = "SQL_HANDLE_DBC=2"; break; case 2: type = SQL_HANDLE_STMT; handle = "SQL_HANDLE_STMT=3"; break; case 3: type = SQL_HANDLE_DESC; handle = "SQL_HANDLE_DESC=4"; break; } /* * get input handle */ OdbcHandle *hand = pOdbcTest->extract_handle_list( -1, handles ); if ( hand ) in_handle = hand->getHandle(); ret = SQLFreeHandle( type, in_handle ); pOdbcTest->out_win->append( "SQLFreeHandle():" ); pOdbcTest->out_win->append( " In:" ); txt.sprintf( " Handle Type: %s", handle ); pOdbcTest->out_win->append( txt ); if ( in_handle ) txt.sprintf( " InputHandle: %p", in_handle ); else txt.sprintf( " InputHandle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->listHandle.removeAll( hand ); delete hand; } } DlgEnvFreeHandle::DlgEnvFreeHandle( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 120, 80, 200, 20 ); pOdbcTest->fill_handle_list( -1, handles ); types = new QComboBox( this ); types->setGeometry( 120, 50, 200, 20 ); types->insertItem( 0, "SQL_HANDLE_ENV=1 (3.0)" ); types->insertItem( 1, "SQL_HANDLE_DBC=2 (3.0)" ); types->insertItem( 2, "SQL_HANDLE_STMT=3 (3.0)" ); types->insertItem( 3, "SQL_HANDLE_DESC=3 (3.0)" ); l_handle = new QLabel( "InputHandle:", this ); l_handle->setGeometry( 10, 80, 70, 20 ); l_types = new QLabel( "HandleType:", this ); l_types->setGeometry( 10, 50, 70, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } DlgEnvFreeHandle::~DlgEnvFreeHandle() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsNewGroup.cpp0000644000175000001440000000452511506076452017337 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsNewGroup.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsNewGroup.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsNewGroup.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsNewGroup[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 18, 17, 17, 17, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsNewGroup[] = { "DlgToolsNewGroup\0\0Ok()\0" }; const QMetaObject DlgToolsNewGroup::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsNewGroup, qt_meta_data_DlgToolsNewGroup, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsNewGroup::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsNewGroup::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsNewGroup::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsNewGroup)) return static_cast(const_cast< DlgToolsNewGroup*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsNewGroup::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageTest.cpp0000644000175000001440000001703211506076311017433 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsManageTest.h" #include "DlgToolsNewSource.h" #include "OdbcTest.h" DlgToolsManageTest::DlgToolsManageTest( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; close = new QPushButton( "Close", this ); close->setGeometry( 270,80, 70,25 ); nw = new QPushButton( "New", this ); nw->setGeometry( 270,110, 70,25 ); del = new QPushButton( "Delete", this ); del->setGeometry( 270,140, 70,25 ); test_source = new QComboBox( this ); test_source->setGeometry( 100, 20, 250, 20 ); l_ts = new QLabel( "Test Source:", this ); l_ts->setGeometry( 10, 20, 80, 20 ); param = new QGroupBox( "Connect Parameters", this ); param->setGeometry( 10, 60, 240, 125 ); dsn = new QComboBox( this ); dsn->setGeometry( 80, 90, 150, 20 ); l_dsn = new QLabel( "DSN:", this ); l_dsn->setGeometry( 20, 90, 60, 20 ); uid = new QLineEdit( this ); uid->setGeometry( 80, 120, 150, 20 ); uid->setMaxLength( 128 ); l_uid = new QLabel( "UID:", this ); l_uid->setGeometry( 20, 120, 60, 20 ); pwd = new QLineEdit( this ); pwd->setGeometry( 80, 150, 150, 20 ); pwd->setMaxLength( 128 ); l_pwd = new QLabel( "PWD:", this ); l_pwd->setGeometry( 20, 150, 60, 20 ); kw = new QLineEdit( this ); kw->setGeometry( 80, 200, 250, 20 ); kw->setMaxLength( 128 ); l_kw = new QLabel( "Keywords:", this ); l_kw->setGeometry( 10, 200, 60, 20 ); connect( close, SIGNAL(clicked()), SLOT(Ok()) ); connect( close, SIGNAL(clicked()), SLOT(accept()) ); connect( nw, SIGNAL(clicked()), SLOT(NewSource()) ); connect( del, SIGNAL(clicked()), SLOT(DelSource()) ); // load driver list... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); test_source->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // load dsn list... pOdbcTest->fill_dsn_list( dsn ); // // set up other fields // Activated( 0 ); connect( test_source, SIGNAL(activated(const QString &)), this, SLOT( Activated(const QString &))); } DlgToolsManageTest::~DlgToolsManageTest() { // sync settings with disk (mostly means 'save changes') { pOdbcTest->pSettings->sync(); QSettings::Status nStatus = pOdbcTest->pSettings->status(); switch ( nStatus ) { case QSettings::AccessError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AccessError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::FormatError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("FormatError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::NoError: default: break; } } delete close; delete nw; delete del; delete test_source; delete dsn; delete l_dsn; delete l_ts; delete pwd; delete l_pwd; delete kw; delete l_kw; delete param; } void DlgToolsManageTest::Activated( const QString &str ) { // did we find section... if ( pOdbcTest->pSettings->contains( str ) ) { uid->clear(); pwd->clear(); kw->clear(); return; } // load dsn details... pOdbcTest->pSettings->beginGroup( str ); foreach ( QString stringKey, pOdbcTest->pSettings->allKeys() ) { if ( stringKey == "SERVER0" ) { pOdbcTest->set_dsn_list( dsn, pOdbcTest->pSettings->value( stringKey ).toString() ); } else if ( stringKey == "LOGIN0" ) { uid->setText( pOdbcTest->pSettings->value( stringKey ).toString() ); } else if ( stringKey == "PASSWORD0" ) { pwd->setText( pOdbcTest->pSettings->value( stringKey ).toString() ); } else if ( stringKey == "KEYWORDS" ) { kw->setText( pOdbcTest->pSettings->value( stringKey ).toString() ); } } pOdbcTest->pSettings->endGroup(); } void DlgToolsManageTest::Activated( int val ) { if ( test_source->count() > 0 ) { Activated( test_source->itemText( val ) ); } } void DlgToolsManageTest::Ok() { // find driver name... QString driver = test_source->currentText(); if ( driver.isEmpty() ) return; // apply... pOdbcTest->pSettings->beginGroup( driver ); pOdbcTest->pSettings->remove( "" ); // removes all key/values within group pOdbcTest->pSettings->setValue( "SERVER0", dsn->currentText() ); pOdbcTest->pSettings->setValue( "LOGIN0", uid->text() ); pOdbcTest->pSettings->setValue( "PASSWORD0", pwd->text() ); pOdbcTest->pSettings->setValue( "KEYWORDS", kw->text() ); pOdbcTest->pSettings->endGroup(); } void DlgToolsManageTest::NewSource() { DlgToolsNewSource *dlg = new DlgToolsNewSource( pOdbcTest, "New Test Sources", this ); dlg->exec(); delete dlg; // reload list... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); test_source->clear(); test_source->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // make last (new one) the current one... Activated( test_source->count() - 1 ); test_source->setCurrentIndex( test_source->count() - 1 ); } void DlgToolsManageTest::DelSource() { if ( test_source->count() == 0 ) return; // which driver is current... QString driver = test_source->currentText(); if ( driver.isEmpty() ) return; // do we really want to do this... if ( QMessageBox::information( this, "OdbcTest", QString( "Delete the test source %1?" ).arg( driver ), "&Delete", "&Cancel", 0, 0, 1 ) != 0 ) { return; } // remove from master list... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); pOdbcTest->pSettings->remove( driver ); pOdbcTest->pSettings->endGroup(); // remove section... pOdbcTest->pSettings->remove( driver ); // reload list... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); test_source->clear(); test_source->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // make first the current one... Activated( 0 ); test_source->setCurrentIndex( 0 ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvFreeEnv.h0000644000175000001440000000303111506076310016023 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvFreeEnv : public QDialog { Q_OBJECT public: DlgEnvFreeEnv( OdbcTest *pOdbcTest, QString name ); ~DlgEnvFreeEnv(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QComboBox *handles; QLabel *l_handles; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvAllocEnv.cpp0000644000175000001440000000463211506076452016723 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvAllocEnv.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvAllocEnv.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvAllocEnv.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvAllocEnv[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 27, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvAllocEnv[] = { "DlgEnvAllocEnv\0\0slotDone()\0handle_clkd()\0" }; const QMetaObject DlgEnvAllocEnv::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvAllocEnv, qt_meta_data_DlgEnvAllocEnv, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvAllocEnv::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvAllocEnv::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvAllocEnv::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvAllocEnv)) return static_cast(const_cast< DlgEnvAllocEnv*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvAllocEnv::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotDone(); break; case 1: handle_clkd(); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mcatalog.cpp0000644000175000001440000004307011506076452015531 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'catalog.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "catalog.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'catalog.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dTables[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 9, 8, 8, 8, 0x09, 0 // eod }; static const char qt_meta_stringdata_dTables[] = { "dTables\0\0Ok()\0" }; const QMetaObject dTables::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dTables, qt_meta_data_dTables, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dTables::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dTables::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dTables::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dTables)) return static_cast(const_cast< dTables*>(this)); return QDialog::qt_metacast(_clname); } int dTables::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dColumns[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dColumns[] = { "dColumns\0\0Ok()\0" }; const QMetaObject dColumns::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dColumns, qt_meta_data_dColumns, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dColumns::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dColumns::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dColumns::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dColumns)) return static_cast(const_cast< dColumns*>(this)); return QDialog::qt_metacast(_clname); } int dColumns::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dColumnPrivileges[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_dColumnPrivileges[] = { "dColumnPrivileges\0\0Ok()\0" }; const QMetaObject dColumnPrivileges::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dColumnPrivileges, qt_meta_data_dColumnPrivileges, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dColumnPrivileges::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dColumnPrivileges::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dColumnPrivileges::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dColumnPrivileges)) return static_cast(const_cast< dColumnPrivileges*>(this)); return QDialog::qt_metacast(_clname); } int dColumnPrivileges::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dForeignKeys[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dForeignKeys[] = { "dForeignKeys\0\0Ok()\0" }; const QMetaObject dForeignKeys::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dForeignKeys, qt_meta_data_dForeignKeys, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dForeignKeys::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dForeignKeys::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dForeignKeys::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dForeignKeys)) return static_cast(const_cast< dForeignKeys*>(this)); return QDialog::qt_metacast(_clname); } int dForeignKeys::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dPrimaryKeys[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dPrimaryKeys[] = { "dPrimaryKeys\0\0Ok()\0" }; const QMetaObject dPrimaryKeys::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dPrimaryKeys, qt_meta_data_dPrimaryKeys, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dPrimaryKeys::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dPrimaryKeys::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dPrimaryKeys::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dPrimaryKeys)) return static_cast(const_cast< dPrimaryKeys*>(this)); return QDialog::qt_metacast(_clname); } int dPrimaryKeys::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dProcedures[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dProcedures[] = { "dProcedures\0\0Ok()\0" }; const QMetaObject dProcedures::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dProcedures, qt_meta_data_dProcedures, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dProcedures::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dProcedures::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dProcedures::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dProcedures)) return static_cast(const_cast< dProcedures*>(this)); return QDialog::qt_metacast(_clname); } int dProcedures::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dProcedureColumns[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_dProcedureColumns[] = { "dProcedureColumns\0\0Ok()\0" }; const QMetaObject dProcedureColumns::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dProcedureColumns, qt_meta_data_dProcedureColumns, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dProcedureColumns::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dProcedureColumns::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dProcedureColumns::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dProcedureColumns)) return static_cast(const_cast< dProcedureColumns*>(this)); return QDialog::qt_metacast(_clname); } int dProcedureColumns::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dTablePrivileges[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 18, 17, 17, 17, 0x09, 0 // eod }; static const char qt_meta_stringdata_dTablePrivileges[] = { "dTablePrivileges\0\0Ok()\0" }; const QMetaObject dTablePrivileges::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dTablePrivileges, qt_meta_data_dTablePrivileges, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dTablePrivileges::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dTablePrivileges::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dTablePrivileges::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dTablePrivileges)) return static_cast(const_cast< dTablePrivileges*>(this)); return QDialog::qt_metacast(_clname); } int dTablePrivileges::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dGetTypeInfo[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetTypeInfo[] = { "dGetTypeInfo\0\0Ok()\0" }; const QMetaObject dGetTypeInfo::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetTypeInfo, qt_meta_data_dGetTypeInfo, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetTypeInfo::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetTypeInfo::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetTypeInfo::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetTypeInfo)) return static_cast(const_cast< dGetTypeInfo*>(this)); return QDialog::qt_metacast(_clname); } int dGetTypeInfo::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dStatistics[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dStatistics[] = { "dStatistics\0\0Ok()\0" }; const QMetaObject dStatistics::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dStatistics, qt_meta_data_dStatistics, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dStatistics::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dStatistics::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dStatistics::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dStatistics)) return static_cast(const_cast< dStatistics*>(this)); return QDialog::qt_metacast(_clname); } int dStatistics::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dSpecialColumns[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 17, 16, 16, 16, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSpecialColumns[] = { "dSpecialColumns\0\0Ok()\0" }; const QMetaObject dSpecialColumns::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSpecialColumns, qt_meta_data_dSpecialColumns, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSpecialColumns::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSpecialColumns::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSpecialColumns::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSpecialColumns)) return static_cast(const_cast< dSpecialColumns*>(this)); return QDialog::qt_metacast(_clname); } int dSpecialColumns::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgDbcConnect.cpp0000644000175000001440000000460111506076452016545 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgDbcConnect.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgDbcConnect.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgDbcConnect.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgDbcConnect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 24, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgDbcConnect[] = { "DlgDbcConnect\0\0slotOk()\0slotHelp()\0" }; const QMetaObject DlgDbcConnect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgDbcConnect, qt_meta_data_DlgDbcConnect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgDbcConnect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgDbcConnect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgDbcConnect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgDbcConnect)) return static_cast(const_cast< DlgDbcConnect*>(this)); return QDialog::qt_metacast(_clname); } int DlgDbcConnect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotOk(); break; case 1: slotHelp(); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mdiag.cpp0000644000175000001440000001454711506076452015032 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'diag.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "diag.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'diag.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dError[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 8, 7, 7, 7, 0x09, 13, 7, 7, 7, 0x09, 27, 7, 7, 7, 0x09, 40, 7, 7, 7, 0x09, 54, 7, 7, 7, 0x09, 0 // eod }; static const char qt_meta_stringdata_dError[] = { "dError\0\0Ok()\0native_clkd()\0error_clkd()\0" "perror_clkd()\0sqlstate_clkd()\0" }; const QMetaObject dError::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dError, qt_meta_data_dError, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dError::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dError::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dError::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dError)) return static_cast(const_cast< dError*>(this)); return QDialog::qt_metacast(_clname); } int dError::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: native_clkd(); break; case 2: error_clkd(); break; case 3: perror_clkd(); break; case 4: sqlstate_clkd(); break; default: ; } _id -= 5; } return _id; } static const uint qt_meta_data_dGetDiagRec[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 6, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 18, 12, 12, 12, 0x09, 32, 12, 12, 12, 0x09, 45, 12, 12, 12, 0x09, 59, 12, 12, 12, 0x09, 75, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetDiagRec[] = { "dGetDiagRec\0\0Ok()\0native_clkd()\0" "error_clkd()\0perror_clkd()\0sqlstate_clkd()\0" "sel_handle(int)\0" }; const QMetaObject dGetDiagRec::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetDiagRec, qt_meta_data_dGetDiagRec, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetDiagRec::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetDiagRec::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetDiagRec::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetDiagRec)) return static_cast(const_cast< dGetDiagRec*>(this)); return QDialog::qt_metacast(_clname); } int dGetDiagRec::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: native_clkd(); break; case 2: error_clkd(); break; case 3: perror_clkd(); break; case 4: sqlstate_clkd(); break; case 5: sel_handle((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 6; } return _id; } static const uint qt_meta_data_dGetDiagField[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 36, 14, 14, 14, 0x09, 50, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetDiagField[] = { "dGetDiagField\0\0Ok()\0diag_ptr_clkd()\0" "strlen_clkd()\0sel_handle(int)\0" }; const QMetaObject dGetDiagField::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetDiagField, qt_meta_data_dGetDiagField, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetDiagField::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetDiagField::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetDiagField::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetDiagField)) return static_cast(const_cast< dGetDiagField*>(this)); return QDialog::qt_metacast(_clname); } int dGetDiagField::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: diag_ptr_clkd(); break; case 2: strlen_clkd(); break; case 3: sel_handle((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 4; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/desc.h0000644000175000001440000000554711506076311014326 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dCopyDesc : public QDialog { Q_OBJECT public: dCopyDesc( OdbcTest *pOdbcTest, QString name ); ~dCopyDesc(); protected: QPushButton *ok, *cancel, *help; QComboBox *handle1, *handle2; QLabel *l_handle1, *l_handle2; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dGetDescField : public QDialog { Q_OBJECT public: dGetDescField( OdbcTest *pOdbcTest, QString name ); ~dGetDescField(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *diag_info; QLabel *l_handle_type, *l_handles, *l_buffer_len, *l_rec_num, *l_diag_info; QCheckBox *ptr_valid, *strlen_valid; QLineEdit *buffer_len, *rec_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void ptr_clkd(); void strlen_clkd(); }; class dGetDescRec : public QDialog { Q_OBJECT public: dGetDescRec( OdbcTest *pOdbcTest, QString name ); ~dGetDescRec(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle_type, *l_handles, *l_buffer_len, *l_rec_num; QCheckBox *name_valid, *strlen_valid, *type_valid, *sub_type_valid; QCheckBox *length_valid, *precision_valid, *scale_valid, *nullable_valid; QLineEdit *buffer_len, *rec_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void name_clkd(); void strlen_clkd(); void type_clkd(); void sub_type_clkd(); void length_clkd(); void precision_clkd(); void scale_clkd(); void nullable_clkd(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mstmt.cpp0000644000175000001440000006326011506076452015111 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'stmt.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "stmt.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'stmt.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dPrepare[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dPrepare[] = { "dPrepare\0\0Ok()\0" }; const QMetaObject dPrepare::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dPrepare, qt_meta_data_dPrepare, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dPrepare::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dPrepare::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dPrepare::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dPrepare)) return static_cast(const_cast< dPrepare*>(this)); return QDialog::qt_metacast(_clname); } int dPrepare::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dExecute[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dExecute[] = { "dExecute\0\0Ok()\0" }; const QMetaObject dExecute::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dExecute, qt_meta_data_dExecute, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dExecute::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dExecute::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dExecute::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dExecute)) return static_cast(const_cast< dExecute*>(this)); return QDialog::qt_metacast(_clname); } int dExecute::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dExecDirect[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dExecDirect[] = { "dExecDirect\0\0Ok()\0" }; const QMetaObject dExecDirect::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dExecDirect, qt_meta_data_dExecDirect, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dExecDirect::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dExecDirect::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dExecDirect::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dExecDirect)) return static_cast(const_cast< dExecDirect*>(this)); return QDialog::qt_metacast(_clname); } int dExecDirect::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dNumParams[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 20, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_dNumParams[] = { "dNumParams\0\0Valid()\0Ok()\0" }; const QMetaObject dNumParams::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dNumParams, qt_meta_data_dNumParams, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dNumParams::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dNumParams::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dNumParams::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dNumParams)) return static_cast(const_cast< dNumParams*>(this)); return QDialog::qt_metacast(_clname); } int dNumParams::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Valid(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dCancel[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 9, 8, 8, 8, 0x09, 0 // eod }; static const char qt_meta_stringdata_dCancel[] = { "dCancel\0\0Ok()\0" }; const QMetaObject dCancel::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dCancel, qt_meta_data_dCancel, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dCancel::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dCancel::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dCancel::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dCancel)) return static_cast(const_cast< dCancel*>(this)); return QDialog::qt_metacast(_clname); } int dCancel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dCloseCursor[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dCloseCursor[] = { "dCloseCursor\0\0Ok()\0" }; const QMetaObject dCloseCursor::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dCloseCursor, qt_meta_data_dCloseCursor, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dCloseCursor::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dCloseCursor::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dCloseCursor::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dCloseCursor)) return static_cast(const_cast< dCloseCursor*>(this)); return QDialog::qt_metacast(_clname); } int dCloseCursor::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dGetCursorName[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 21, 15, 15, 15, 0x09, 35, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetCursorName[] = { "dGetCursorName\0\0Ok()\0CursorValid()\0" "NameValid()\0" }; const QMetaObject dGetCursorName::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetCursorName, qt_meta_data_dGetCursorName, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetCursorName::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetCursorName::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetCursorName::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetCursorName)) return static_cast(const_cast< dGetCursorName*>(this)); return QDialog::qt_metacast(_clname); } int dGetCursorName::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: CursorValid(); break; case 2: NameValid(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dFreeStmt[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 11, 10, 10, 10, 0x09, 0 // eod }; static const char qt_meta_stringdata_dFreeStmt[] = { "dFreeStmt\0\0Ok()\0" }; const QMetaObject dFreeStmt::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dFreeStmt, qt_meta_data_dFreeStmt, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dFreeStmt::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dFreeStmt::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dFreeStmt::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dFreeStmt)) return static_cast(const_cast< dFreeStmt*>(this)); return QDialog::qt_metacast(_clname); } int dFreeStmt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dSetCursorName[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetCursorName[] = { "dSetCursorName\0\0Ok()\0" }; const QMetaObject dSetCursorName::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetCursorName, qt_meta_data_dSetCursorName, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetCursorName::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetCursorName::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetCursorName::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetCursorName)) return static_cast(const_cast< dSetCursorName*>(this)); return QDialog::qt_metacast(_clname); } int dSetCursorName::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dDescribeParam[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 28, 15, 15, 15, 0x09, 41, 15, 15, 15, 0x09, 53, 15, 15, 15, 0x09, 65, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dDescribeParam[] = { "dDescribeParam\0\0type_clkd()\0digit_clkd()\0" "size_clkd()\0null_clkd()\0Ok()\0" }; const QMetaObject dDescribeParam::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dDescribeParam, qt_meta_data_dDescribeParam, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dDescribeParam::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dDescribeParam::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dDescribeParam::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dDescribeParam)) return static_cast(const_cast< dDescribeParam*>(this)); return QDialog::qt_metacast(_clname); } int dDescribeParam::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: type_clkd(); break; case 1: digit_clkd(); break; case 2: size_clkd(); break; case 3: null_clkd(); break; case 4: Ok(); break; default: ; } _id -= 5; } return _id; } static const uint qt_meta_data_dParamData[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 25, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_dParamData[] = { "dParamData\0\0value_clkd()\0Ok()\0" }; const QMetaObject dParamData::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dParamData, qt_meta_data_dParamData, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dParamData::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dParamData::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dParamData::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dParamData)) return static_cast(const_cast< dParamData*>(this)); return QDialog::qt_metacast(_clname); } int dParamData::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: value_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dParamOption[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 27, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dParamOption[] = { "dParamOption\0\0pirow_clkd()\0Ok()\0" }; const QMetaObject dParamOption::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dParamOption, qt_meta_data_dParamOption, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dParamOption::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dParamOption::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dParamOption::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dParamOption)) return static_cast(const_cast< dParamOption*>(this)); return QDialog::qt_metacast(_clname); } int dParamOption::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: pirow_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dPutData[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dPutData[] = { "dPutData\0\0Ok()\0" }; const QMetaObject dPutData::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dPutData, qt_meta_data_dPutData, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dPutData::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dPutData::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dPutData::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dPutData)) return static_cast(const_cast< dPutData*>(this)); return QDialog::qt_metacast(_clname); } int dPutData::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dBindParameter[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dBindParameter[] = { "dBindParameter\0\0Ok()\0" }; const QMetaObject dBindParameter::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dBindParameter, qt_meta_data_dBindParameter, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dBindParameter::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dBindParameter::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dBindParameter::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dBindParameter)) return static_cast(const_cast< dBindParameter*>(this)); return QDialog::qt_metacast(_clname); } int dBindParameter::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dBindParam[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_dBindParam[] = { "dBindParam\0\0Ok()\0" }; const QMetaObject dBindParam::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dBindParam, qt_meta_data_dBindParam, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dBindParam::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dBindParam::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dBindParam::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dBindParam)) return static_cast(const_cast< dBindParam*>(this)); return QDialog::qt_metacast(_clname); } int dBindParam::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dAllocStmt[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 17, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_dAllocStmt[] = { "dAllocStmt\0\0Ok()\0handle_clkd()\0" }; const QMetaObject dAllocStmt::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dAllocStmt, qt_meta_data_dAllocStmt, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dAllocStmt::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dAllocStmt::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dAllocStmt::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dAllocStmt)) return static_cast(const_cast< dAllocStmt*>(this)); return QDialog::qt_metacast(_clname); } int dAllocStmt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: handle_clkd(); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvAllocHandle.h0000644000175000001440000000315311506076311016645 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvAllocHandle : public QDialog { Q_OBJECT public: DlgEnvAllocHandle( OdbcTest *pOdbcTest, QString name ); ~DlgEnvAllocHandle(); protected: QDialogButtonBox *pDialogButtonBox; QComboBox *handles, *types; QCheckBox *valid; QLabel *l_handle, *l_types; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_handle_ptr_clkd(); void slotDone(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvTransact.cpp0000644000175000001440000000744311506076311016617 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvTransact.h" #include "OdbcTest.h" void DlgEnvTransact::Ok() { OdbcHandle *ehand = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, ehandles ); OdbcHandle *chand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, chandles ); SQLHANDLE ein_handle = SQL_NULL_HANDLE; SQLHANDLE cin_handle = SQL_NULL_HANDLE; SQLSMALLINT completion; if ( ehand ) ein_handle = ehand->getHandle(); if ( chand ) cin_handle = chand->getHandle(); pOdbcTest->out_win->append( "SQLTransact():" ); pOdbcTest->out_win->append( " In:" ); if ( ein_handle ) txt.sprintf( " henv: %p", ein_handle ); else txt.sprintf( " henv: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); if ( cin_handle ) txt.sprintf( " hdbc: %p", cin_handle ); else txt.sprintf( " hdbc: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); completion = pEnvCompletionTypes[ completion_type->currentIndex() ].value; SQLRETURN ret = SQLTransact( ein_handle, cin_handle, completion ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } DlgEnvTransact::DlgEnvTransact( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 110,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 190,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 270,10, 70,25 ); ehandles = new QComboBox( this ); ehandles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, ehandles ); l_ehandles = new QLabel( "henv:", this ); l_ehandles->setGeometry( 10, 50, 120, 20 ); chandles = new QComboBox( this ); chandles->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, chandles ); l_chandles = new QLabel( "hdbc:", this ); l_chandles->setGeometry( 10, 80, 120, 20 ); completion_type = new QComboBox( this ); completion_type->setGeometry( 130, 110, 200, 20 ); pOdbcTest->fill_list_box( pEnvCompletionTypes, completion_type ); l_completion_type = new QLabel( "fType Type:", this ); l_completion_type->setGeometry( 10, 110, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } DlgEnvTransact::~DlgEnvTransact() { delete ok; delete cancel; delete help; delete ehandles; delete l_ehandles; delete chandles; delete l_chandles; delete completion_type; delete l_completion_type; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageTest.h0000644000175000001440000000340411506076311017076 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsNewSource; class DlgToolsManageTest : public QDialog { Q_OBJECT public: DlgToolsManageTest( OdbcTest *pOdbcTest, QString name ); ~DlgToolsManageTest(); friend class DlgToolsNewSource; protected: QPushButton *close, *nw, *del; OdbcTest *pOdbcTest; QComboBox *test_source; QComboBox*dsn; QLabel *l_dsn, *l_ts, *l_uid, *l_pwd, *l_kw; QLineEdit *uid, *pwd, *kw; QGroupBox *param; protected slots: void Ok(); void NewSource(); void DelSource(); void Activated( int index ); void Activated( const QString &str ); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageAutoTest.h0000644000175000001440000000335211506076310017730 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsManageAutoTest : public QDialog { Q_OBJECT public: DlgToolsManageAutoTest( OdbcTest *pOdbcTest, QString name ); ~DlgToolsManageAutoTest(); protected: QPushButton * close, *add, *remove, *from; OdbcTest * pOdbcTest; QLabel * l_avail, *l_name, *l_lib, *l_so, *l_installed, *s_from, *s_name, *s_lib; QListWidget * lib_list, *test_list; void setPath( QString &stringPath ); protected slots: void Ok(); void From(); void Add(); void ListSelect( const QString &name ); void Remove(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvFreeEnv.cpp0000644000175000001440000000552011506076311016364 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvFreeEnv.h" #include "OdbcTest.h" void DlgEnvFreeEnv::Ok() { OdbcHandle *env = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( env ) in_handle = env->getHandle(); pOdbcTest->out_win->append( "SQLFreeEnv():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " henv: %p", in_handle ); else txt.sprintf( " henv: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLFreeEnv( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && in_handle ) { pOdbcTest->listHandle.removeAll( env ); delete env; } pOdbcTest->out_win->append( "" ); } DlgEnvFreeEnv::DlgEnvFreeEnv( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 120, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "henv:", this ); l_handles->setGeometry( 10, 50, 100, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } DlgEnvFreeEnv::~DlgEnvFreeEnv() { delete ok; delete cancel; delete help; delete handles; delete l_handles; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageTestGroup.cpp0000644000175000001440000001625711506076311020460 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsManageTestGroup.h" #include "DlgToolsNewGroup.h" #include "OdbcTest.h" DlgToolsManageTestGroup::DlgToolsManageTestGroup( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; nw = new QPushButton( "New", this ); nw->setGeometry( 300,15, 70,25 ); del = new QPushButton( "Delete", this ); del->setGeometry( 380,15, 70,25 ); add = new QPushButton( "Add >", this ); add->setGeometry( 280,90, 70,25 ); remove = new QPushButton( "< Remove", this ); remove->setGeometry( 280,130, 70,25 ); close = new QPushButton( "Close", this ); close->setGeometry( 280,200, 70,25 ); group = new QComboBox( this ); group->setGeometry( 100, 15, 180, 20 ); l_group = new QLabel( "Test Group:", this ); l_group->setGeometry( 10, 15, 60, 20 ); l_auto = new QLabel( "Installed Auto Tests:", this ); l_auto->setGeometry( 10, 60, 160, 20 ); l_sauto = new QLabel( "Selected Auto Tests:", this ); l_sauto->setGeometry( 370, 60, 160, 20 ); auto_list = new QListWidget( this ); auto_list->setGeometry( 10, 80, 250, 160 ); sauto_list = new QListWidget( this ); sauto_list->setGeometry( 370, 80, 250, 160 ); connect( close, SIGNAL(clicked()), SLOT(Ok()) ); connect( close, SIGNAL(clicked()), SLOT(accept()) ); connect( add, SIGNAL(clicked()), SLOT(Add()) ); connect( remove, SIGNAL(clicked()), SLOT(Remove()) ); connect( nw, SIGNAL(clicked()), SLOT(New()) ); connect( del, SIGNAL(clicked()), SLOT(Delete()) ); // load the list... pOdbcTest->pSettings->beginGroup( "GROUPS" ); group->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); Activated( 0 ); connect( group, SIGNAL(activated(const QString &)), this, SLOT( Activated(const QString &))); } DlgToolsManageTestGroup::~DlgToolsManageTestGroup() { // sync settings with disk (mostly means 'save changes') { pOdbcTest->pSettings->sync(); QSettings::Status nStatus = pOdbcTest->pSettings->status(); switch ( nStatus ) { case QSettings::AccessError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AccessError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::FormatError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("FormatError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::NoError: default: break; } } delete close; delete add; delete remove; delete nw; delete del; delete group; delete l_group; delete l_auto; delete l_sauto; delete auto_list; delete sauto_list; } void DlgToolsManageTestGroup::Ok() { } // // for a given test, look at each entry in the auto test section, see if it // is in the group section, if so it goes in the selected, else the installed list // void DlgToolsManageTestGroup::update_test_lists( void ) { QString stringGroup = group->currentText(); auto_list->clear(); sauto_list->clear(); // get list of "Auto Tests"... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); QStringList stringlistAutoTests = pOdbcTest->pSettings->allKeys(); pOdbcTest->pSettings->endGroup(); // for each "Auto Tests"... foreach ( QString stringAutoTest, stringlistAutoTests ) { if ( pOdbcTest->pSettings->contains( stringGroup + "/" + stringAutoTest ) ) sauto_list->addItem( stringAutoTest ); else auto_list->addItem( stringAutoTest ); } } void DlgToolsManageTestGroup::Activated( const QString & ) { update_test_lists(); } void DlgToolsManageTestGroup::Activated( int val ) { if ( group->count() > 0 ) Activated( group->itemText( val ) ); } void DlgToolsManageTestGroup::Add() { QListWidgetItem *pListWidgetItem = auto_list->currentItem(); if ( !pListWidgetItem ) return; QString stringAutoTest = pListWidgetItem->text(); if ( stringAutoTest.isEmpty() ) return; QString stringGroup = group->currentText(); if ( stringGroup.isEmpty() ) return; pOdbcTest->pSettings->beginGroup( stringGroup ); pOdbcTest->pSettings->setValue( stringAutoTest, "Installed" ); pOdbcTest->pSettings->endGroup(); update_test_lists(); } void DlgToolsManageTestGroup::Remove() { QListWidgetItem *pListWidgetItem = sauto_list->currentItem(); if ( !pListWidgetItem ) return; QString stringAutoTest = pListWidgetItem->text(); if ( stringAutoTest.isEmpty() ) return; QString stringGroup = group->currentText(); if ( stringGroup.isEmpty() ) return; pOdbcTest->pSettings->beginGroup( stringGroup ); pOdbcTest->pSettings->remove( stringAutoTest ); pOdbcTest->pSettings->endGroup(); update_test_lists(); } void DlgToolsManageTestGroup::New() { DlgToolsNewGroup *dlg = new DlgToolsNewGroup( pOdbcTest, "New Test Group", this ); dlg->exec(); delete dlg; } void DlgToolsManageTestGroup::Delete() { QString stringGroup = group->currentText(); if ( stringGroup.isEmpty() ) return; if ( QMessageBox::information( this, "OdbcTest", QString( "Delete the test group %1?" ).arg( stringGroup ), "&Delete", "&Cancel", 0, 0, 1 ) != 0 ) { return; } // remove from GROUPS section... pOdbcTest->pSettings->beginGroup( "GROUPS" ); pOdbcTest->pSettings->remove( stringGroup ); pOdbcTest->pSettings->endGroup(); // remove its section... pOdbcTest->pSettings->remove( stringGroup ); // reload list... pOdbcTest->pSettings->beginGroup( "GROUPS" ); group->clear(); group->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // make first item current... group->setCurrentIndex( 0 ); Activated( 0 ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsRunAutoTests.cpp0000644000175000001440000005455311506076311020034 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsManageTest.h" #include "DlgToolsManageAutoTest.h" #include "DlgToolsManageTestGroup.h" #include "DlgToolsRunAutoTests.h" #include "OdbcTest.h" #define setqbit(lpa, pos) \ (lpa[((pos) / CQBITS)] |= (1 << ((pos) - (CQBITS * ((pos) / CQBITS))))) #define SETBIT(p1,p2) setqbit(p1,(p2)-1) DlgToolsRunAutoTests::DlgToolsRunAutoTests( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; l_tests = new QLabel( "Auto Tests:", this ); l_tests->setGeometry( 10, 15, 60, 20 ); tests = new QTreeWidget( this ); tests->setGeometry( 10, 40, 300, 150 ); // tests->addColumn( "Tests", -1 ); tests->setRootIsDecorated( TRUE ); tests->setSelectionMode( QAbstractItemView::MultiSelection ); // tests->setSorting( -1 ); tests->header()->hide(); l_sources = new QLabel( "Test Sources:", this ); l_sources->setGeometry( 320, 15, 80, 20 ); sources = new QListWidget( this ); sources->setSelectionMode( QListWidget::MultiSelection ); sources->setGeometry( 320, 40, 150, 220 ); output = new QGroupBox( "Output", this ); output->setGeometry( 10, 200, 90, 80 ); b_log_file = new QCheckBox( "Log File", output ); b_log_file->setGeometry( 10, 20, 70, 20 ); b_screen = new QCheckBox( "Screen", output ); b_screen->setGeometry( 10, 50, 70, 20 ); b_screen->setChecked( TRUE ); options = new QGroupBox( "Options", this ); options->setGeometry( 110, 200, 200, 80 ); b_debug = new QCheckBox( "Debug", options ); b_debug->setGeometry( 10, 20, 80, 20 ); b_isolate = new QCheckBox( "Isolate tests", options ); b_isolate->setGeometry( 10, 50, 100, 20 ); b_cursor = new QCheckBox( "Cursor Library", options ); b_cursor->setGeometry( 90, 20, 100, 20 ); b_cursor->setTristate( TRUE ); run_list = new QPushButton( "Run List...", this ); run_list->setGeometry( 10, 290, 70, 25 ); run_list->setEnabled( FALSE ); rlist = new QComboBox( this ); rlist->setGeometry( 100, 290, 150, 20 ); rlist->insertItem( 0, "" ); rlist->setEnabled( FALSE ); ok = new QPushButton( "Ok", this ); ok->setGeometry( 320, 290, 70, 25 ); ok->setEnabled( FALSE ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 400, 290, 70, 25 ); log_file = new QPushButton( "Log File...", this ); log_file->setGeometry( 10, 320, 70, 25 ); log_file->setEnabled( FALSE ); l_log = new QLabel( "auto.log", this ); l_log->setGeometry( 89, 320, 380, 20 ); l_log->setEnabled( FALSE ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( log_file, SIGNAL(clicked()), SLOT(Log()) ); connect( b_log_file, SIGNAL(stateChanged(int)), SLOT(LogChanged(int))); cursor_state = SQL_CUR_USE_DRIVER; connect( b_cursor, SIGNAL(stateChanged(int)), SLOT(CursorChanged(int))); connect( sources, SIGNAL(selectionChanged()), SLOT(TestsChanged())); connect( tests, SIGNAL(selectionChanged()), SLOT(TestsChanged())); // load list... pOdbcTest->pSettings->beginGroup( "SQL_DRIVERS" ); sources->addItems( pOdbcTest->pSettings->allKeys() ); sources->addItem( "ODBC Test Handles" ); pOdbcTest->pSettings->endGroup(); // load treeview... { QTreeWidgetItem *top = NULL; QTreeWidgetItem *last_test = NULL; // load treeview with all "Auto Tests"... { // get all "Auto Tests"... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); QStringList stringlistAutoTests = pOdbcTest->pSettings->allKeys(); pOdbcTest->pSettings->endGroup(); top = new QTreeWidgetItem( tests, top ); top->setText( 0, "All" ); last_test = NULL ; // load treeview with all tests... foreach( QString stringAutoTest, stringlistAutoTests ) { add_auto_test( stringAutoTest, top, &last_test ); } } // load treeview with all "GROUPS"... { // get all "GROUPS"... pOdbcTest->pSettings->beginGroup( "GROUPS" ); QStringList stringlistGroups = pOdbcTest->pSettings->allKeys(); pOdbcTest->pSettings->endGroup(); foreach( QString stringGroup, stringlistGroups ) { // get all tests in group... pOdbcTest->pSettings->beginGroup( stringGroup ); QStringList stringlistTests = pOdbcTest->pSettings->allKeys(); pOdbcTest->pSettings->endGroup(); top = new QTreeWidgetItem( tests, top ); top->setText( 0, stringGroup ); last_test = NULL ; // load treeview with all tests in group... foreach( QString stringTest, stringlistTests ) { add_auto_test( stringTest, top, &last_test ); } } } } } DlgToolsRunAutoTests::~DlgToolsRunAutoTests() { // sync settings with disk (mostly means 'save changes') { pOdbcTest->pSettings->sync(); QSettings::Status nStatus = pOdbcTest->pSettings->status(); switch ( nStatus ) { case QSettings::AccessError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AccessError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::FormatError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("FormatError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::NoError: default: break; } } delete l_tests; delete tests; delete l_sources; delete sources; delete output; delete options; delete run_list; delete rlist; delete ok; delete cancel; delete log_file; delete l_log; } /*! * \brief Run the tests. * * For each selected Source (SQL_DRIVER) run selected Tests (Auto Tests). The * Sources are processed in the order found in the UI. The Tests are also * processed in the order found in the UI. The Groups (of tests) are processed * last. One should find that the order reflects the order of things in the * settings file. * */ void DlgToolsRunAutoTests::Ok() { SQLHWND hWnd = NULL; #ifdef WIN32 hWnd = (SQLHWND)pOdbcTest->out_win; #else /* * Init a ODBCINSTWND * --- * * This is for SERVERINFO::hwnd. * * We use a generic handle (ODBCINSTWND) and specify a Qt4 graphical user interface (odbcinstQ4). * * The odbcinstQ4 library provides the Qt4 graphical user interface for things like SQLCreateDataSource * and provides szLogPrintf/szMessageBox. The odbcinstQ4 library is a plugin which is loaded by the * odbcinst library (and some others) as needed - it should NOT be used directly by this application * or by any of the test libraries. The test libraries should never need to interpret SERVERINFO::hwnd - * they should simply pass it on wherever needed. * * This application and test libraries should link to the odbcinst library to get szLogPrintf and * szMessageBox. * * NOTE * * It is bad form to have auto tests rely upon any user interaction so a test library which needs * a viable hwnd should not really happen (not even for SQLDriverConnect). However; szLogPrintf and * szMessageBox will use it internally. * * On MS'sm the szLogPrintf and szMessageBox are found in the gtrtst (gator test) library. Here; we * get it via the odbcinst library. * */ ODBCINSTWND Wnd; strcpy( Wnd.szUI, "odbcinstQ4" ); // UI plugin to use (Qt4). Wnd.hWnd = pOdbcTest->out_win; // Output window for szLogPrintf and szMessageBox. hWnd = (SQLHWND)(&Wnd); #endif /* * Init a SERVERINFO * --- * * More refinements are done as we process. * */ SERVERINFO ServerInfo; ServerInfo.cBuff = 0; ServerInfo.cErrors = 0; ServerInfo.failed = 0; ServerInfo.fDebug = ( b_debug->isChecked() ? true : false ); ServerInfo.fIsolate = ( b_isolate->isChecked() ? true : false ); ServerInfo.fLog = ( b_log_file->isChecked() ? true : false ); ServerInfo.fScreen = ( b_screen->isChecked() ? true : false ); ServerInfo.hdbc = SQL_NULL_HANDLE; ServerInfo.henv = SQL_NULL_HANDLE; ServerInfo.hLoadedInst = NULL; ServerInfo.hstmt = SQL_NULL_HANDLE; ServerInfo.hwnd = hWnd; ServerInfo.rglMask = NULL; *(ServerInfo.szBuff) = '\0'; *(ServerInfo.szKeywords) = '\0'; *(ServerInfo.szLogFile) = '\0'; *(ServerInfo.szSource) = '\0'; *(ServerInfo.szValidLogin0) = '\0'; *(ServerInfo.szValidPassword0) = '\0'; *(ServerInfo.szValidServer0) = '\0'; ServerInfo.vCursorLib = cursor_state; if ( b_log_file->isChecked() ) strcpy( ServerInfo.szLogFile, l_log->text().toAscii().constData() ); // do it runSources( &ServerInfo ); } void DlgToolsRunAutoTests::Log() { // allow User to select a file... QFileDialog dlg( this ); dlg.setFileMode( QFileDialog::AnyFile ); dlg.selectFile( l_log->text() ); if ( dlg.exec() == QDialog::Accepted ) { QString result = dlg.selectedFiles().at( 0 ); l_log->setText( result ); } } void DlgToolsRunAutoTests::LogChanged( int state ) { if ( state ) { log_file->setEnabled( TRUE ); l_log->setEnabled( TRUE ); } else { log_file->setEnabled( FALSE ); l_log->setEnabled( FALSE ); } } void DlgToolsRunAutoTests::CursorChanged( int state ) { if ( state == 0 ) { cursor_state = SQL_CUR_USE_DRIVER; } else if ( state == 1 ) { cursor_state = SQL_CUR_USE_IF_NEEDED; } else if ( state == 1 ) { cursor_state = SQL_CUR_USE_ODBC; } } void DlgToolsRunAutoTests::add_auto_test( const QString &stringTest, QTreeWidgetItem *top, QTreeWidgetItem **item ) { // get test library file name... pOdbcTest->pSettings->beginGroup( stringTest ); QString stringTestFileName = pOdbcTest->pSettings->value( "DLL" ).toString(); pOdbcTest->pSettings->endGroup(); if ( stringTestFileName.isEmpty() ) return; // load test library... QLibrary libraryTest( stringTestFileName ); if ( !libraryTest.isLoaded() ) return; // get our entry points... AUTOTESTNAME pAutoTestName = (AUTOTESTNAME)libraryTest.resolve( "AutoTestName" ); AUTOTESTDESC pAutoTestDesc = (AUTOTESTDESC)libraryTest.resolve( "AutoTestDesc" ); AUTOTESTFUNC pAutoTestFunc = (AUTOTESTFUNC)libraryTest.resolve( "AutoTestFunc" ); if ( !pAutoTestName || !pAutoTestDesc || !pAutoTestFunc ) return; // get test name, number of test cases... char szTest[ AUTO_MAX_TEST_NAME + 1 ]; UINT nTestCases; if ( !pAutoTestName( szTest, &nTestCases ) ) return; // add test... QTreeWidgetItem *ptreewidgetitemTest = *item = new QTreeWidgetItem( top, *item ); ptreewidgetitemTest->setText( 0, szTest ); // add test cases... QTreeWidgetItem *ptreewidgetitemTestCase = NULL; for ( UWORD i = 1; i <= nTestCases; i ++ ) { // get test case details... char szTestCase[ AUTO_MAX_TESTCASE_NAME + 1 ]; char szTestCaseDesc[ AUTO_MAX_TESTDESC_NAME + 1 ]; if ( !pAutoTestDesc( i, szTestCase, szTestCaseDesc ) ) continue; // create test case tree widget item... if ( ptreewidgetitemTestCase ) ptreewidgetitemTestCase = new QTreeWidgetItem( ptreewidgetitemTest, ptreewidgetitemTestCase ); else ptreewidgetitemTestCase = new QTreeWidgetItem( ptreewidgetitemTest ); ptreewidgetitemTestCase->setText( 0, szTestCase ); ptreewidgetitemTestCase->setText( 1, szTestCaseDesc ); } } void DlgToolsRunAutoTests::runSources( SERVERINFO *pServerInfo ) { // for each selected source (SQL_DRIVER)... foreach( QListWidgetItem *pListWidgetItem, sources->selectedItems() ) { QString stringSource = pListWidgetItem->text(); // init some SERVERINFO stuff... strcpy( pServerInfo->szSource, stringSource.toAscii().constData() ); pOdbcTest->pSettings->beginGroup( stringSource ); strcpy( pServerInfo->szValidServer0, pOdbcTest->pSettings->value( "SERVER0" ).toString().toAscii().constData() ); strcpy( pServerInfo->szValidLogin0, pOdbcTest->pSettings->value( "LOGIN0" ).toString().toAscii().constData() ); strcpy( pServerInfo->szValidPassword0, pOdbcTest->pSettings->value( "PASSWORD0" ).toString().toAscii().constData() ); strcpy( pServerInfo->szKeywords, pOdbcTest->pSettings->value( "KEYWORDS" ).toString().toAscii().constData() ); pOdbcTest->pSettings->endGroup(); // do it... runGroups( pServerInfo, stringSource ); } } void DlgToolsRunAutoTests::runGroups( SERVERINFO *pServerInfo, const QString &stringSource ) { // process groups (1st level in tree)... QTreeWidgetItem *ptreewidgetitemGroup = NULL; for ( int n = 0; (ptreewidgetitemGroup = tests->topLevelItem( n )); n++ ) { if ( !ptreewidgetitemGroup->isSelected() ) continue; // init/reinit some SERVERINFO stuff (reinit in case test messed with it)... if ( stringSource == "ODBC Test Handles" ) { pServerInfo->henv = pOdbcTest->get_handle( SQL_HANDLE_ENV ); pServerInfo->hdbc = pOdbcTest->get_handle( SQL_HANDLE_DBC ); pServerInfo->hstmt = pOdbcTest->get_handle( SQL_HANDLE_STMT ); } else { pServerInfo->henv = NULL; pServerInfo->hdbc = NULL; pServerInfo->hstmt = NULL; } // kick out some progress info... QString stringGroup = ptreewidgetitemGroup->text( 0 ); QString stringMessage; stringMessage = QString( tr("Now executing Group %1 on source %2") ).arg( stringGroup ).arg( stringSource ); // we format the message here so we can use tr() szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); stringMessage = QString( tr("Keywords: %1") ).arg( pServerInfo->szKeywords ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); // do it... runTests( pServerInfo, ptreewidgetitemGroup ); } } void DlgToolsRunAutoTests::runTests( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemGroup ) { // process tests (2nd level in tree)... QTreeWidgetItem *ptreewidgetitemTest = NULL; for ( int n = 0; (ptreewidgetitemTest = ptreewidgetitemGroup->child( n )); n++ ) { if ( !ptreewidgetitemTest->isSelected() ) continue; // dot it... runTest( pServerInfo, ptreewidgetitemTest ); } } void DlgToolsRunAutoTests::runTest( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemTest ) { QString stringTest = ptreewidgetitemTest->text( 0 ); QString stringMessage; // get test library file name... pOdbcTest->pSettings->beginGroup( stringTest ); QString stringTestFileName = pOdbcTest->pSettings->value( "DLL" ).toString(); pOdbcTest->pSettings->endGroup(); if ( stringTestFileName.isEmpty() ) { stringMessage = QString( tr("Failed to find library name (DLL) in settings for %1 test.") ).arg( stringTest ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); return; } // kick out some progress info... stringMessage = QString( tr("Now Executing Auto Test: %1") ).arg( stringTest ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); stringMessage = QString( tr("Time started %1") ).arg( QTime::currentTime().toString() ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); // load test library... QLibrary libraryTest( stringTestFileName ); if ( !libraryTest.isLoaded() ) { stringMessage = QString( tr("Failed to load test library %1") ).arg( stringTestFileName ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); return; } // get our entry points... AUTOTESTNAME pAutoTestName = (AUTOTESTNAME)libraryTest.resolve( "AutoTestName" ); AUTOTESTFUNC pAutoTestFunc = (AUTOTESTFUNC)libraryTest.resolve( "AutoTestFunc" ); if ( !pAutoTestFunc ) { stringMessage = QString( tr("Failed to resolve AutoTestFunc in library %1") ).arg( stringTestFileName ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); return; } if ( !pAutoTestName ) { stringMessage = QString( tr("Failed to resolve AutoTestName in library %1") ).arg( stringTestFileName ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); return; } // get test name and number of test cases... char szTest[ AUTO_MAX_TEST_NAME + 1 ]; UINT nTestCases; if ( !pAutoTestName( szTest, &nTestCases ) ) { stringMessage = tr("AutoTestName returns FALSE"); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); return; } // do it... runTestCases( pServerInfo, ptreewidgetitemTest, pAutoTestFunc, nTestCases ); // stringMessage = QString( tr("Time finished %s") ).arg( QTime::currentTime().toString() ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); } void DlgToolsRunAutoTests::runTestCases( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemTest, AUTOTESTFUNC pAutoTestFunc, UINT nTestCases ) { QString stringMessage; int size; size = nTestCases / (sizeof(unsigned int)*8); size ++; // init mask... pServerInfo->rglMask = (UINT FAR *)calloc( sizeof(unsigned int), size ); // for each test case call into test library... if ( b_isolate->isChecked()) { QTreeWidgetItem *ptreewidgetitemTestCase = NULL; for ( int n = 0; (ptreewidgetitemTestCase = ptreewidgetitemTest->child( n )); n++ ) { if ( ptreewidgetitemTestCase->isSelected()) { SETBIT( pServerInfo->rglMask, ptreewidgetitemTest->indexOfChild( ptreewidgetitemTestCase ) ); pAutoTestFunc( pServerInfo ); } } } // call into test library once... else { QTreeWidgetItem *ptreewidgetitemTestCase = NULL; memset( pServerInfo->rglMask, 0, sizeof(unsigned int) * size ); for ( int n = 0; (ptreewidgetitemTestCase = ptreewidgetitemTest->child( n )); n++ ) { if ( ptreewidgetitemTestCase->isSelected()) { SETBIT(pServerInfo->rglMask, ptreewidgetitemTest->indexOfChild( ptreewidgetitemTestCase ) ); } } pAutoTestFunc( pServerInfo ); } // errors? stringMessage = QString( tr("Error Count: %1") ).arg( pServerInfo->cErrors ); szLogPrintf( pServerInfo, false, stringMessage.toLatin1().data() ); // fini mask... free( pServerInfo->rglMask ); } void DlgToolsRunAutoTests::TestsChanged() { int ok1 = 0, ok2 = 0; // are any of the sources selected? { /* for ( int i = 0; i < sources->count(); i ++ ) { if ( sources->isSelected( i ) ) { ok1 = 1; break; } } */ if ( sources->selectedItems().count() ) ok1 = 1; } // are any of the tests selected? { /* QTreeWidgetItem *group = (QTreeWidgetItem*) tests->firstChild(); while( group ) { if ( group->isSelected()) { ok2 = 1; break; } group = group->nextSibling(); } */ if ( tests->selectedItems().count() ) ok2 = 1; } // if ( ok1 && ok2 ) { ok->setEnabled( TRUE ); } else { ok->setEnabled( FALSE ); } } void OdbcTest::slotOptions() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotTrace() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotManageTestSources() { DlgToolsManageTest *dlg = new DlgToolsManageTest( this, "Manage Test Sources" ); dlg->exec(); delete dlg; } void OdbcTest::slotManageAutoTests() { DlgToolsManageAutoTest *dlg = new DlgToolsManageAutoTest( this, "Manage Auto Test" ); dlg->exec(); delete dlg; } void OdbcTest::slotManageTestGroups() { DlgToolsManageTestGroup *dlg = new DlgToolsManageTestGroup( this, "Manage Test Groups" ); dlg->exec(); delete dlg; } void OdbcTest::slotRunAutoTests() { DlgToolsRunAutoTests *dlg = new DlgToolsRunAutoTests( this, "Run Auto Tests" ); dlg->exec(); delete dlg; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvDataSources.cpp0000644000175000001440000000533411506076452017435 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvDataSources.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvDataSources.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvDataSources.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvDataSources[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 30, 18, 18, 18, 0x09, 44, 18, 18, 18, 0x09, 63, 18, 18, 18, 0x09, 75, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvDataSources[] = { "DlgEnvDataSources\0\0slotDone()\0" "server_clkd()\0description_clkd()\0" "nlp1_clkd()\0nlp2_clkd()\0" }; const QMetaObject DlgEnvDataSources::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvDataSources, qt_meta_data_DlgEnvDataSources, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvDataSources::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvDataSources::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvDataSources::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvDataSources)) return static_cast(const_cast< DlgEnvDataSources*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvDataSources::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotDone(); break; case 1: server_clkd(); break; case 2: description_clkd(); break; case 3: nlp1_clkd(); break; case 4: nlp2_clkd(); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsNewSource.cpp0000644000175000001440000000454411506076452017504 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsNewSource.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsNewSource.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsNewSource.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsNewSource[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsNewSource[] = { "DlgToolsNewSource\0\0Ok()\0" }; const QMetaObject DlgToolsNewSource::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsNewSource, qt_meta_data_DlgToolsNewSource, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsNewSource::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsNewSource::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsNewSource::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsNewSource)) return static_cast(const_cast< DlgToolsNewSource*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsNewSource::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mattr.cpp0000644000175000001440000004272011506076452015072 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'attr.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "attr.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'attr.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dSetStmtAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 20, 14, 13, 13, 0x09, 35, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetStmtAttr[] = { "dSetStmtAttr\0\0index\0Activated(int)\0" "Ok()\0" }; const QMetaObject dSetStmtAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetStmtAttr, qt_meta_data_dSetStmtAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetStmtAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetStmtAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetStmtAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetStmtAttr)) return static_cast(const_cast< dSetStmtAttr*>(this)); return QDialog::qt_metacast(_clname); } int dSetStmtAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dSetStmtOption[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 22, 16, 15, 15, 0x09, 37, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetStmtOption[] = { "dSetStmtOption\0\0index\0Activated(int)\0" "Ok()\0" }; const QMetaObject dSetStmtOption::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetStmtOption, qt_meta_data_dSetStmtOption, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetStmtOption::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetStmtOption::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetStmtOption::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetStmtOption)) return static_cast(const_cast< dSetStmtOption*>(this)); return QDialog::qt_metacast(_clname); } int dSetStmtOption::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetStmtOption[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 30, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetStmtOption[] = { "dGetStmtOption\0\0target_clkd()\0Ok()\0" }; const QMetaObject dGetStmtOption::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetStmtOption, qt_meta_data_dGetStmtOption, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetStmtOption::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetStmtOption::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetStmtOption::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetStmtOption)) return static_cast(const_cast< dGetStmtOption*>(this)); return QDialog::qt_metacast(_clname); } int dGetStmtOption::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetStmtAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 28, 13, 13, 13, 0x09, 42, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetStmtAttr[] = { "dGetStmtAttr\0\0target_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dGetStmtAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetStmtAttr, qt_meta_data_dGetStmtAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetStmtAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetStmtAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetStmtAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetStmtAttr)) return static_cast(const_cast< dGetStmtAttr*>(this)); return QDialog::qt_metacast(_clname); } int dGetStmtAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dSetConnAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 20, 14, 13, 13, 0x09, 35, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetConnAttr[] = { "dSetConnAttr\0\0index\0Activated(int)\0" "Ok()\0" }; const QMetaObject dSetConnAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetConnAttr, qt_meta_data_dSetConnAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetConnAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetConnAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetConnAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetConnAttr)) return static_cast(const_cast< dSetConnAttr*>(this)); return QDialog::qt_metacast(_clname); } int dSetConnAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetConnAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 28, 13, 13, 13, 0x09, 42, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetConnAttr[] = { "dGetConnAttr\0\0target_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dGetConnAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetConnAttr, qt_meta_data_dGetConnAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetConnAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetConnAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetConnAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetConnAttr)) return static_cast(const_cast< dGetConnAttr*>(this)); return QDialog::qt_metacast(_clname); } int dGetConnAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dSetConnectOption[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 25, 19, 18, 18, 0x09, 40, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetConnectOption[] = { "dSetConnectOption\0\0index\0Activated(int)\0" "Ok()\0" }; const QMetaObject dSetConnectOption::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetConnectOption, qt_meta_data_dSetConnectOption, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetConnectOption::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetConnectOption::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetConnectOption::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetConnectOption)) return static_cast(const_cast< dSetConnectOption*>(this)); return QDialog::qt_metacast(_clname); } int dSetConnectOption::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetConnectOption[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 33, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetConnectOption[] = { "dGetConnectOption\0\0target_clkd()\0Ok()\0" }; const QMetaObject dGetConnectOption::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetConnectOption, qt_meta_data_dGetConnectOption, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetConnectOption::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetConnectOption::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetConnectOption::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetConnectOption)) return static_cast(const_cast< dGetConnectOption*>(this)); return QDialog::qt_metacast(_clname); } int dGetConnectOption::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dSetEnvAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 13, 12, 12, 0x09, 34, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetEnvAttr[] = { "dSetEnvAttr\0\0index\0Activated(int)\0" "Ok()\0" }; const QMetaObject dSetEnvAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetEnvAttr, qt_meta_data_dSetEnvAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetEnvAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetEnvAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetEnvAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetEnvAttr)) return static_cast(const_cast< dSetEnvAttr*>(this)); return QDialog::qt_metacast(_clname); } int dSetEnvAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dGetEnvAttr[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 27, 12, 12, 12, 0x09, 41, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetEnvAttr[] = { "dGetEnvAttr\0\0target_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dGetEnvAttr::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetEnvAttr, qt_meta_data_dGetEnvAttr, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetEnvAttr::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetEnvAttr::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetEnvAttr::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetEnvAttr)) return static_cast(const_cast< dGetEnvAttr*>(this)); return QDialog::qt_metacast(_clname); } int dGetEnvAttr::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvAllocEnv.h0000644000175000001440000000313711506076311016204 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvAllocEnv : public QDialog { Q_OBJECT public: DlgEnvAllocEnv( OdbcTest *pOdbcTest, QString name ); ~DlgEnvAllocEnv(); protected: QDialogButtonBox * pDialogButtonBox; QTextEdit * in_win; QCheckBox * handle_valid; QTextEdit * out_win; OdbcTest * pOdbcTest; QString txt; protected slots: void slotDone(); void handle_clkd(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/results.h0000644000175000001440000001631011506076311015077 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dGetData : public QDialog { Q_OBJECT public: dGetData( OdbcTest *pOdbcTest, QString name ); ~dGetData(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QLineEdit *column_num; QLineEdit *buffer_len; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_column_num, *l_type, *l_buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; class dDescribeCol : public QDialog { Q_OBJECT public: dDescribeCol( OdbcTest *pOdbcTest, QString name ); ~dDescribeCol(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLineEdit *column_num; QLineEdit *column_len; QLabel *l_handle, *l_column_num, *l_column_len; QCheckBox *name_valid; QCheckBox *type_valid; QCheckBox *size_valid; QCheckBox *digit_valid; QCheckBox *null_valid; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; const char *data_type_to_str( int ); protected slots: void name_clkd(); void type_clkd(); void size_clkd(); void digit_clkd(); void null_clkd(); void Ok(); }; class dNumResultCols : public QDialog { Q_OBJECT public: dNumResultCols( OdbcTest *pOdbcTest, QString name ); ~dNumResultCols(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QCheckBox *valid; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void out_handle_ptr_clkd(); void Ok(); }; class dFetch : public QDialog { Q_OBJECT public: dFetch( OdbcTest *pOdbcTest, QString name ); ~dFetch(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dRowCount : public QDialog { Q_OBJECT public: dRowCount( OdbcTest *pOdbcTest, QString name ); ~dRowCount(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QCheckBox *valid; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void Valid(); }; class dMoreResults : public QDialog { Q_OBJECT public: dMoreResults( OdbcTest *pOdbcTest, QString name ); ~dMoreResults(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles; QLabel *l_handle; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dSetPos : public QDialog { Q_OBJECT public: dSetPos( OdbcTest *pOdbcTest, QString name ); ~dSetPos(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *operation, *lock_type; QLabel *l_handle, *l_operation, *l_lock_type, *l_row_number; QLineEdit *row_number; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dBulkOperations : public QDialog { Q_OBJECT public: dBulkOperations( OdbcTest *pOdbcTest, QString name ); ~dBulkOperations(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *operation; QLabel *l_handle, *l_operation; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dColAttribute : public QDialog { Q_OBJECT public: dColAttribute( OdbcTest *pOdbcTest, QString name ); ~dColAttribute(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *field_ident; QLabel *l_handles, *l_buffer_len, *l_col_num, *l_diag_info; QLabel *l_field_ident; QCheckBox *char_ptr_valid, *strlen_valid, *numeric_valid; QLineEdit *buffer_len, *col_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void char_ptr_clkd(); void strlen_clkd(); void numeric_clkd(); }; class dColAttributes : public QDialog { Q_OBJECT public: dColAttributes( OdbcTest *pOdbcTest, QString name ); ~dColAttributes(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *field_ident; QLabel *l_handles, *l_buffer_len, *l_col_num, *l_diag_info; QLabel *l_field_ident; QCheckBox *char_ptr_valid, *strlen_valid, *numeric_valid; QLineEdit *buffer_len, *col_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void char_ptr_clkd(); void strlen_clkd(); void numeric_clkd(); }; class dFetchScroll : public QDialog { Q_OBJECT public: dFetchScroll( OdbcTest *pOdbcTest, QString name ); ~dFetchScroll(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *orentation; QLabel *l_handle, *l_orentation, *l_offset; QLineEdit *offset; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dExtendedFetch : public QDialog { Q_OBJECT public: dExtendedFetch( OdbcTest *pOdbcTest, QString name ); ~dExtendedFetch(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *orentation; QLabel *l_handle, *l_orentation, *l_offset; QLineEdit *offset; QTextEdit *in_win; QCheckBox *count_ptr_valid, *status_ptr_valid; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void count_ptr_clkd(); void status_ptr_clkd(); }; class dSetScrollOptions : public QDialog { Q_OBJECT public: dSetScrollOptions( OdbcTest *pOdbcTest, QString name ); ~dSetScrollOptions(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *concurrency, *keyset; QLabel *l_handle, *l_concurrency, *l_keyset, *l_rowset; QLineEdit *rowset; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/catalog.h0000644000175000001440000001627011506076311015015 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dTables : public QDialog { Q_OBJECT public: dTables( OdbcTest *pOdbcTest, QString name ); ~dTables(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table, *type; QComboBox *schema_len, *catalog_len, *table_len, *type_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table, *l_type; QLabel *l_schema_len, *l_catalog_len, *l_table_len, *l_type_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dColumns : public QDialog { Q_OBJECT public: dColumns( OdbcTest *pOdbcTest, QString name ); ~dColumns(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table, *column; QComboBox *schema_len, *catalog_len, *table_len, *column_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table, *l_column; QLabel *l_schema_len, *l_catalog_len, *l_table_len, *l_column_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dColumnPrivileges : public QDialog { Q_OBJECT public: dColumnPrivileges( OdbcTest *pOdbcTest, QString name ); ~dColumnPrivileges(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table, *column; QComboBox *schema_len, *catalog_len, *table_len, *column_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table, *l_column; QLabel *l_schema_len, *l_catalog_len, *l_table_len, *l_column_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dForeignKeys : public QDialog { Q_OBJECT public: dForeignKeys( OdbcTest *pOdbcTest, QString name ); ~dForeignKeys(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *fk_schema, *fk_catalog, *fk_table; QComboBox *schema_len, *catalog_len, *table_len; QComboBox *fk_schema_len, *fk_catalog_len, *fk_table_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *fk_l_schema, *fk_l_catalog, *fk_l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QLabel *fk_l_schema_len, *fk_l_catalog_len, *fk_l_table_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dPrimaryKeys : public QDialog { Q_OBJECT public: dPrimaryKeys( OdbcTest *pOdbcTest, QString name ); ~dPrimaryKeys(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *schema_len, *catalog_len, *table_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dProcedures : public QDialog { Q_OBJECT public: dProcedures( OdbcTest *pOdbcTest, QString name ); ~dProcedures(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *schema_len, *catalog_len, *table_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dProcedureColumns : public QDialog { Q_OBJECT public: dProcedureColumns( OdbcTest *pOdbcTest, QString name ); ~dProcedureColumns(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table, *column; QComboBox *schema_len, *catalog_len, *table_len, *column_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table, *l_column; QLabel *l_schema_len, *l_catalog_len, *l_table_len, *l_column_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dTablePrivileges : public QDialog { Q_OBJECT public: dTablePrivileges( OdbcTest *pOdbcTest, QString name ); ~dTablePrivileges(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *schema_len, *catalog_len, *table_len; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dGetTypeInfo : public QDialog { Q_OBJECT public: dGetTypeInfo( OdbcTest *pOdbcTest, QString name ); ~dGetTypeInfo(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *type; QLabel *l_handle, *l_type; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dStatistics : public QDialog { Q_OBJECT public: dStatistics( OdbcTest *pOdbcTest, QString name ); ~dStatistics(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *schema_len, *catalog_len, *table_len; QComboBox *unique, *reserved; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QLabel *l_unique, *l_reserved; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; class dSpecialColumns : public QDialog { Q_OBJECT public: dSpecialColumns( OdbcTest *pOdbcTest, QString name ); ~dSpecialColumns(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *schema, *catalog, *table; QComboBox *schema_len, *catalog_len, *table_len; QComboBox *ident, *scope, *nullable; QLabel *l_handle, *l_schema, *l_catalog, *l_table; QLabel *l_schema_len, *l_catalog_len, *l_table_len; QLabel *l_ident, *l_scope, *l_nullable; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/catalog.cpp0000644000175000001440000027175111506076311015357 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "catalog.h" #include "OdbcTest.h" static attr_options get_type_options[] = { { "SQL_ALL_TYPES", SQL_ALL_TYPES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_CHAR", SQL_CHAR, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_VARCHAR", SQL_VARCHAR, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_LONGVARCHAR", SQL_LONGVARCHAR, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DECIMAL", SQL_DECIMAL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_NUMERIC", SQL_NUMERIC, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_SMALLINT", SQL_SMALLINT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_INTEGER", SQL_INTEGER, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_REAL", SQL_REAL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_FLOAT", SQL_FLOAT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DOUBLE", SQL_DOUBLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_BIT", SQL_BIT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_TINYINT", SQL_TINYINT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_BIGINT", SQL_BIGINT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_BINARY", SQL_BINARY, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_VARBINARY", SQL_VARBINARY, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_LONGVARBINARY", SQL_LONGVARBINARY, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_TYPE_DATE", SQL_TYPE_DATE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DATE", SQL_DATE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_TYPE_TIME", SQL_TYPE_TIME, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_TIME", SQL_TIME, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_TYPE_TIMESTAMP", SQL_TYPE_TIMESTAMP, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_TIMESTAMP", SQL_TIMESTAMP, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_MONTH", SQL_INTERVAL_MONTH, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_YEAR", SQL_INTERVAL_YEAR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_YEAR_TO_MONTH", SQL_INTERVAL_YEAR_TO_MONTH, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_DAY", SQL_INTERVAL_DAY, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_HOUR", SQL_INTERVAL_HOUR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_MINUTE", SQL_INTERVAL_MINUTE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_SECOND", SQL_INTERVAL_SECOND, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_DAY_TO_HOUR", SQL_INTERVAL_DAY_TO_HOUR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_DAY_TO_MINUTE", SQL_INTERVAL_DAY_TO_MINUTE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_DAY_TO_SECOND", SQL_INTERVAL_DAY_TO_SECOND, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_HOUR_TO_MINUTE", SQL_INTERVAL_HOUR_TO_MINUTE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_INTERVAL_HOUR_TO_SECOND", SQL_INTERVAL_HOUR_TO_SECOND, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; static attr_options unique_options[ 3 ] = { { "SQL_INDEX_UNIQUE", SQL_INDEX_UNIQUE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_INDEX_ALL", SQL_INDEX_ALL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; static attr_options reserved_options[ 3 ] = { { "SQL_QUICK", SQL_QUICK, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ENSURE", SQL_ENSURE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; static attr_options ident_options[ 3 ] = { { "SQL_BEST_ROWID", SQL_BEST_ROWID, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ROWVER", SQL_ROWVER, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; static attr_options scope_options[ 4 ] = { { "SQL_SCOPE_CURROW", SQL_SCOPE_CURROW, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_SCOPE_TRANSACTION", SQL_SCOPE_TRANSACTION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_SCOPE_SESSION", SQL_SCOPE_SESSION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; static attr_options null_options[ 3 ] = { { "SQL_NO_NULLS", SQL_NO_NULLS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_NULLABLE", SQL_NULLABLE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0}}, NULL, 0, 0, 0}, }; void dTables::Ok() { QString stringLength; pOdbcTest->out_win->append( "SQLTables():" ); pOdbcTest->out_win->append( " In:" ); // handle... OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE hStatement = SQL_NULL_HANDLE; if ( hand ) hStatement = hand->getHandle(); if ( hStatement ) pOdbcTest->out_win->append( QString( tr(" Statement Handle: %1") ).arg( (qulonglong)hStatement ) ); else pOdbcTest->out_win->append( tr(" Statement Handle: SQL_NULL_HSTMT") ); // catalog... QString stringCatalog = catalog ->currentText(); const char *pszCatalog = NULL; if ( stringCatalog == "" || stringCatalog.isNull() ) { pszCatalog = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( stringCatalog == "" || stringCatalog.isEmpty() ) { pszCatalog = ""; pOdbcTest->out_win->append( " Catalog: " ); } else if ( stringCatalog == "SQL_ALL_CATALOGS" ) { pszCatalog = SQL_ALL_CATALOGS; pOdbcTest->out_win->append( QString( tr(" Type: SQL_ALL_CATALOGS=%1") ).arg( SQL_ALL_CATALOGS ) ); } else { pszCatalog = stringCatalog.toAscii().constData(); pOdbcTest->out_win->append( QString( tr(" Catalog: %1") ).arg( pszCatalog ) ); } // catalog length... stringLength = catalog_len ->currentText(); SQLSMALLINT nCatalog = SQL_NTS; if ( stringLength.left( 7 ) == "SQL_NTS" ) { nCatalog = SQL_NTS; pOdbcTest->out_win->append( " Catalog Len: SQL_NTS=-3" ); } else { nCatalog = stringLength.toInt(); pOdbcTest->out_win->append( QString( tr(" Catalog Len: %1") ).arg( nCatalog ) ); } // schema... QString stringSchema = schema->currentText(); const char *pszSchema = NULL; if ( stringSchema == "" || stringSchema.isNull() ) { pszSchema = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( stringSchema == "" || stringSchema.isEmpty() ) { pszSchema = ""; pOdbcTest->out_win->append( " Schema: " ); } else if ( stringSchema == "SQL_ALL_SCHEMAS" ) { pszSchema = SQL_ALL_SCHEMAS; pOdbcTest->out_win->append( QString( tr(" Type: SQL_ALL_SCHEMAS=%1") ).arg( SQL_ALL_SCHEMAS ) ); } else { pszSchema = stringSchema.toAscii().constData(); pOdbcTest->out_win->append( QString( tr(" Schema: %1") ).arg( pszSchema ) ); } // schema length... stringLength = schema_len ->currentText(); SQLSMALLINT nSchema = SQL_NTS; if ( stringLength.left( 7 ) == "SQL_NTS" ) { nSchema = SQL_NTS; pOdbcTest->out_win->append( " Schema Len: SQL_NTS=-3" ); } else { nSchema = stringLength.toInt(); pOdbcTest->out_win->append( QString( tr(" Schema Len: %1") ).arg( nSchema ) ); } // table... QString stringTable = table->currentText(); const char *pszTable = NULL; if ( stringTable == "" || stringTable.isNull() ) { pszTable = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( stringTable == "" || stringTable.isEmpty() ) { pszTable = ""; pOdbcTest->out_win->append( " Table: " ); } else { pszTable = stringTable.toAscii().constData(); pOdbcTest->out_win->append( QString( tr(" Table: %1") ).arg( pszTable ) ); } // table length... stringLength = table_len ->currentText(); SQLSMALLINT nTable = SQL_NTS; if ( stringLength.left( 7 ) == "SQL_NTS" ) { nTable = SQL_NTS; pOdbcTest->out_win->append( " Table Len: SQL_NTS=-3" ); } else { nTable = stringLength.toInt(); pOdbcTest->out_win->append( QString( tr(" Table Len: %1") ).arg( nTable ) ); } // type... QString stringType = type->currentText(); const char *pszType = NULL; if ( stringType == "" || stringType.isNull() ) { pszType = NULL; pOdbcTest->out_win->append( " Type: " ); } else if ( stringType == "" || stringType.isEmpty() ) { pszType = ""; pOdbcTest->out_win->append( " Type: " ); } else if ( stringType == "SQL_ALL_TABLE_TYPES" ) { pszType = SQL_ALL_TABLE_TYPES; pOdbcTest->out_win->append( QString( tr(" Type: SQL_ALL_TABLE_TYPES=%1") ).arg( SQL_ALL_TABLE_TYPES ) ); } else { pszType = stringType.toAscii().constData(); pOdbcTest->out_win->append( QString( tr(" Type: %1") ).arg( pszType ) ); } // type length... stringLength = type_len->currentText(); SQLSMALLINT nType = SQL_NTS; if ( stringLength.left( 7 ) == "SQL_NTS" ) { nType = SQL_NTS; pOdbcTest->out_win->append( " Type Len: SQL_NTS=-3" ); } else { nType = stringLength.toInt(); pOdbcTest->out_win->append( QString( tr(" Type Len: %1") ).arg( nType ) ); } // do it... SQLRETURN nReturn = SQLTables( hStatement, (SQLCHAR*)pszCatalog, nCatalog, (SQLCHAR*)pszSchema, nSchema, (SQLCHAR*)pszTable, nTable, (SQLCHAR*)pszType, nType ); pOdbcTest->out_win->append( " Return:" ); pOdbcTest->out_win->append( QString( tr(" %1=%2") ).arg( pOdbcTest->return_as_text( nReturn ) ).arg( nReturn ) ); pOdbcTest->out_win->append( "" ); } dTables::dTables( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); // "Handle" handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); // "catalog" catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); catalog->insertItem( 2, "SQL_ALL_CATALOGS" ); schema = new QComboBox( this ); // "schema" schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); schema->insertItem( 2, "SQL_ALL_SCHEMAS" ); table = new QComboBox( this ); // "table" table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); /*! \todo consider getting from SQLGetInfo (with a fallback)... */ type = new QComboBox( this ); // "table" type->setEditable( true ); type->setGeometry( 100, 140, 150, 20 ); l_type = new QLabel( "Table Type:", this ); l_type->setGeometry( 10, 140, 90, 20 ); type->insertItem( 0, "" ); type->insertItem( 1, "" ); type->insertItem( 2, "SQL_ALL_TABLE_TYPES" ); catalog_len = new QComboBox( this ); // "catalog len" catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); // "schema len" schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); // "table len" table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); type_len = new QComboBox( this ); // "type len" type_len->setEditable( true ); type_len->setGeometry( 370, 140, 150, 20 ); l_type_len = new QLabel( "String Length:", this ); l_type_len->setGeometry( 280, 140, 90, 20 ); type_len->insertItem( 0, "SQL_NTS=-3" ); type_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dTables::~dTables() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete type; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete l_type; delete catalog_len; delete schema_len; delete table_len; delete type_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete l_type_len; } void dColumns::Ok() { const char *cat, *sch, *tab, *col; const char *lcat, *lsch, *ltab, *lcol; QString qcat, qsch, qtab, qcol; QString qlcat, qlsch, qltab, qlcol; int cat_len, sch_len, tab_len, col_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qcol = column ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); qlcol = column_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); col = qcol.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); lcol = qlcol.toAscii().constData(); pOdbcTest->out_win->append( "SQLColumns():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( col, "" ) == 0 ) { col = NULL; pOdbcTest->out_win->append( " Column: " ); } else if ( strcmp( col, "" ) == 0 ) { col = ""; pOdbcTest->out_win->append( " Column: " ); } else { txt.sprintf( " Column: %s", col ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcol, "SQL_NTS", 7 ) == 0 ) { col_len = SQL_NTS; txt.sprintf( " Column Len: SQL_NTS=-3" ); } else { col_len = atoi( lcol ); txt.sprintf( " Column Len: %d", col_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLColumns( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, (SQLCHAR*)col, col_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } void dColumnPrivileges::Ok() { const char *cat, *sch, *tab, *col; const char *lcat, *lsch, *ltab, *lcol; QString qcat, qsch, qtab, qcol; QString qlcat, qlsch, qltab, qlcol; int cat_len, sch_len, tab_len, col_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qcol = column ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); qlcol = column_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); col = qcol.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); lcol = qlcol.toAscii().constData(); pOdbcTest->out_win->append( "SQLColumnPrivileges():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( col, "" ) == 0 ) { col = NULL; pOdbcTest->out_win->append( " Column: " ); } else if ( strcmp( col, "" ) == 0 ) { col = ""; pOdbcTest->out_win->append( " Column: " ); } else { txt.sprintf( " Column: %s", col ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcol, "SQL_NTS", 7 ) == 0 ) { col_len = SQL_NTS; txt.sprintf( " Column Len: SQL_NTS=-3" ); } else { col_len = atoi( lcol ); txt.sprintf( " Column Len: %d", col_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLColumnPrivileges( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, (SQLCHAR*)col, col_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dColumnPrivileges::dColumnPrivileges( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); column = new QComboBox( this ); column->setEditable( true ); column->setGeometry( 100, 140, 150, 20 ); l_column = new QLabel( "Column:", this ); l_column->setGeometry( 10, 140, 90, 20 ); column->insertItem( 0, "" ); column->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); column_len = new QComboBox( this ); column_len->setEditable( true ); column_len->setGeometry( 370, 140, 150, 20 ); l_column_len = new QLabel( "String Length:", this ); l_column_len->setGeometry( 280, 140, 90, 20 ); column_len->insertItem( 0, "SQL_NTS=-3" ); column_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dColumnPrivileges::~dColumnPrivileges() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete column; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete l_column; delete catalog_len; delete schema_len; delete table_len; delete column_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete l_column_len; } dColumns::dColumns( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); column = new QComboBox( this ); column->setEditable( true ); column->setGeometry( 100, 140, 150, 20 ); l_column = new QLabel( "Column:", this ); l_column->setGeometry( 10, 140, 90, 20 ); column->insertItem( 0, "" ); column->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); column_len = new QComboBox( this ); column_len->setEditable( true ); column_len->setGeometry( 370, 140, 150, 20 ); l_column_len = new QLabel( "String Length:", this ); l_column_len->setGeometry( 280, 140, 90, 20 ); column_len->insertItem( 0, "SQL_NTS=-3" ); column_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dColumns::~dColumns() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete column; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete l_column; delete catalog_len; delete schema_len; delete table_len; delete column_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete l_column_len; } void dForeignKeys::Ok() { const char *cat, *sch, *tab; const char *fk_cat, *fk_sch, *fk_tab; const char *lcat, *lsch, *ltab; const char *fk_lcat, *fk_lsch, *fk_ltab; QString qcat, qsch, qtab; QString qfk_cat, qfk_sch, qfk_tab; QString qlcat, qlsch, qltab; QString qfk_lcat, qfk_lsch, qfk_ltab; int cat_len, sch_len, tab_len; int fk_cat_len, fk_sch_len, fk_tab_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); qfk_cat = fk_catalog ->currentText(); qfk_sch = fk_schema ->currentText(); qfk_tab = fk_table ->currentText(); qfk_lcat = fk_catalog_len ->currentText(); qfk_lsch = fk_schema_len ->currentText(); qfk_ltab = fk_table_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); fk_cat = qfk_cat.toAscii().constData(); fk_sch = qfk_sch.toAscii().constData(); fk_tab = qfk_tab.toAscii().constData(); fk_lcat = qfk_lcat.toAscii().constData(); fk_lsch = qfk_lsch.toAscii().constData(); fk_ltab = qfk_ltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLForeignKeys():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " PKCatalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " PKCatalog: " ); } else { txt.sprintf( " PKCatalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " PKCatalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " PKCatalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " PKSchema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " PKSchema: " ); } else { txt.sprintf( " PKSchema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " PKSchema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " PKSchema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " PKTable: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " PKTable: " ); } else { txt.sprintf( " PKTable: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " PKTable Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " PKTable Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( fk_cat, "" ) == 0 ) { fk_cat = NULL; pOdbcTest->out_win->append( " FKCatalog: " ); } else if ( strcmp( fk_cat, "" ) == 0 ) { fk_cat = ""; pOdbcTest->out_win->append( " FKCatalog: " ); } else { txt.sprintf( " FKCatalog: %s", fk_cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( fk_lcat, "SQL_NTS", 7 ) == 0 ) { fk_cat_len = SQL_NTS; txt.sprintf( " FKCatalog Len: SQL_NTS=-3" ); } else { fk_cat_len = atoi( fk_lcat ); txt.sprintf( " FKCatalog Len: %d", fk_cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( fk_sch, "" ) == 0 ) { fk_sch = NULL; pOdbcTest->out_win->append( " FKSchema: " ); } else if ( strcmp( fk_sch, "" ) == 0 ) { fk_sch = ""; pOdbcTest->out_win->append( " FKSchema: " ); } else { txt.sprintf( " FKSchema: %s", fk_sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( fk_lsch, "SQL_NTS", 7 ) == 0 ) { fk_sch_len = SQL_NTS; txt.sprintf( " FKSchema Len: SQL_NTS=-3" ); } else { fk_sch_len = atoi( lsch ); txt.sprintf( " FKSchema Len: %d", fk_sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( fk_tab, "" ) == 0 ) { fk_tab = NULL; pOdbcTest->out_win->append( " FKTable: " ); } else if ( strcmp( fk_tab, "" ) == 0 ) { fk_tab = ""; pOdbcTest->out_win->append( " FKTable: " ); } else { txt.sprintf( " FKTable: %s", fk_tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( fk_ltab, "SQL_NTS", 7 ) == 0 ) { fk_tab_len = SQL_NTS; txt.sprintf( " FKTable Len: SQL_NTS=-3" ); } else { fk_tab_len = atoi( ltab ); txt.sprintf( " FKTable Len: %d", fk_tab_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLForeignKeys( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, (SQLCHAR*)fk_cat, fk_cat_len, (SQLCHAR*)fk_sch, fk_sch_len, (SQLCHAR*)fk_tab, fk_tab_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dForeignKeys::dForeignKeys( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "PKCatalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "PKSchema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "PKTable:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); fk_catalog = new QComboBox( this ); fk_catalog->setEditable( true ); fk_catalog->setGeometry( 100, 140, 150, 20 ); fk_l_catalog = new QLabel( "FKCatalog:", this ); fk_l_catalog->setGeometry( 10, 140, 90, 20 ); fk_catalog->insertItem( 0, "" ); fk_catalog->insertItem( 1, "" ); fk_schema = new QComboBox( this ); fk_schema->setEditable( true ); fk_schema->setGeometry( 100, 170, 150, 20 ); fk_l_schema = new QLabel( "FKSchema:", this ); fk_l_schema->setGeometry( 10, 170, 90, 20 ); fk_schema->insertItem( 0, "" ); fk_schema->insertItem( 1, "" ); fk_table = new QComboBox( this ); fk_table->setEditable( true ); fk_table->setGeometry( 100, 200, 150, 20 ); fk_l_table = new QLabel( "FKTable:", this ); fk_l_table->setGeometry( 10, 200, 90, 20 ); fk_table->insertItem( 0, "" ); fk_table->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 140, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 140, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); fk_catalog_len = new QComboBox( this ); fk_catalog_len->setEditable( true ); fk_catalog_len->setGeometry( 370, 140, 150, 20 ); fk_l_catalog_len = new QLabel( "String Length:", this ); fk_l_catalog_len->setGeometry( 280, 140, 90, 20 ); fk_catalog_len->insertItem( 0, "SQL_NTS=-3" ); fk_catalog_len->insertItem( 1, "0" ); fk_schema_len = new QComboBox( this ); fk_schema_len->setEditable( true ); fk_schema_len->setGeometry( 370, 170, 150, 20 ); fk_l_schema_len = new QLabel( "String Length:", this ); fk_l_schema_len->setGeometry( 280, 170, 90, 20 ); fk_schema_len->insertItem( 0, "SQL_NTS=-3" ); fk_schema_len->insertItem( 1, "0" ); fk_table_len = new QComboBox( this ); fk_table_len->setEditable( true ); fk_table_len->setGeometry( 370, 200, 150, 20 ); fk_l_table_len = new QLabel( "String Length:", this ); fk_l_table_len->setGeometry( 280, 200, 90, 20 ); fk_table_len->insertItem( 0, "SQL_NTS=-3" ); fk_table_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dForeignKeys::~dForeignKeys() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete fk_catalog; delete fk_schema; delete fk_table; delete fk_l_catalog; delete fk_l_schema; delete fk_l_table; delete fk_catalog_len; delete fk_schema_len; delete fk_table_len; delete fk_l_catalog_len; delete fk_l_schema_len; delete fk_l_table_len; } void dPrimaryKeys::Ok() { const char *cat, *sch, *tab; const char *lcat, *lsch, *ltab; QString qcat, qsch, qtab; QString qlcat, qlsch, qltab; int cat_len, sch_len, tab_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLPrimaryKeys():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLPrimaryKeys( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dPrimaryKeys::dPrimaryKeys( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); catalog_len = new QComboBox(this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dPrimaryKeys::~dPrimaryKeys() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; } void dProcedures::Ok() { const char *cat, *sch, *tab; const char *lcat, *lsch, *ltab; QString qcat, qsch, qtab; QString qlcat, qlsch, qltab; int cat_len, sch_len, tab_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLProcedures():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Procedure: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Procedure: " ); } else { txt.sprintf( " Procedure: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Procedure Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Procedure Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLProcedures( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dProcedures::dProcedures( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Procedure:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dProcedures::~dProcedures() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; } void dProcedureColumns::Ok() { const char *cat, *sch, *tab, *col; const char *lcat, *lsch, *ltab, *lcol; QString qcat, qsch, qtab, qcol; QString qlcat, qlsch, qltab, qlcol; int cat_len, sch_len, tab_len, col_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qcol = column ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); qlcol = column_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); col = qcol.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); lcol = qlcol.toAscii().constData(); pOdbcTest->out_win->append( "SQLProcedureColumns():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Procedure: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Procedure: " ); } else { txt.sprintf( " Procedure: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( col, "" ) == 0 ) { col = NULL; pOdbcTest->out_win->append( " Column: " ); } else if ( strcmp( col, "" ) == 0 ) { col = ""; pOdbcTest->out_win->append( " Column: " ); } else { txt.sprintf( " Column: %s", col ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcol, "SQL_NTS", 7 ) == 0 ) { col_len = SQL_NTS; txt.sprintf( " Column Len: SQL_NTS=-3" ); } else { col_len = atoi( lcol ); txt.sprintf( " Column Len: %d", col_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLProcedureColumns( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, (SQLCHAR*)col, col_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dProcedureColumns::dProcedureColumns( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Procedure:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); column = new QComboBox( this ); column->setEditable( true ); column->setGeometry( 100, 140, 150, 20 ); l_column = new QLabel( "Column:", this ); l_column->setGeometry( 10, 140, 90, 20 ); column->insertItem( 0, "" ); column->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); column_len = new QComboBox( this ); column_len->setEditable( true ); column_len->setGeometry( 370, 140, 150, 20 ); l_column_len = new QLabel( "String Length:", this ); l_column_len->setGeometry( 280, 140, 90, 20 ); column_len->insertItem( 0, "SQL_NTS=-3" ); column_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dProcedureColumns::~dProcedureColumns() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete column; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete l_column; delete catalog_len; delete schema_len; delete table_len; delete column_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete l_column_len; } void dTablePrivileges::Ok() { const char *cat, *sch, *tab; const char *lcat, *lsch, *ltab; QString qcat, qsch, qtab; QString qlcat, qlsch, qltab; int cat_len, sch_len, tab_len; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len ->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLTablePrivileges():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLTablePrivileges( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dTablePrivileges::dTablePrivileges( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dTablePrivileges::~dTablePrivileges() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; } void dGetTypeInfo::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); int index; SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLINTEGER info_type; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetTypeInfo():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = type->currentIndex(); info_type = get_type_options[ index ].attr; txt.sprintf( " Data Type: %s=%d (%s)", get_type_options[ index ].text, get_type_options[ index ].attr, get_type_options[ index ].version ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLGetTypeInfo( in_handle, info_type ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dGetTypeInfo::dGetTypeInfo( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); type = new QComboBox( this ); type->setGeometry( 130, 80, 340, 20 ); pOdbcTest->fill_list_box( get_type_options, type ); l_type = new QLabel( "Data Type:", this ); l_type->setGeometry( 10, 80, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dGetTypeInfo::~dGetTypeInfo() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete type; delete l_type; } void dStatistics::Ok() { const char *cat, *sch, *tab; const char *lcat, *lsch, *ltab; QString qcat, qsch, qtab; QString qlcat, qlsch, qltab; int cat_len, sch_len, tab_len; int res, res_val, uniq, uniq_val; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog ->currentText(); qsch = schema ->currentText(); qtab = table ->currentText(); qlcat = catalog_len ->currentText(); qlsch = schema_len ->currentText(); qltab = table_len->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLStatistics():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); uniq = unique->currentIndex(); uniq_val = unique_options[ uniq ].attr; txt.sprintf( " Unique: %s=%d (%s)", unique_options[ uniq ].text, unique_options[ uniq ].attr, unique_options[ uniq ].version ); pOdbcTest->out_win->append( txt ); res = reserved->currentIndex(); res_val = reserved_options[ res ].attr; txt.sprintf( " Reserved: %s=%d (%s)", reserved_options[ res ].text, reserved_options[ res ].attr, reserved_options[ res ].version ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLStatistics( in_handle, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, uniq_val, res_val ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dStatistics::dStatistics( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 50, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 50, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 80, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 80, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 110, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 110, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 50, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 50, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 80, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 80, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 110, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 110, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); unique = new QComboBox( this ); unique->setGeometry( 100, 140, 200, 20 ); pOdbcTest->fill_list_box( unique_options, unique ); l_unique = new QLabel( "Unique:", this ); l_unique->setGeometry( 10, 140, 90, 20 ); reserved = new QComboBox( this ); reserved->setGeometry( 100, 170, 200, 20 ); pOdbcTest->fill_list_box( reserved_options, reserved ); l_reserved = new QLabel( "Reserved:", this ); l_reserved->setGeometry( 10, 170, 90, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dStatistics::~dStatistics() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete unique; delete reserved; delete l_unique; delete l_reserved; } void dSpecialColumns::Ok() { const char *cat, *sch, *tab; const char *lcat, *lsch, *ltab; QString qcat, qsch, qtab; QString qlcat, qlsch, qltab; int cat_len, sch_len, tab_len; int nul, nul_val, scp, scp_val; int id, id_val; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( hand ) in_handle = hand->getHandle(); qcat = catalog->currentText(); qsch = schema->currentText(); qtab = table->currentText(); qlcat = catalog_len->currentText(); qlsch = schema_len->currentText(); qltab = table_len->currentText(); cat = qcat.toAscii().constData(); sch = qsch.toAscii().constData(); tab = qtab.toAscii().constData(); lcat = qlcat.toAscii().constData(); lsch = qlsch.toAscii().constData(); ltab = qltab.toAscii().constData(); pOdbcTest->out_win->append( "SQLSpecialColumns():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); id = ident->currentIndex(); id_val = ident_options[ id ].attr; txt.sprintf( " Identifier Type: %s=%d (%s)", ident_options[ id ].text, ident_options[ id ].attr, ident_options[ id ].version ); pOdbcTest->out_win->append( txt ); if ( strcmp( cat, "" ) == 0 ) { cat = NULL; pOdbcTest->out_win->append( " Catalog: " ); } else if ( strcmp( cat, "" ) == 0 ) { cat = ""; pOdbcTest->out_win->append( " Catalog: " ); } else { txt.sprintf( " Catalog: %s", cat ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lcat, "SQL_NTS", 7 ) == 0 ) { cat_len = SQL_NTS; txt.sprintf( " Catalog Len: SQL_NTS=-3" ); } else { cat_len = atoi( lcat ); txt.sprintf( " Catalog Len: %d", cat_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( sch, "" ) == 0 ) { sch = NULL; pOdbcTest->out_win->append( " Schema: " ); } else if ( strcmp( sch, "" ) == 0 ) { sch = ""; pOdbcTest->out_win->append( " Schema: " ); } else { txt.sprintf( " Schema: %s", sch ); pOdbcTest->out_win->append( txt ); } if ( strncmp( lsch, "SQL_NTS", 7 ) == 0 ) { sch_len = SQL_NTS; txt.sprintf( " Schema Len: SQL_NTS=-3" ); } else { sch_len = atoi( lsch ); txt.sprintf( " Schema Len: %d", sch_len ); } pOdbcTest->out_win->append( txt ); if ( strcmp( tab, "" ) == 0 ) { tab = NULL; pOdbcTest->out_win->append( " Table: " ); } else if ( strcmp( tab, "" ) == 0 ) { tab = ""; pOdbcTest->out_win->append( " Table: " ); } else { txt.sprintf( " Table: %s", tab ); pOdbcTest->out_win->append( txt ); } if ( strncmp( ltab, "SQL_NTS", 7 ) == 0 ) { tab_len = SQL_NTS; txt.sprintf( " Table Len: SQL_NTS=-3" ); } else { tab_len = atoi( ltab ); txt.sprintf( " Table Len: %d", tab_len ); } pOdbcTest->out_win->append( txt ); scp = scope->currentIndex(); scp_val = unique_options[ scp ].attr; txt.sprintf( " Scope: %s=%d (%s)", scope_options[ scp ].text, scope_options[ scp ].attr, scope_options[ scp ].version ); pOdbcTest->out_win->append( txt ); nul = nullable->currentIndex(); nul_val = null_options[ nul ].attr; txt.sprintf( " Nullable: %s=%d (%s)", null_options[ nul ].text, null_options[ nul ].attr, null_options[ nul ].version ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSpecialColumns( in_handle, id_val, (SQLCHAR*)cat, cat_len, (SQLCHAR*)sch, sch_len, (SQLCHAR*)tab, tab_len, scp_val, nul_val ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSpecialColumns::dSpecialColumns( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); ident = new QComboBox( this ); ident->setGeometry( 100, 50, 250, 20 ); pOdbcTest->fill_list_box( ident_options, ident ); l_ident = new QLabel( "Identifier Type:", this ); l_ident->setGeometry( 10, 50, 90, 20 ); catalog = new QComboBox( this ); catalog->setEditable( true ); catalog->setGeometry( 100, 80, 150, 20 ); l_catalog = new QLabel( "Catalog:", this ); l_catalog->setGeometry( 10, 80, 90, 20 ); catalog->insertItem( 0, "" ); catalog->insertItem( 1, "" ); schema = new QComboBox( this ); schema->setEditable( true ); schema->setGeometry( 100, 110, 150, 20 ); l_schema = new QLabel( "Schema:", this ); l_schema->setGeometry( 10, 110, 90, 20 ); schema->insertItem( 0, "" ); schema->insertItem( 1, "" ); table = new QComboBox( this ); table->setEditable( true ); table->setGeometry( 100, 140, 150, 20 ); l_table = new QLabel( "Table:", this ); l_table->setGeometry( 10, 140, 90, 20 ); table->insertItem( 0, "" ); table->insertItem( 1, "" ); catalog_len = new QComboBox( this ); catalog_len->setEditable( true ); catalog_len->setGeometry( 370, 80, 150, 20 ); l_catalog_len = new QLabel( "String Length:", this ); l_catalog_len->setGeometry( 280, 80, 90, 20 ); catalog_len->insertItem( 0, "SQL_NTS=-3" ); catalog_len->insertItem( 1, "0" ); schema_len = new QComboBox( this ); schema_len->setEditable( true ); schema_len->setGeometry( 370, 110, 150, 20 ); l_schema_len = new QLabel( "String Length:", this ); l_schema_len->setGeometry( 280, 110, 90, 20 ); schema_len->insertItem( 0, "SQL_NTS=-3" ); schema_len->insertItem( 1, "0" ); table_len = new QComboBox( this ); table_len->setEditable( true ); table_len->setGeometry( 370, 140, 150, 20 ); l_table_len = new QLabel( "String Length:", this ); l_table_len->setGeometry( 280, 140, 90, 20 ); table_len->insertItem( 0, "SQL_NTS=-3" ); table_len->insertItem( 1, "0" ); scope = new QComboBox( this ); scope->setGeometry( 100, 170, 250, 20 ); pOdbcTest->fill_list_box( scope_options, scope ); l_scope = new QLabel( "Scope:", this ); l_scope->setGeometry( 10, 170, 90, 20 ); nullable = new QComboBox( this ); nullable->setGeometry( 100, 200, 250, 20 ); pOdbcTest->fill_list_box( null_options, nullable ); l_nullable = new QLabel( "Reserved:", this ); l_nullable->setGeometry( 10, 200, 90, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dSpecialColumns::~dSpecialColumns() { delete ok; delete cancel; delete help; delete handles; delete catalog; delete schema; delete table; delete l_handle; delete l_catalog; delete l_schema; delete l_table; delete catalog_len; delete schema_len; delete table_len; delete l_catalog_len; delete l_schema_len; delete l_table_len; delete scope; delete nullable; delete l_scope; delete l_nullable; delete ident; delete l_ident; } void OdbcTest::slotColumns() { dColumns *dlg = new dColumns( this, "SQLColumns" ); dlg->exec(); delete dlg; } void OdbcTest::slotColumnPrivileges() { dColumnPrivileges *dlg = new dColumnPrivileges( this, "SQLColumnPrivileges" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetTypeInfo() { dGetTypeInfo *dlg = new dGetTypeInfo( this, "SQLGetTypeInfo" ); dlg->exec(); delete dlg; } void OdbcTest::slotForeignKeys() { dForeignKeys *dlg = new dForeignKeys( this, "SQLForeignKeys" ); dlg->exec(); delete dlg; } void OdbcTest::slotPrimaryKeys() { dPrimaryKeys *dlg = new dPrimaryKeys( this, "SQLPrimaryKeys" ); dlg->exec(); delete dlg; } void OdbcTest::slotProcedures() { dProcedures *dlg = new dProcedures( this, "SQLProcedures" ); dlg->exec(); delete dlg; } void OdbcTest::slotProcedureColumns() { dProcedureColumns *dlg = new dProcedureColumns( this, "SQLProcedureColumns" ); dlg->exec(); delete dlg; } void OdbcTest::slotSpecialColumns() { dSpecialColumns *dlg = new dSpecialColumns( this, "SQLSpecialColumns" ); dlg->exec(); delete dlg; } void OdbcTest::slotStatistics() { dStatistics *dlg = new dStatistics( this, "SQLStatistics" ); dlg->exec(); delete dlg; } void OdbcTest::slotTables() { dTables *dlg = new dTables( this, "SQLTables" ); dlg->exec(); delete dlg; } void OdbcTest::slotTablePrivileges() { dTablePrivileges *dlg = new dTablePrivileges( this, "SQLTablePrivileges" ); dlg->exec(); delete dlg; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/Makefile.am0000644000175000001440000001064011506076311015261 00000000000000bin_PROGRAMS = ODBCTestQ4 INCLUDES = $(QT_CXXFLAGS) \ $(INCLUDES_COMMON) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ $(LTDLINCL) ODBCTestQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ ../gtrtstQ4/libgtrtstQ4.la \ -lodbc -lodbcinst ODBCTestQ4_SOURCES = \ attr.cpp \ catalog.cpp \ conn.cpp \ desc.cpp \ diag.cpp \ DlgDbcConnect.cpp \ DlgEnvAllocEnv.cpp \ DlgEnvAllocHandle.cpp \ DlgEnvDataSources.cpp \ DlgEnvDrivers.cpp \ DlgEnvEndTran.cpp \ DlgEnvFreeEnv.cpp \ DlgEnvFreeHandle.cpp \ DlgEnvTransact.cpp \ DlgToolsManageAutoTest.cpp \ DlgToolsManageTest.cpp \ DlgToolsManageTestGroup.cpp \ DlgToolsNewGroup.cpp \ DlgToolsNewSource.cpp \ DlgToolsRunAutoTests.cpp \ installer.cpp \ main.cpp \ OdbcHandle.cpp \ OdbcTest.cpp \ results.cpp \ stmt.cpp \ mattr.cpp \ mcatalog.cpp \ mconn.cpp \ mdesc.cpp \ mdiag.cpp \ mDlgDbcConnect.cpp \ mDlgToolsManageAutoTest.cpp \ mDlgToolsManageTest.cpp \ mDlgToolsManageTestGroup.cpp \ mDlgToolsNewGroup.cpp \ mDlgToolsNewSource.cpp \ mDlgToolsRunAutoTests.cpp \ mDlgEnvAllocEnv.cpp \ mDlgEnvAllocHandle.cpp \ mDlgEnvDataSources.cpp \ mDlgEnvDrivers.cpp \ mDlgEnvEndTran.cpp \ mDlgEnvFreeEnv.cpp \ mDlgEnvFreeHandle.cpp \ mDlgEnvTransact.cpp \ mOdbcTest.cpp \ mresults.cpp \ mstmt.cpp mresults.cpp: @srcdir@/results.h @MOC@ @srcdir@/results.h -o mresults.cpp mstmt.cpp: @srcdir@/stmt.h @MOC@ @srcdir@/stmt.h -o mstmt.cpp mOdbcTest.cpp: @srcdir@/OdbcTest.h @MOC@ @srcdir@/OdbcTest.h -o mOdbcTest.cpp mdesc.cpp: @srcdir@/desc.h @MOC@ @srcdir@/desc.h -o mdesc.cpp mdiag.cpp: @srcdir@/diag.h @MOC@ @srcdir@/diag.h -o mdiag.cpp mDlgEnvAllocEnv.cpp: @srcdir@/DlgEnvAllocEnv.h @MOC@ @srcdir@/DlgEnvAllocEnv.h -o mDlgEnvAllocEnv.cpp mDlgEnvAllocHandle.cpp: @srcdir@/DlgEnvAllocHandle.h @MOC@ @srcdir@/DlgEnvAllocHandle.h -o mDlgEnvAllocHandle.cpp mDlgEnvDataSources.cpp: @srcdir@/DlgEnvDataSources.h @MOC@ @srcdir@/DlgEnvDataSources.h -o mDlgEnvDataSources.cpp mDlgEnvDrivers.cpp: @srcdir@/DlgEnvDrivers.h @MOC@ @srcdir@/DlgEnvDrivers.h -o mDlgEnvDrivers.cpp mDlgEnvEndTran.cpp: @srcdir@/DlgEnvEndTran.h @MOC@ @srcdir@/DlgEnvEndTran.h -o mDlgEnvEndTran.cpp mDlgEnvFreeEnv.cpp: @srcdir@/DlgEnvFreeEnv.h @MOC@ @srcdir@/DlgEnvFreeEnv.h -o mDlgEnvFreeEnv.cpp mDlgEnvFreeHandle.cpp: @srcdir@/DlgEnvFreeHandle.h @MOC@ @srcdir@/DlgEnvFreeHandle.h -o mDlgEnvFreeHandle.cpp mDlgEnvTransact.cpp: @srcdir@/DlgEnvTransact.h @MOC@ @srcdir@/DlgEnvTransact.h -o mDlgEnvTransact.cpp mcatalog.cpp: @srcdir@/catalog.h @MOC@ @srcdir@/catalog.h -o mcatalog.cpp mconn.cpp: @srcdir@/conn.h @MOC@ @srcdir@/conn.h -o mconn.cpp mattr.cpp: @srcdir@/attr.h @MOC@ @srcdir@/attr.h -o mattr.cpp mDlgDbcConnect.cpp: @srcdir@/DlgDbcConnect.h @MOC@ @srcdir@/DlgDbcConnect.h -o mDlgDbcConnect.cpp mDlgToolsManageAutoTest.cpp: @srcdir@/DlgToolsManageAutoTest.h @MOC@ @srcdir@/DlgToolsManageAutoTest.h -o mDlgToolsManageAutoTest.cpp mDlgToolsManageTest.cpp: @srcdir@/DlgToolsManageTest.h @MOC@ @srcdir@/DlgToolsManageTest.h -o mDlgToolsManageTest.cpp mDlgToolsManageTestGroup.cpp: @srcdir@/DlgToolsManageTestGroup.h @MOC@ @srcdir@/DlgToolsManageTestGroup.h -o mDlgToolsManageTestGroup.cpp mDlgToolsNewGroup.cpp: @srcdir@/DlgToolsNewGroup.h @MOC@ @srcdir@/DlgToolsNewGroup.h -o mDlgToolsNewGroup.cpp mDlgToolsNewSource.cpp: @srcdir@/DlgToolsNewSource.h @MOC@ @srcdir@/DlgToolsNewSource.h -o mDlgToolsNewSource.cpp mDlgToolsRunAutoTests.cpp: @srcdir@/DlgToolsRunAutoTests.h @MOC@ @srcdir@/DlgToolsRunAutoTests.h -o mDlgToolsRunAutoTests.cpp CLEANFILES = \ mattr.cpp \ mcatalog.cpp \ mconn.cpp \ mdesc.cpp \ mdiag.cpp \ mDlgDbcConnect.cpp \ mDlgEnvAllocEnv.cpp \ mDlgEnvAllocHandle.cpp \ mDlgEnvDataSources.cpp \ mDlgEnvDrivers.cpp \ mDlgEnvEndTran.cpp \ mDlgEnvFreeEnv.cpp \ mDlgEnvFreeHandle.cpp \ mDlgEnvTransact.cpp \ mDlgToolsManageAutoTest.cpp \ mDlgToolsManageTest.cpp \ mDlgToolsManageTestGroup.cpp \ mDlgToolsNewGroup.cpp \ mDlgToolsNewSource.cpp \ mDlgToolsRunAutoTests.cpp \ mOdbcTest.cpp \ mresults.cpp \ mstmt.cpp EXTRA_DIST = \ attr.h \ catalog.h \ conn.h \ desc.h \ diag.h \ DlgDbcConnect.h \ DlgEnvAllocEnv.h \ DlgEnvAllocHandle.h \ DlgEnvDataSources.h \ DlgEnvDrivers.h \ DlgEnvEndTran.h \ DlgEnvFreeEnv.h \ DlgEnvFreeHandle.h \ DlgEnvTransact.h \ DlgToolsManageAutoTest.h \ DlgToolsManageTest.h \ DlgToolsManageTestGroup.h \ DlgToolsNewGroup.h \ DlgToolsNewSource.h \ DlgToolsRunAutoTests.h \ OdbcHandle.h \ OdbcTest.h \ results.h \ stmt.h unixodbc-gui-qt-2.3.0/ODBCTestQ4/diag.h0000644000175000001440000000577711506076311014321 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dError : public QDialog { Q_OBJECT public: dError( OdbcTest *pOdbcTest, QString name ); ~dError(); protected: QPushButton *ok, *cancel, *help; QComboBox *ehandles, *chandles, *shandles; QLabel *l_ehandle, *l_chandle, *l_shandle, *l_buffer_len; QCheckBox *native_valid, *error_valid, *perror_valid, *sqlstate_valid; QLineEdit *buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void native_clkd(); void error_clkd(); void perror_clkd(); void sqlstate_clkd(); }; class dGetDiagRec : public QDialog { Q_OBJECT public: dGetDiagRec( OdbcTest *pOdbcTest, QString name ); ~dGetDiagRec(); protected: QPushButton *ok, *cancel, *help; QComboBox *handle_type, *handles; QLabel *l_handle_type, *l_handles, *l_buffer_len, *l_rec_num; QCheckBox *native_valid, *error_valid, *perror_valid, *sqlstate_valid; QLineEdit *buffer_len, *rec_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void native_clkd(); void error_clkd(); void perror_clkd(); void sqlstate_clkd(); void sel_handle( int ); }; class dGetDiagField : public QDialog { Q_OBJECT public: dGetDiagField( OdbcTest *pOdbcTest, QString name ); ~dGetDiagField(); protected: QPushButton *ok, *cancel, *help; QComboBox *handle_type, *handles, *diag_info; QLabel *l_handle_type, *l_handles, *l_buffer_len, *l_rec_num, *l_diag_info; QCheckBox *diag_ptr_valid, *strlen_valid; QLineEdit *buffer_len, *rec_num; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void diag_ptr_clkd(); void strlen_clkd(); void sel_handle( int ); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsManageTestGroup.cpp0000644000175000001440000000600011506076452020624 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsManageTestGroup.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsManageTestGroup.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsManageTestGroup.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsManageTestGroup[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 7, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 31, 25, 24, 24, 0x09, 50, 46, 24, 24, 0x09, 69, 24, 24, 24, 0x09, 74, 24, 24, 24, 0x09, 80, 24, 24, 24, 0x09, 89, 24, 24, 24, 0x09, 95, 24, 24, 24, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsManageTestGroup[] = { "DlgToolsManageTestGroup\0\0index\0" "Activated(int)\0str\0Activated(QString)\0" "Ok()\0Add()\0Remove()\0New()\0Delete()\0" }; const QMetaObject DlgToolsManageTestGroup::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsManageTestGroup, qt_meta_data_DlgToolsManageTestGroup, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsManageTestGroup::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsManageTestGroup::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsManageTestGroup::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsManageTestGroup)) return static_cast(const_cast< DlgToolsManageTestGroup*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsManageTestGroup::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Activated((*reinterpret_cast< int(*)>(_a[1]))); break; case 1: Activated((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 2: Ok(); break; case 3: Add(); break; case 4: Remove(); break; case 5: New(); break; case 6: Delete(); break; default: ; } _id -= 7; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/attr.cpp0000644000175000001440000025572211506076311014717 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "attr.h" #include "OdbcTest.h" static attr_value strlen_options[] = { { "SQL_NTS", SQL_NTS, NULL, 0 }, { "SQL_IS_POINTER", SQL_IS_POINTER, NULL, 0 }, { "SQL_IS_UINTEGER", SQL_IS_UINTEGER, NULL, 0 }, { "SQL_IS_INTEGER", SQL_IS_INTEGER, NULL, 0 }, { "SQL_IS_USMALLINT", SQL_IS_USMALLINT, NULL, 0 }, { "SQL_IS_SMALLINT", SQL_IS_SMALLINT, NULL, 0 }, { "", 0, NULL, 0 }, { NULL, 0, NULL, 0 } }; static attr_options stmt_options[] = { { "SQL_ATTR_APP_PARAM_DESC", SQL_ATTR_APP_PARAM_DESC, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_APP_ROW_DESC", SQL_ATTR_APP_ROW_DESC, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ASYNC_ENABLE", SQL_ATTR_ASYNC_ENABLE, { { "SQL_ASYNC_ENABLE_OFF", SQL_ASYNC_ENABLE_OFF, NULL, 0 }, { "SQL_ASYNC_ENABLE_ON", SQL_ASYNC_ENABLE_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CONCURRENCY", SQL_ATTR_CONCURRENCY, { { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, NULL, 0 }, { "SQL_CONCUR_LOCK", SQL_CONCUR_LOCK, NULL, 0 }, { "SQL_CONCUR_ROWVER", SQL_CONCUR_ROWVER, NULL, 0 }, { "SQL_CONCUR_VALUES", SQL_CONCUR_VALUES, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CURSOR_SCROLLABLE", SQL_ATTR_CURSOR_SCROLLABLE, { { "SQL_NONSCROLLABLE", SQL_NONSCROLLABLE, NULL, 0 }, { "SQL_SCROLLABLE", SQL_SCROLLABLE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CURSOR_SENSITIVITY", SQL_ATTR_CURSOR_SENSITIVITY, { { "SQL_UNSPECIFIED", SQL_UNSPECIFIED, NULL, 0 }, { "SQL_INSENSITIVE", SQL_INSENSITIVE, NULL, 0 }, { "SQL_SENSITIVE", SQL_SENSITIVE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CURSOR_TYPE", SQL_ATTR_CURSOR_TYPE, { { "SQL_CURSOR_FORWARD_ONLY", SQL_CURSOR_FORWARD_ONLY, NULL, 0 }, { "SQL_CURSOR_STATIC", SQL_CURSOR_STATIC, NULL, 0 }, { "SQL_CURSOR_KEYSET_DRIVEN", SQL_CURSOR_KEYSET_DRIVEN, NULL, 0 }, { "SQL_CURSOR_DYNAMIC", SQL_CURSOR_DYNAMIC, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ENABLE_AUTO_IPD", SQL_ATTR_ENABLE_AUTO_IPD, { { "SQL_FALSE", SQL_FALSE, NULL, 0 }, { "SQL_TRUE", SQL_TRUE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_FETCH_BOOKMARK_PTR", SQL_ATTR_FETCH_BOOKMARK_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, FALSE, TRUE }, { "SQL_ATTR_FETCH_IMP_PARAM_DESC", SQL_ATTR_IMP_PARAM_DESC, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_FETCH_IMP_ROW_DESC", SQL_ATTR_IMP_ROW_DESC, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_KEYSET_SIZE", SQL_ATTR_KEYSET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_MAX_LENGTH", SQL_ATTR_MAX_LENGTH, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_MAX_ROWS", SQL_ATTR_MAX_ROWS, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_METADATA_ID", SQL_ATTR_METADATA_ID, { { "SQL_FALSE", SQL_FALSE, NULL, 0 }, { "SQL_TRUE", SQL_TRUE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_NOSCAN", SQL_ATTR_NOSCAN, { { "SQL_NOSCAN_OFF", SQL_NOSCAN_OFF, NULL, 0 }, { "SQL_NOSCAN_ON", SQL_NOSCAN_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_PARAM_BIND_OFFSET_PTR", SQL_ATTR_PARAM_BIND_OFFSET_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, FALSE, TRUE }, { "SQL_ATTR_PARAM_BIND_TYPE", SQL_ATTR_PARAM_BIND_TYPE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_PARAM_OPERATION_PTR", SQL_ATTR_PARAM_OPERATION_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_SMALLINT, FALSE, TRUE }, { "SQL_ATTR_PARAM_STATUS_PTR", SQL_ATTR_PARAM_STATUS_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_SMALLINT, FALSE, TRUE }, { "SQL_ATTR_PARAMS_PROCESSED_PTR", SQL_ATTR_PARAMS_PROCESSED_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_SMALLINT, FALSE, TRUE }, { "SQL_ATTR_PARAMSET_SIZE", SQL_ATTR_PARAMSET_SIZE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_QUERY_TIMEOUT", SQL_ATTR_QUERY_TIMEOUT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_RETRIEVE_DATA", SQL_ATTR_RETRIEVE_DATA, { { "SQL_RD_ON", SQL_RD_ON, NULL, 0 }, { "SQL_RD_OFF", SQL_RD_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ROW_ARRAY_SIZE", SQL_ATTR_ROW_ARRAY_SIZE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ROW_BIND_OFFSET_PTR", SQL_ATTR_ROW_BIND_OFFSET_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, FALSE, TRUE }, { "SQL_ATTR_ROW_BIND_TYPE", SQL_ATTR_ROW_BIND_TYPE, { { "SQL_BIND_BY_COLUMN", SQL_BIND_BY_COLUMN, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ROW_NUMBER", SQL_ATTR_ROW_NUMBER, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ROW_OPERATION_PTR", SQL_ATTR_ROW_OPERATION_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_SMALLINT, FALSE, TRUE }, { "SQL_ATTR_ROW_STATUS_PTR", SQL_ATTR_ROW_STATUS_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_SMALLINT, FALSE, TRUE }, { "SQL_ATTR_ROWS_FETCHED_PTR", SQL_ATTR_ROWS_FETCHED_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_SIMULATE_CURSOR", SQL_ATTR_SIMULATE_CURSOR, { { "SQL_SC_NON_UNIQUE", SQL_SC_NON_UNIQUE, NULL, 0 }, { "SQL_SC_TRY_UNIQUE", SQL_SC_TRY_UNIQUE, NULL, 0 }, { "SQL_SC_UNIQUE", SQL_SC_UNIQUE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_USE_BOOKMARKS", SQL_ATTR_USE_BOOKMARKS, { { "SQL_UB_ON", SQL_UB_ON, NULL, 0 }, { "SQL_UB_OFF", SQL_UB_OFF, NULL, 0 }, { "SQL_UB_VARIABLE", SQL_UB_VARIABLE,NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options stmt_opt_options[] = { { "SQL_ASYNC_ENABLE", SQL_ASYNC_ENABLE, { { "SQL_ASYNC_ENABLE_OFF", SQL_ASYNC_ENABLE_OFF, NULL, 0 }, { "SQL_ASYNC_ENABLE_ON", SQL_ASYNC_ENABLE_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_BIND_TYPE", SQL_BIND_TYPE, { { "SQL_BIND_BY_COLUMN", SQL_BIND_BY_COLUMN, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_CONCURRENCY", SQL_CONCURRENCY, { { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, NULL, 0 }, { "SQL_CONCUR_LOCK", SQL_CONCUR_LOCK, NULL, 0 }, { "SQL_CONCUR_ROWVER", SQL_CONCUR_ROWVER, NULL, 0 }, { "SQL_CONCUR_VALUES", SQL_CONCUR_VALUES, NULL, 0 }, { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_CURSOR_TYPE", SQL_CURSOR_TYPE, { { "SQL_CURSOR_FORWARD_ONLY", SQL_CURSOR_FORWARD_ONLY, NULL, 0 }, { "SQL_CURSOR_STATIC", SQL_CURSOR_STATIC, NULL, 0 }, { "SQL_CURSOR_KEYSET_DRIVEN", SQL_CURSOR_KEYSET_DRIVEN, NULL, 0 }, { "SQL_CURSOR_DYNAMIC", SQL_CURSOR_DYNAMIC, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_KEYSET_SIZE", SQL_KEYSET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_LENGTH", SQL_MAX_LENGTH, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_ROWS", SQL_MAX_ROWS, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_NOSCAN", SQL_NOSCAN, { { "SQL_NOSCAN_OFF", SQL_NOSCAN_OFF, NULL, 0 }, { "SQL_NOSCAN_ON", SQL_NOSCAN_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_QUERY_TIMEOUT", SQL_QUERY_TIMEOUT, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_RETRIEVE_DATA", SQL_RETRIEVE_DATA, { { "SQL_RD_ON", SQL_RD_ON, NULL, 0 }, { "SQL_RD_OFF", SQL_RD_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ROWSET_SIZE", SQL_ROWSET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_SIMULATE_CURSOR", SQL_SIMULATE_CURSOR, { { "SQL_SC_NON_UNIQUE", SQL_SC_NON_UNIQUE, NULL, 0 }, { "SQL_SC_TRY_UNIQUE", SQL_SC_TRY_UNIQUE, NULL, 0 }, { "SQL_SC_UNIQUE", SQL_SC_UNIQUE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_USE_BOOKMARKS", SQL_USE_BOOKMARKS, { { "SQL_UB_ON", SQL_UB_ON, NULL, 0 }, { "SQL_UB_OFF", SQL_UB_OFF, NULL, 0 }, { "SQL_UB_VARIABLE", SQL_UB_VARIABLE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options conn_options[] = { { "SQL_ATTR_ACCESS_MODE", SQL_ATTR_ACCESS_MODE, { { "SQL_MODE_READ_WRITE", SQL_MODE_READ_WRITE, NULL, 0 }, { "SQL_MODE_READ_ONLY", SQL_MODE_READ_ONLY, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ASYNC_ENABLE", SQL_ATTR_ASYNC_ENABLE, { { "SQL_ASYNC_ENABLE_OFF", SQL_ASYNC_ENABLE_OFF, NULL, 0 }, { "SQL_ASYNC_ENABLE_ON", SQL_ASYNC_ENABLE_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_AUTO_IPD", SQL_ATTR_AUTO_IPD, { { "SQL_TRUE", SQL_TRUE, NULL, 0 }, { "SQL_FALSE", SQL_FALSE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_AUTOCOMMIT", SQL_ATTR_AUTOCOMMIT, { { "SQL_AUTOCOMMIT_ON", SQL_AUTOCOMMIT_ON, NULL, 0 }, { "SQL_AUTOCOMMIT_OFF", SQL_AUTOCOMMIT_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CONNECTION_TIMEOUT", SQL_ATTR_CONNECTION_TIMEOUT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CURRENT_CATALOG", SQL_ATTR_CURRENT_CATALOG, { { NULL, 0, NULL, 0 } }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_ATTR_LOGIN_TIMEOUT", SQL_ATTR_LOGIN_TIMEOUT, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_METADATA_ID", SQL_ATTR_METADATA_ID, { { "SQL_TRUE", SQL_TRUE, NULL, 0 }, { "SQL_FALSE", SQL_FALSE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_ODBC_CURSORS", SQL_ATTR_ODBC_CURSORS, { { "SQL_CUR_USE_IF_NEEDED", SQL_CUR_USE_IF_NEEDED, NULL, 0 }, { "SQL_CUR_USE_ODBC", SQL_CUR_USE_ODBC, NULL, 0 }, { "SQL_CUR_USE_DRIVER", SQL_CUR_USE_DRIVER, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_PACKET_SIZE", SQL_ATTR_PACKET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_QUIET_MODE", SQL_ATTR_QUIET_MODE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_TRACE", SQL_ATTR_TRACE, { { "SQL_OPT_TRACE_OFF", SQL_OPT_TRACE_OFF, NULL, 0 }, { "SQL_OPT_TRACE_ON", SQL_OPT_TRACE_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_TRACEFILE", SQL_ATTR_TRACEFILE, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_ATTR_TRANSLATE_LIB", SQL_ATTR_TRANSLATE_LIB, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_ATTR_TRANSLATE_OPTION", SQL_ATTR_TRANSLATE_OPTION, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_TXN_ISOLATION", SQL_ATTR_TXN_ISOLATION, { { "SQL_TXN_READ_UNCOMMITTED", SQL_TXN_READ_UNCOMMITTED, NULL, 0 }, { "SQL_TXN_READ_COMMITTED", SQL_TXN_READ_COMMITTED, NULL, 0 }, { "SQL_TXN_REPEATABLE_READ", SQL_TXN_REPEATABLE_READ, NULL, 0 }, { "SQL_TXN_SERIALIZABLE", SQL_TXN_SERIALIZABLE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options conn_opt_options[] = { { "conn: SQL_ACCESS_MODE", SQL_ACCESS_MODE, { { "SQL_MODE_READ_ONLY", SQL_MODE_READ_ONLY, NULL, 0 }, { "SQL_MODE_READ_WRITE", SQL_MODE_READ_WRITE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_AUTOCOMMIT", SQL_AUTOCOMMIT, { { "SQL_AUTOCOMMIT_ON", SQL_AUTOCOMMIT_ON, NULL, 0 }, { "SQL_AUTOCOMMIT_OFF", SQL_AUTOCOMMIT_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_CURRENT_QUALIFIER", SQL_CURRENT_QUALIFIER, { { NULL, 0, NULL, 0 } }, "2.0", SQL_CHAR, 0, 0 }, { "conn: SQL_LOGIN_TIMEOUT", SQL_LOGIN_TIMEOUT, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_ODBC_CURSORS", SQL_ODBC_CURSORS, { { "SQL_CUR_USE_IF_NEEDED", SQL_CUR_USE_IF_NEEDED, NULL, 0 }, { "SQL_CUR_USE_ODBC", SQL_CUR_USE_ODBC, NULL, 0 }, { "SQL_CUR_USE_DRIVER", SQL_CUR_USE_DRIVER, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_OPT_TRACE", SQL_OPT_TRACE, { { "SQL_OPT_TRACE_ON", SQL_OPT_TRACE_ON, NULL, 0 }, { "SQL_OPT_TRACE_OFF", SQL_OPT_TRACE_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_OPT_TRACEFILE", SQL_OPT_TRACEFILE, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "conn: SQL_PACKET_SIZE", SQL_PACKET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_QUIET_MODE", SQL_QUIET_MODE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_TRANSLATE_DLL", SQL_TRANSLATE_DLL, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "conn: SQL_TRANSLATE_OPTION", SQL_TRANSLATE_OPTION, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "conn: SQL_TXN_ISOLATION", SQL_TXN_ISOLATION, { { "SQL_TXN_READ_UNCOMMITED", SQL_TXN_READ_UNCOMMITTED, NULL, 0 }, { "SQL_TXN_READ_COMMITED", SQL_TXN_READ_COMMITTED, NULL, 0 }, { "SQL_TXN_REPEATABLE_READ", SQL_TXN_REPEATABLE_READ, NULL, 0 }, { "SQL_TXN_SERIALIZABLE", SQL_TXN_SERIALIZABLE, NULL, 0 }, { "SQL_TXN_VERSIONING", 0x00000010L, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_ASYNC_ENABLE", SQL_ASYNC_ENABLE, { { "SQL_ASYNC_ENABLE_OFF", SQL_ASYNC_ENABLE_OFF, NULL, 0 }, { "SQL_ASYNC_ENABLE_ON", SQL_ASYNC_ENABLE_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_BIND_TYPE", SQL_BIND_TYPE, { { "SQL_BIND_BY_COLUMN", SQL_BIND_BY_COLUMN, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_CONCURRENCY", SQL_CONCURRENCY, { { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, NULL, 0 }, { "SQL_CONCUR_LOCK", SQL_CONCUR_LOCK, NULL, 0 }, { "SQL_CONCUR_ROWVER", SQL_CONCUR_ROWVER, NULL, 0 }, { "SQL_CONCUR_VALUES", SQL_CONCUR_VALUES, NULL, 0 }, { "SQL_CONCUR_READ_ONLY", SQL_CONCUR_READ_ONLY, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_CURSOR_TYPE", SQL_CURSOR_TYPE, { { "SQL_CURSOR_FORWARD_ONLY", SQL_CURSOR_FORWARD_ONLY, NULL, 0 }, { "SQL_CURSOR_STATIC", SQL_CURSOR_STATIC, NULL, 0 }, { "SQL_CURSOR_KEYSET_DRIVEN", SQL_CURSOR_KEYSET_DRIVEN, NULL, 0 }, { "SQL_CURSOR_DYNAMIC", SQL_CURSOR_DYNAMIC, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_KEYSET_SIZE", SQL_KEYSET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_MAX_LENGTH", SQL_MAX_LENGTH, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_MAX_ROWS", SQL_MAX_ROWS, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_NOSCAN", SQL_NOSCAN, { { "SQL_NOSCAN_OFF", SQL_NOSCAN_OFF, NULL, 0 }, { "SQL_NOSCAN_ON", SQL_NOSCAN_ON, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_QUERY_TIMEOUT", SQL_QUERY_TIMEOUT, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_RETRIEVE_DATA", SQL_RETRIEVE_DATA, { { "SQL_RD_ON", SQL_RD_ON, NULL, 0 }, { "SQL_RD_OFF", SQL_RD_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_ROWSET_SIZE", SQL_ROWSET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_SIMULATE_CURSOR", SQL_SIMULATE_CURSOR, { { "SQL_SC_NON_UNIQUE", SQL_SC_NON_UNIQUE, NULL, 0 }, { "SQL_SC_TRY_UNIQUE", SQL_SC_TRY_UNIQUE, NULL, 0 }, { "SQL_SC_UNIQUE", SQL_SC_UNIQUE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "stmt: SQL_USE_BOOKMARKS", SQL_USE_BOOKMARKS, { { "SQL_UB_ON", SQL_UB_ON, NULL, 0 }, { "SQL_UB_OFF", SQL_UB_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options conn_gopt_options[] = { { "SQL_ACCESS_MODE", SQL_ACCESS_MODE, { { "SQL_MODE_READ_ONLY", SQL_MODE_READ_ONLY, NULL, 0 }, { "SQL_MODE_READ_WRITE", SQL_MODE_READ_WRITE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_AUTOCOMMIT", SQL_AUTOCOMMIT, { { "SQL_AUTOCOMMIT_ON", SQL_AUTOCOMMIT_ON, NULL, 0 }, { "SQL_AUTOCOMMIT_OFF", SQL_AUTOCOMMIT_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_CURRENT_QUALIFIER", SQL_CURRENT_QUALIFIER, { { NULL, 0, NULL, 0 } }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_LOGIN_TIMEOUT", SQL_LOGIN_TIMEOUT, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_ODBC_CURSORS", SQL_ODBC_CURSORS, { { "SQL_CUR_USE_IF_NEEDED", SQL_CUR_USE_IF_NEEDED, NULL, 0 }, { "SQL_CUR_USE_ODBC", SQL_CUR_USE_ODBC, NULL, 0 }, { "SQL_CUR_USE_DRIVER", SQL_CUR_USE_DRIVER, NULL, 0 }, { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_OPT_TRACE", SQL_OPT_TRACE, { { "SQL_OPT_TRACE_ON", SQL_OPT_TRACE_ON, NULL, 0 }, { "SQL_OPT_TRACE_OFF", SQL_OPT_TRACE_OFF, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_OPT_TRACEFILE", SQL_OPT_TRACEFILE, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_PACKET_SIZE", SQL_PACKET_SIZE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_QUIET_MODE", SQL_QUIET_MODE, { { NULL, 0, NULL, 0 } }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_TRANSLATE_DLL", SQL_TRANSLATE_DLL, { { NULL, 0, NULL, 0 } }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_TRANSLATE_OPTION", SQL_TRANSLATE_OPTION, { { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_TXN_ISOLATION", SQL_TXN_ISOLATION, { { "SQL_TXN_READ_UNCOMMITED", SQL_TXN_READ_UNCOMMITTED, NULL, 0 }, { "SQL_TXN_READ_COMMITED", SQL_TXN_READ_COMMITTED, NULL, 0 }, { "SQL_TXN_REPEATABLE_READ", SQL_TXN_REPEATABLE_READ, NULL, 0 }, { "SQL_TXN_SERIALIZABLE", SQL_TXN_SERIALIZABLE, NULL, 0 }, { "SQL_TXN_VERSIONING", 0x00000010L, NULL, 0 }, { NULL, 0, NULL, 0 } }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options env_options[] = { { "SQL_ATTR_ODBC_VERSION", SQL_ATTR_ODBC_VERSION, { { "SQL_OV_ODBC2", SQL_OV_ODBC2, NULL, 0 }, { "SQL_OV_ODBC3", SQL_OV_ODBC3, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CP_MATCH", SQL_ATTR_CP_MATCH, { { "SQL_CP_STRICT_MATCH", SQL_CP_STRICT_MATCH, NULL, 0 }, { "SQL_CP_RELAXED_MATCH", SQL_CP_RELAXED_MATCH, NULL, 0 }, { "SQL_CP_MATCH_DEFAULT", SQL_CP_MATCH_DEFAULT, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_CONNECTION_POOLING", SQL_ATTR_CONNECTION_POOLING, { { "SQL_CP_OFF", SQL_OV_ODBC2, NULL, 0 }, { "SQL_CP_ONE_PER_DRIVER", SQL_CP_ONE_PER_DRIVER, NULL, 0 }, { "SQL_CP_ONE_PER_HENV", SQL_CP_ONE_PER_HENV, NULL, 0 }, { "SQL_CP_DEFAULT", SQL_CP_DEFAULT, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ATTR_OUTPUT_NTS", SQL_ATTR_OUTPUT_NTS, { { "SQL_TRUE", SQL_TRUE, NULL, 0 }, { "SQL_FALSE", SQL_FALSE, NULL, 0 }, { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; void dSetEnvAttr::Activated( int index ) { value->clear(); pOdbcTest->fill_list_box( env_options[ index ].values, value ); } void dSetEnvAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HENV; SQLINTEGER attribute; SQLPOINTER vptr; SQLINTEGER string_length; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetEnvAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Environment Handle: %p", in_handle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); attribute = env_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", env_options[ types->currentIndex() ].text, env_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); vptr = (SQLPOINTER) env_options[ types->currentIndex() ].values[ value->currentIndex() ].value; txt.sprintf( " Value: %s=%d", env_options[ types->currentIndex() ].values[ value->currentIndex() ].text, env_options[ types->currentIndex() ].values[ value->currentIndex() ].value ); pOdbcTest->out_win->append( txt ); string_length = strlen_options[ stringlen->currentIndex() ].value; txt.sprintf( " String Length: %s=%d", strlen_options[ stringlen->currentIndex() ].text, strlen_options[ stringlen->currentIndex() ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetEnvAttr( in_handle, attribute, vptr, string_length ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSetEnvAttr::dSetEnvAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Environment Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( env_options, types ); value = new QComboBox( this ); // "Value" value->setGeometry( 170, 110, 300, 20 ); pOdbcTest->fill_list_box( env_options[ 0 ].values, value ); stringlen = new QComboBox( this ); // "String Length" stringlen->setGeometry( 170, 140, 300, 20 ); pOdbcTest->fill_list_box( strlen_options, stringlen ); l_handle = new QLabel( "Environment Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); l_value = new QLabel( "Value:", this ); l_value->setGeometry( 10, 110, 130, 20 ); l_slen = new QLabel( "String Length:", this ); l_slen->setGeometry( 10, 140, 130, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( types, SIGNAL(activated(int)), this, SLOT( Activated(int))); } dSetEnvAttr::~dSetEnvAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete value; delete stringlen; delete l_handle; delete l_types; delete l_value; delete l_slen; } void dGetEnvAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HENV; SQLINTEGER attribute; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLINTEGER b_len, strlen_or_ind; SQLINTEGER *strlen_ptr; char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetEnvAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Environment Handle: %p", in_handle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); attribute = env_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", env_options[ types->currentIndex() ].text, env_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( target_valid->isChecked() ) { buf = NULL; } else if ( b_len < 300 ) { buf = new char[ 300 ]; } else { buf = new char[ b_len ]; } if ( buf ) { txt.sprintf( " Value Ptr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Value Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); strlen_or_ind = -999999; if ( strlen_valid->isChecked() ) { strlen_ptr = NULL; } else { strlen_ptr = &strlen_or_ind; } if ( strlen_ptr ) { txt.sprintf( " Strlen Ptr: %p", strlen_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Strlen Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetEnvAttr( in_handle, attribute, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( strlen_ptr ) { if ( strlen_or_ind == -999999 ) { txt.sprintf( " *Strlen Ptr: " ); } else { txt.sprintf( " *Strlen Ptr: %d", strlen_or_ind ); } pOdbcTest->out_win->append( txt ); } if ( SQL_SUCCEEDED( ret )) { int index = types->currentIndex(); switch ( env_options[ index ].data_type ) { case SQL_INTEGER: SQLUINTEGER ival; memcpy( &ival, buf, sizeof( ival )); txt.sprintf( " *ValuePtr = %d (0x%08X)", ival, ival ); pOdbcTest->out_win->append( txt ); if ( env_options[ index ].values[ 0 ].text ) { if ( env_options[ index ].is_bitmap ) { int i; for ( i = 0; env_options[ index ].values[ i ].text; i ++ ) { if ( env_options[ index ].values[ i ].value & ival ) { txt.sprintf( " %s", env_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; env_options[ index ].values[ i ].text; i ++ ) { if ( (SQLUINTEGER)(env_options[ index ].values[ i ].value) == ival ) { txt.sprintf( " %s", env_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; case SQL_SMALLINT: SQLSMALLINT sval; memcpy( &sval, buf, sizeof( sval )); txt.sprintf( " *ValuePtr = %d (0x%04X)", sval, sval ); pOdbcTest->out_win->append( txt ); if ( env_options[ index ].values[ 0 ].text ) { if ( env_options[ index ].is_bitmap ) { int i; for ( i = 0; env_options[ index ].values[ i ].text; i ++ ) { if ( env_options[ index ].values[ i ].value & sval ) { txt.sprintf( " %s", env_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; env_options[ index ].values[ i ].text; i ++ ) { if ( env_options[ index ].values[ i ].value == sval ) { txt.sprintf( " %s", env_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetEnvAttr::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "ValuePtr: SQL_NULL_POINTER" ); else target_valid->setText( "ValuePtr: VALID" ); } void dGetEnvAttr::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLen_Ptr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLen_Ptr: VALID" ); } dGetEnvAttr::dGetEnvAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Environment Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( env_options, types ); l_handle = new QLabel( "Environment Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); target_valid = new QCheckBox( "ValuePtr: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLen_Ptr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); // "Buffer Len" buffer_len->setGeometry( 400, 110, 70, 20 ); buffer_len->setMaxLength( 7 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 110, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dGetEnvAttr::~dGetEnvAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; delete target_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dSetStmtAttr::Activated( int index ) { value->clear(); if ( !stmt_options[ index ].values[ 0 ].text ) { switch ( stmt_options[ index ].attr ) { case SQL_ATTR_FETCH_BOOKMARK_PTR: case SQL_ATTR_PARAM_BIND_OFFSET_PTR: case SQL_ATTR_PARAM_OPERATION_PTR: case SQL_ATTR_PARAM_STATUS_PTR: case SQL_ATTR_PARAMS_PROCESSED_PTR: case SQL_ATTR_ROW_BIND_OFFSET_PTR: case SQL_ATTR_ROW_OPERATION_PTR: case SQL_ATTR_ROW_STATUS_PTR: case SQL_ATTR_ROWS_FETCHED_PTR: value->insertItem( 0, "" ); break; default: value->insertItem( 0, "0" ); break; } } else { pOdbcTest->fill_list_box( stmt_options[ index ].values, value ); } } void dSetStmtAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HSTMT; SQLINTEGER attribute; SQLPOINTER vptr; SQLUINTEGER ival = 0; const char *tptr; attr_value *ptr; SQLINTEGER string_length; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); QString qtptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetStmtAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statment Handle: %p", in_handle ); else txt.sprintf( " Statment Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); attribute = stmt_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", stmt_options[ types->currentIndex() ].text, stmt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); qtptr = value->currentText(); tptr = qtptr.toAscii().constData(); /* * try and match the text */ for ( ptr = stmt_options[ types->currentIndex() ].values; ptr->text; ptr ++ ) { if ( strncmp( ptr->text, tptr, strlen( ptr->text )) == 0 ) { break; } } if ( !ptr->text ) { if ( attribute == SQL_ATTR_ROW_ARRAY_SIZE || attribute == SQL_ATTR_PARAMSET_SIZE ) { ival = atoi( tptr ); } vptr = (SQLPOINTER) atoi( tptr ); txt.sprintf( " Value: %d", atoi( tptr )); } else { if ( attribute == SQL_ATTR_ROW_ARRAY_SIZE || attribute == SQL_ATTR_PARAMSET_SIZE ) { ival = ptr->value; } vptr = (SQLPOINTER) ptr->value; txt.sprintf( " Value: %s=%d", ptr->text, ptr->value ); } if ( strcmp( tptr, "" ) == 0 ) { switch ( stmt_options[ types->currentIndex() ].attr ) { case SQL_ATTR_FETCH_BOOKMARK_PTR: vptr = hand->bookmark_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_PARAM_BIND_OFFSET_PTR: vptr = hand->param_bind_offset_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_PARAM_OPERATION_PTR: vptr = hand->param_opt_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_PARAM_STATUS_PTR: vptr = hand->param_status_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_PARAMS_PROCESSED_PTR: vptr = hand->params_processed_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_ROW_BIND_OFFSET_PTR: vptr = hand->row_bind_offset_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_ROW_OPERATION_PTR: vptr = hand->row_operation_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_ROW_STATUS_PTR: vptr = hand->row_status_ptr; txt.sprintf( " Value: %p", vptr ); break; case SQL_ATTR_ROWS_FETCHED_PTR: vptr = hand->rows_fetched_ptr; txt.sprintf( " Value: %p", vptr ); break; } } pOdbcTest->out_win->append( txt ); string_length = strlen_options[ stringlen->currentIndex() ].value; txt.sprintf( " String Length: %s=%d", strlen_options[ stringlen->currentIndex() ].text, strlen_options[ stringlen->currentIndex() ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetStmtAttr( in_handle, attribute, vptr, string_length ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); /* * save the row or param array size */ if ( SQL_SUCCEEDED( ret )) { if ( attribute == SQL_ATTR_ROW_ARRAY_SIZE ) { hand->row_array_size = ival; } else if ( attribute == SQL_ATTR_PARAMSET_SIZE ) { hand->param_array_size = ival; } } } dSetStmtAttr::dSetStmtAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Statement Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( stmt_options, types ); value = new QComboBox( this ); // "Value" value->setGeometry( 170, 110, 300, 20 ); pOdbcTest->fill_list_box( stmt_options[ 0 ].values, value ); stringlen = new QComboBox( this ); // "String Length" stringlen->setGeometry( 170, 140, 300, 20 ); pOdbcTest->fill_list_box( strlen_options, stringlen ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); l_value = new QLabel( "Value:", this ); l_value->setGeometry( 10, 110, 130, 20 ); l_slen = new QLabel( "String Length:", this ); l_slen->setGeometry( 10, 140, 130, 20 ); Activated( 0 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( types, SIGNAL(activated(int)), this, SLOT( Activated(int))); } dSetStmtAttr::~dSetStmtAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete value; delete stringlen; delete l_handle; delete l_types; delete l_value; delete l_slen; } void dSetStmtOption::Activated( int index ) { value->clear(); if ( !stmt_opt_options[ index ].values[ 0 ].text ) { value->insertItem( 0, "0" ); } else { pOdbcTest->fill_list_box( stmt_opt_options[ index ].values, value ); } } void dSetStmtOption::Ok() { SQLHANDLE in_handle = SQL_NULL_HSTMT; SQLINTEGER attribute; SQLINTEGER ival = 0; SQLULEN vptr; const char *tptr; attr_value *ptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); QString qtptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetStmtOption():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " hstmt: %p", in_handle ); else txt.sprintf( " hstmt: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); attribute = stmt_opt_options[ types->currentIndex() ].attr; txt.sprintf( " fOption: %s=%d", stmt_opt_options[ types->currentIndex() ].text, stmt_opt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); qtptr = value->currentText(); tptr = qtptr.toAscii().constData(); /* * try and match the text */ for ( ptr = stmt_opt_options[ types->currentIndex() ].values; ptr->text; ptr ++ ) { if ( strncmp( ptr->text, tptr, strlen( ptr->text )) == 0 ) { break; } } if ( !ptr->text ) { vptr = (SQLULEN) atoi( tptr ); txt.sprintf( " vParam: %d", atoi( tptr )); if ( attribute == SQL_ROWSET_SIZE ) { ival = atoi( tptr ); } } else { vptr = (SQLULEN) ptr->value; txt.sprintf( " vParam: %s=%d", ptr->text, ptr->value ); if ( attribute == SQL_ROWSET_SIZE ) { ival = ptr->value; } } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetStmtOption( in_handle, attribute, vptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); /* * save the row or param array size */ if ( SQL_SUCCEEDED( ret )) { if ( attribute == SQL_ROWSET_SIZE ) { hand->row_array_size = ival; } } } dSetStmtOption::dSetStmtOption( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Statement Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( stmt_opt_options, types ); value = new QComboBox( this ); // "Value" value->setGeometry( 170, 110, 300, 20 ); pOdbcTest->fill_list_box( stmt_opt_options[ 0 ].values, value ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "fOption:", this ); l_types->setGeometry( 10, 80, 130, 20 ); l_value = new QLabel( "vParam:", this ); l_value->setGeometry( 10, 110, 130, 20 ); Activated( 0 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( types, SIGNAL(activated(int)), this, SLOT( Activated(int))); } dSetStmtOption::~dSetStmtOption() { delete ok; delete cancel; delete help; delete types; delete handles; delete value; delete l_handle; delete l_types; delete l_value; } void dGetStmtAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HENV; SQLINTEGER attribute; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); SQLINTEGER b_len, strlen_or_ind; SQLINTEGER *strlen_ptr; char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetStmtAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Statement Handle: %p", in_handle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); attribute = stmt_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", stmt_options[ types->currentIndex() ].text, stmt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( target_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = new char[ 300 ]; } else { buf = new char[ b_len ]; } if ( buf ) { txt.sprintf( " Value Ptr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Value Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); strlen_or_ind = -999999; if ( strlen_valid->isChecked()) { strlen_ptr = NULL; } else { strlen_ptr = &strlen_or_ind; } if ( strlen_ptr ) { txt.sprintf( " Strlen Ptr: %p", strlen_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Strlen Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetStmtAttr( in_handle, attribute, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( strlen_ptr ) { if ( strlen_or_ind == -999999 ) { txt.sprintf( " *Strlen Ptr: " ); } else { txt.sprintf( " *Strlen Ptr: %d", strlen_or_ind ); } pOdbcTest->out_win->append( txt ); } if ( SQL_SUCCEEDED( ret )) { int index = types->currentIndex(); if ( stmt_options[ index ].is_pointer ) { void *ival; memcpy( &ival, buf, sizeof( ival )); txt.sprintf( " ValuePtr = 0x%08X", ival ); pOdbcTest->out_win->append( txt ); } else { switch ( stmt_options[ index ].data_type ) { case SQL_INTEGER: SQLUINTEGER ival; memcpy( &ival, buf, sizeof( ival )); txt.sprintf( " *ValuePtr = %d (0x%08X)", ival, ival ); pOdbcTest->out_win->append( txt ); if ( stmt_options[ index ].values[ 0 ].text ) { if ( stmt_options[ index ].is_bitmap ) { int i; for ( i = 0; stmt_options[ index ].values[ i ].text; i ++ ) { if ( stmt_options[ index ].values[ i ].value & ival ) { txt.sprintf( " %s", stmt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; stmt_options[ index ].values[ i ].text; i ++ ) { if ( (SQLUINTEGER)(stmt_options[ index ].values[ i ].value) == ival ) { txt.sprintf( " %s", stmt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; case SQL_SMALLINT: SQLSMALLINT sval; memcpy( &sval, buf, sizeof( sval )); txt.sprintf( " *ValuePtr = %d (0x%04X)", sval, sval ); pOdbcTest->out_win->append( txt ); if ( stmt_options[ index ].values[ 0 ].text ) { if ( stmt_options[ index ].is_bitmap ) { int i; for ( i = 0; stmt_options[ index ].values[ i ].text; i ++ ) { if ( stmt_options[ index ].values[ i ].value & sval ) { txt.sprintf( " %s", stmt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; stmt_options[ index ].values[ i ].text; i ++ ) { if ( stmt_options[ index ].values[ i ].value == sval ) { txt.sprintf( " %s", stmt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; } } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetStmtAttr::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "ValuePtr: SQL_NULL_POINTER" ); else target_valid->setText( "ValuePtr: VALID" ); } void dGetStmtAttr::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLen_Ptr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLen_Ptr: VALID" ); } dGetStmtAttr::dGetStmtAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Statement Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( stmt_options, types ); l_handle = new QLabel( "Statement Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); target_valid = new QCheckBox( "ValuePtr: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLen_Ptr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); // "Buffer Len" buffer_len->setGeometry( 400, 110, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 110, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dGetStmtAttr::~dGetStmtAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; delete target_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dGetStmtOption::Ok() { SQLHANDLE in_handle = SQL_NULL_HENV; SQLINTEGER attribute, value; SQLPOINTER vptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, handles ); int index = types->currentIndex(); char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetStmtOption():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " hstmt: %p", in_handle ); else txt.sprintf( " hstmt: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); attribute = stmt_opt_options[ types->currentIndex() ].attr; txt.sprintf( " fOption: %s=%d", stmt_opt_options[ types->currentIndex() ].text, stmt_opt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); if ( target_valid->isChecked()) { buf = NULL; vptr = NULL; } else { if ( stmt_opt_options[ index ].data_type == SQL_INTEGER ) { vptr = &value; } else { buf = new char[ 300 ]; vptr = buf; } } if ( vptr ) { txt.sprintf( " vParam: %p", vptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " vParam: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetStmtOption( in_handle, attribute, vptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret )) { if ( vptr ) { switch ( stmt_opt_options[ index ].data_type ) { case SQL_INTEGER: { int i; txt.sprintf( " *vptr = 0x%08X", value ); pOdbcTest->out_win->append( txt ); for ( i = 0; stmt_opt_options[ index ].values[ i ].text; i ++ ) { if ( stmt_opt_options[ index ].values[ i ].value == value ) { txt.sprintf( " %s", stmt_opt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } break; } default: txt.sprintf( " *vptr = %s", buf ); break; } } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetStmtOption::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "vParam: SQL_NULL_POINTER" ); else target_valid->setText( "vParam: VALID" ); } dGetStmtOption::dGetStmtOption( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "hstmt" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); types = new QComboBox( this ); // "fOption" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( stmt_opt_options, types ); l_handle = new QLabel( "hstmt:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "fOption:", this ); l_types->setGeometry( 10, 80, 130, 20 ); target_valid = new QCheckBox( "vParam: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); } dGetStmtOption::~dGetStmtOption() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; delete target_valid; } void dSetConnAttr::Activated( int index ) { value->clear(); if ( !conn_options[ index ].values[ 0 ].text ) { if ( conn_options[ index ].data_type == SQL_CHAR ) { value->insertItem( 0, "" ); value->insertItem( 1, "" ); } else { value->insertItem( 0, "0" ); } } else { pOdbcTest->fill_list_box( conn_options[ index ].values, value ); } } void dSetConnAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HDBC; SQLINTEGER attribute; SQLPOINTER vptr; SQLINTEGER string_length; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); attr_value *ptr; const char *tptr; QString qtptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetConnectAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); attribute = conn_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", conn_options[ types->currentIndex() ].text, conn_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); qtptr = value->currentText(); tptr = qtptr.toAscii().constData(); /* * try and match the text */ for ( ptr = conn_options[ types->currentIndex() ].values; ptr->text; ptr ++ ) { if ( strncmp( ptr->text, tptr, strlen( ptr->text )) == 0 ) { break; } } if ( !ptr->text ) { if ( conn_options[ types->currentIndex() ].data_type == SQL_CHAR ) { vptr = (SQLPOINTER) tptr; if ( strncmp( "", tptr, 14 ) == 0 ) { vptr = NULL; txt.sprintf( " Value: SQL_NULL_POINTER" ); } else { vptr = (SQLPOINTER) tptr; txt.sprintf( " Value: %s", tptr ); } } else { vptr = (SQLPOINTER) atoi( tptr ); txt.sprintf( " Value: %d", atoi( tptr )); } } else { vptr = (SQLPOINTER) ptr->value; txt.sprintf( " Value: %s=%d", ptr->text, ptr->value ); } pOdbcTest->out_win->append( txt ); string_length = strlen_options[ stringlen->currentIndex() ].value; txt.sprintf( " String Length: %s=%d", strlen_options[ stringlen->currentIndex() ].text, strlen_options[ stringlen->currentIndex() ].value ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetConnectAttr( in_handle, attribute, vptr, string_length ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSetConnAttr::dSetConnAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Connection Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( conn_options, types ); value = new QComboBox( this ); // "Value" value->setGeometry( 170, 110, 300, 20 ); pOdbcTest->fill_list_box( conn_options[ 0 ].values, value ); stringlen = new QComboBox( this ); // "String Length" stringlen->setGeometry( 170, 140, 300, 20 ); pOdbcTest->fill_list_box( strlen_options, stringlen ); l_handle = new QLabel( "Connection Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); l_value = new QLabel( "Value:", this ); l_value->setGeometry( 10, 110, 130, 20 ); l_slen = new QLabel( "String Length:", this ); l_slen->setGeometry( 10, 140, 130, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( types, SIGNAL(activated(int)), this, SLOT( Activated(int))); } dSetConnAttr::~dSetConnAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete value; delete stringlen; delete l_handle; delete l_types; delete l_value; delete l_slen; } void dGetConnAttr::Ok() { SQLHANDLE in_handle = SQL_NULL_HDBC; SQLINTEGER attribute; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLINTEGER b_len, strlen_or_ind; SQLINTEGER *strlen_ptr; char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetConnectAttr():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); attribute = conn_options[ types->currentIndex() ].attr; txt.sprintf( " Attribute: %s=%d", conn_options[ types->currentIndex() ].text, conn_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); b_len = atoi( buffer_len->text().toAscii().constData() ); if ( b_len < 1 ) { b_len = 0; } if ( target_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = new char[ 300 ]; } else { buf = new char[ b_len ]; } if ( buf ) { txt.sprintf( " Value Ptr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Value Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); strlen_or_ind = -999999; if ( strlen_valid->isChecked()) { strlen_ptr = NULL; } else { strlen_ptr = &strlen_or_ind; } if ( strlen_ptr ) { txt.sprintf( " Strlen Ptr: %p", strlen_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Strlen Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetConnectAttr( in_handle, attribute, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( strlen_ptr ) { if ( strlen_or_ind == -999999 ) { txt.sprintf( " *Strlen Ptr: " ); } else { txt.sprintf( " *Strlen Ptr: %d", strlen_or_ind ); } pOdbcTest->out_win->append( txt ); } if ( SQL_SUCCEEDED( ret )) { int index = types->currentIndex(); switch ( conn_options[ index ].data_type ) { case SQL_CHAR: txt.sprintf( " *InfoValuePtr = \"%s\"", buf ); pOdbcTest->out_win->append( txt ); break; case SQL_INTEGER: SQLUINTEGER ival; memcpy( &ival, buf, sizeof( ival )); txt.sprintf( " *ValuePtr = %d (0x%08X)", ival, ival ); pOdbcTest->out_win->append( txt ); if ( conn_options[ index ].values[ 0 ].text ) { if ( conn_options[ index ].is_bitmap ) { int i; for ( i = 0; conn_options[ index ].values[ i ].text; i ++ ) { if ( conn_options[ index ].values[ i ].value & ival ) { txt.sprintf( " %s", conn_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; conn_options[ index ].values[ i ].text; i ++ ) { if ( (SQLUINTEGER)(conn_options[ index ].values[ i ].value) == ival ) { txt.sprintf( " %s", conn_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; case SQL_SMALLINT: SQLSMALLINT sval; memcpy( &sval, buf, sizeof( sval )); txt.sprintf( " *ValuePtr = %d (0x%04X)", sval, sval ); pOdbcTest->out_win->append( txt ); if ( conn_options[ index ].values[ 0 ].text ) { if ( conn_options[ index ].is_bitmap ) { int i; for ( i = 0; conn_options[ index ].values[ i ].text; i ++ ) { if ( conn_options[ index ].values[ i ].value & sval ) { txt.sprintf( " %s", conn_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; conn_options[ index ].values[ i ].text; i ++ ) { if ( conn_options[ index ].values[ i ].value == sval ) { txt.sprintf( " %s", conn_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetConnAttr::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "ValuePtr: SQL_NULL_POINTER" ); else target_valid->setText( "ValuePtr: VALID" ); } void dGetConnAttr::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLen_Ptr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLen_Ptr: VALID" ); } dGetConnAttr::dGetConnAttr( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Connection Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( conn_options, types ); l_handle = new QLabel( "Connection Handle:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "Attribute:", this ); l_types->setGeometry( 10, 80, 130, 20 ); target_valid = new QCheckBox( "ValuePtr: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLen_Ptr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); // "Buffer Len" buffer_len->setGeometry( 400, 110, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 110, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dGetConnAttr::~dGetConnAttr() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; delete target_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dSetConnectOption::Activated( int index ) { value->clear(); if ( !conn_opt_options[ index ].values[ 0 ].text ) { if ( conn_opt_options[ index ].data_type == SQL_CHAR ) { value->insertItem( 0, "" ); value->insertItem( 1, "" ); } else { value->insertItem( 0, "0" ); } } else { pOdbcTest->fill_list_box( conn_opt_options[ index ].values, value ); } } void dSetConnectOption::Ok() { SQLHANDLE in_handle = SQL_NULL_HDBC; SQLINTEGER attribute; SQLULEN vptr = 0; const char *tptr; attr_value *ptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); QString qtptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLSetConnectOption():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " hdbc: %p", in_handle ); else txt.sprintf( " hdbc: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); attribute = conn_opt_options[ types->currentIndex() ].attr; txt.sprintf( " fOption: %s=%d", conn_opt_options[ types->currentIndex() ].text, conn_opt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); qtptr = value->currentText(); tptr = qtptr.toAscii().constData(); /* * try and match the text */ for ( ptr = conn_opt_options[ types->currentIndex() ].values; ptr->text; ptr ++ ) { if ( strncmp( ptr->text, tptr, strlen( ptr->text )) == 0 ) { break; } } if ( !ptr->text ) { // This can't be done on 64 bit with old definitions... if ( conn_opt_options[ types->currentIndex() ].data_type == SQL_CHAR ) { #if (SIZEOF_LONG_INT == 8) #ifndef DO_YOU_KNOW_WHAT_YOUR_ARE_DOING fprintf( stderr, "unable to do this on this processor with 32 bit build options...\n" ); #else vptr = (SQLULEN) tptr; #endif #else vptr = (SQLULEN) tptr; #endif if ( strncmp( "", tptr, 14 ) == 0 ) { vptr = 0; txt.sprintf( " vParam: SQL_NULL_POINTER" ); } else { #if (SIZEOF_LONG_INT == 8) #ifndef DO_YOU_KNOW_WHAT_YOUR_ARE_DOING fprintf( stderr, "unable to do this on this processor with 32 bit build options...\n" ); #else vptr = (SQLULEN) tptr; #endif #else vptr = (SQLULEN) tptr; #endif txt.sprintf( " vParam: %s", tptr ); } } else { vptr = (SQLULEN) atoi( tptr ); txt.sprintf( " vParam: %d", atoi( tptr )); } } else { vptr = (SQLULEN) ptr->value; txt.sprintf( " vParam: %s=%d", ptr->text, ptr->value ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLSetConnectOption( in_handle, attribute, vptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dSetConnectOption::dSetConnectOption( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "Statement Handle" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, handles ); types = new QComboBox( this ); // "Attribute" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( conn_opt_options, types ); value = new QComboBox( this ); // "Value" value->setGeometry( 170, 110, 300, 20 ); pOdbcTest->fill_list_box( conn_opt_options[ 0 ].values, value ); l_handle = new QLabel( "hdbc:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "fOption:", this ); l_types->setGeometry( 10, 80, 130, 20 ); l_value = new QLabel( "vParam:", this ); l_value->setGeometry( 10, 110, 130, 20 ); Activated( 0 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( types, SIGNAL(activated(int)), this, SLOT( Activated(int))); } dSetConnectOption::~dSetConnectOption() { delete ok; delete cancel; delete help; delete types; delete handles; delete value; delete l_handle; delete l_types; delete l_value; } void dGetConnectOption::Ok() { SQLHANDLE in_handle = SQL_NULL_HENV; SQLINTEGER attribute, value; SQLPOINTER vptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); int index = types->currentIndex(); char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetConnectOption():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " hdbc: %p", in_handle ); else txt.sprintf( " hdbc: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); attribute = conn_gopt_options[ types->currentIndex() ].attr; txt.sprintf( " fOption: %s=%d", conn_gopt_options[ types->currentIndex() ].text, conn_gopt_options[ types->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); if ( target_valid->isChecked()) { buf = NULL; vptr = NULL; } else { if ( conn_gopt_options[ index ].data_type == SQL_INTEGER ) { vptr = &value; } else { buf = new char[ 300 ]; vptr = buf; } } if ( vptr ) { txt.sprintf( " vParam: %p", vptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " vParam: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetConnectOption( in_handle, attribute, vptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( SQL_SUCCEEDED( ret )) { if ( vptr ) { switch ( conn_gopt_options[ index ].data_type ) { case SQL_INTEGER: { int i; txt.sprintf( " *vptr = 0x%08X", value ); pOdbcTest->out_win->append( txt ); for ( i = 0; conn_gopt_options[ index ].values[ i ].text; i ++ ) { if ( conn_gopt_options[ index ].values[ i ].value == value ) { txt.sprintf( " %s", conn_gopt_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } break; } default: txt.sprintf( " *vptr = %s", buf ); break; } } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } void dGetConnectOption::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "vParam: SQL_NULL_POINTER" ); else target_valid->setText( "vParam: VALID" ); } dGetConnectOption::dGetConnectOption( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); // "hdbc" handles->setGeometry( 170, 50, 300, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); types = new QComboBox( this ); // "fOption" types->setGeometry( 170, 80, 300, 20 ); pOdbcTest->fill_list_box( conn_gopt_options, types ); l_handle = new QLabel( "hstmt:", this ); l_handle->setGeometry( 10, 50, 130, 20 ); l_types = new QLabel( "fOption:", this ); l_types->setGeometry( 10, 80, 130, 20 ); target_valid = new QCheckBox( "vParam: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); } dGetConnectOption::~dGetConnectOption() { delete ok; delete cancel; delete help; delete types; delete handles; delete l_handle; delete l_types; delete target_valid; } void OdbcTest::slotSetStmtAttr() { dSetStmtAttr *dlg = new dSetStmtAttr( this, "SQLSetStmtAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetStmtAttr() { dGetStmtAttr *dlg = new dGetStmtAttr( this, "SQLGetStmtAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetConnectAttr() { dSetConnAttr *dlg = new dSetConnAttr( this, "SQLSetConnectAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetConnectAttr() { dGetConnAttr *dlg = new dGetConnAttr( this, "SQLGetConnectAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetEnvAttr() { dSetEnvAttr *dlg = new dSetEnvAttr( this, "SQLSetEnvAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetEnvAttr() { dGetEnvAttr *dlg = new dGetEnvAttr( this, "SQLGetEnvAttr" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetStmtOption() { dSetStmtOption *dlg = new dSetStmtOption( this, "SQLSetStmtOption" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetStmtOption() { dGetStmtOption *dlg = new dGetStmtOption( this, "SQLGetStmtOption" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetConnectOption() { dSetConnectOption *dlg = new dSetConnectOption( this, "SQLSetConnectOption" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetConnectOption() { dGetConnectOption *dlg = new dGetConnectOption( this, "SQLGetConnectOption" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetCursorAttributes() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mresults.cpp0000644000175000001440000005377611506076452015636 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'results.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "results.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'results.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dGetData[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x09, 24, 9, 9, 9, 0x09, 38, 9, 9, 9, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetData[] = { "dGetData\0\0target_clkd()\0strlen_clkd()\0" "Ok()\0" }; const QMetaObject dGetData::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetData, qt_meta_data_dGetData, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetData::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetData::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetData::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetData)) return static_cast(const_cast< dGetData*>(this)); return QDialog::qt_metacast(_clname); } int dGetData::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: target_clkd(); break; case 1: strlen_clkd(); break; case 2: Ok(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dDescribeCol[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 6, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 26, 13, 13, 13, 0x09, 38, 13, 13, 13, 0x09, 50, 13, 13, 13, 0x09, 63, 13, 13, 13, 0x09, 75, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dDescribeCol[] = { "dDescribeCol\0\0name_clkd()\0type_clkd()\0" "size_clkd()\0digit_clkd()\0null_clkd()\0" "Ok()\0" }; const QMetaObject dDescribeCol::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dDescribeCol, qt_meta_data_dDescribeCol, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dDescribeCol::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dDescribeCol::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dDescribeCol::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dDescribeCol)) return static_cast(const_cast< dDescribeCol*>(this)); return QDialog::qt_metacast(_clname); } int dDescribeCol::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: name_clkd(); break; case 1: type_clkd(); break; case 2: size_clkd(); break; case 3: digit_clkd(); break; case 4: null_clkd(); break; case 5: Ok(); break; default: ; } _id -= 6; } return _id; } static const uint qt_meta_data_dNumResultCols[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 38, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dNumResultCols[] = { "dNumResultCols\0\0out_handle_ptr_clkd()\0" "Ok()\0" }; const QMetaObject dNumResultCols::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dNumResultCols, qt_meta_data_dNumResultCols, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dNumResultCols::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dNumResultCols::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dNumResultCols::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dNumResultCols)) return static_cast(const_cast< dNumResultCols*>(this)); return QDialog::qt_metacast(_clname); } int dNumResultCols::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: out_handle_ptr_clkd(); break; case 1: Ok(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dFetch[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 8, 7, 7, 7, 0x09, 0 // eod }; static const char qt_meta_stringdata_dFetch[] = { "dFetch\0\0Ok()\0" }; const QMetaObject dFetch::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dFetch, qt_meta_data_dFetch, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dFetch::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dFetch::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dFetch::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dFetch)) return static_cast(const_cast< dFetch*>(this)); return QDialog::qt_metacast(_clname); } int dFetch::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dRowCount[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 11, 10, 10, 10, 0x09, 16, 10, 10, 10, 0x09, 0 // eod }; static const char qt_meta_stringdata_dRowCount[] = { "dRowCount\0\0Ok()\0Valid()\0" }; const QMetaObject dRowCount::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dRowCount, qt_meta_data_dRowCount, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dRowCount::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dRowCount::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dRowCount::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dRowCount)) return static_cast(const_cast< dRowCount*>(this)); return QDialog::qt_metacast(_clname); } int dRowCount::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: Valid(); break; default: ; } _id -= 2; } return _id; } static const uint qt_meta_data_dMoreResults[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dMoreResults[] = { "dMoreResults\0\0Ok()\0" }; const QMetaObject dMoreResults::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dMoreResults, qt_meta_data_dMoreResults, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dMoreResults::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dMoreResults::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dMoreResults::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dMoreResults)) return static_cast(const_cast< dMoreResults*>(this)); return QDialog::qt_metacast(_clname); } int dMoreResults::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dSetPos[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 9, 8, 8, 8, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetPos[] = { "dSetPos\0\0Ok()\0" }; const QMetaObject dSetPos::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetPos, qt_meta_data_dSetPos, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetPos::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetPos::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetPos::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetPos)) return static_cast(const_cast< dSetPos*>(this)); return QDialog::qt_metacast(_clname); } int dSetPos::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dBulkOperations[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 17, 16, 16, 16, 0x09, 0 // eod }; static const char qt_meta_stringdata_dBulkOperations[] = { "dBulkOperations\0\0Ok()\0" }; const QMetaObject dBulkOperations::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dBulkOperations, qt_meta_data_dBulkOperations, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dBulkOperations::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dBulkOperations::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dBulkOperations::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dBulkOperations)) return static_cast(const_cast< dBulkOperations*>(this)); return QDialog::qt_metacast(_clname); } int dBulkOperations::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dColAttribute[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 36, 14, 14, 14, 0x09, 50, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_dColAttribute[] = { "dColAttribute\0\0Ok()\0char_ptr_clkd()\0" "strlen_clkd()\0numeric_clkd()\0" }; const QMetaObject dColAttribute::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dColAttribute, qt_meta_data_dColAttribute, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dColAttribute::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dColAttribute::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dColAttribute::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dColAttribute)) return static_cast(const_cast< dColAttribute*>(this)); return QDialog::qt_metacast(_clname); } int dColAttribute::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: char_ptr_clkd(); break; case 2: strlen_clkd(); break; case 3: numeric_clkd(); break; default: ; } _id -= 4; } return _id; } static const uint qt_meta_data_dColAttributes[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 4, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 21, 15, 15, 15, 0x09, 37, 15, 15, 15, 0x09, 51, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dColAttributes[] = { "dColAttributes\0\0Ok()\0char_ptr_clkd()\0" "strlen_clkd()\0numeric_clkd()\0" }; const QMetaObject dColAttributes::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dColAttributes, qt_meta_data_dColAttributes, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dColAttributes::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dColAttributes::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dColAttributes::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dColAttributes)) return static_cast(const_cast< dColAttributes*>(this)); return QDialog::qt_metacast(_clname); } int dColAttributes::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: char_ptr_clkd(); break; case 2: strlen_clkd(); break; case 3: numeric_clkd(); break; default: ; } _id -= 4; } return _id; } static const uint qt_meta_data_dFetchScroll[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 14, 13, 13, 13, 0x09, 0 // eod }; static const char qt_meta_stringdata_dFetchScroll[] = { "dFetchScroll\0\0Ok()\0" }; const QMetaObject dFetchScroll::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dFetchScroll, qt_meta_data_dFetchScroll, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dFetchScroll::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dFetchScroll::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dFetchScroll::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dFetchScroll)) return static_cast(const_cast< dFetchScroll*>(this)); return QDialog::qt_metacast(_clname); } int dFetchScroll::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dExtendedFetch[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 21, 15, 15, 15, 0x09, 38, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_dExtendedFetch[] = { "dExtendedFetch\0\0Ok()\0count_ptr_clkd()\0" "status_ptr_clkd()\0" }; const QMetaObject dExtendedFetch::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dExtendedFetch, qt_meta_data_dExtendedFetch, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dExtendedFetch::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dExtendedFetch::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dExtendedFetch::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dExtendedFetch)) return static_cast(const_cast< dExtendedFetch*>(this)); return QDialog::qt_metacast(_clname); } int dExtendedFetch::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: count_ptr_clkd(); break; case 2: status_ptr_clkd(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dSetScrollOptions[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_dSetScrollOptions[] = { "dSetScrollOptions\0\0Ok()\0" }; const QMetaObject dSetScrollOptions::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dSetScrollOptions, qt_meta_data_dSetScrollOptions, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dSetScrollOptions::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dSetScrollOptions::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dSetScrollOptions::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dSetScrollOptions)) return static_cast(const_cast< dSetScrollOptions*>(this)); return QDialog::qt_metacast(_clname); } int dSetScrollOptions::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/Makefile.in0000644000175000001440000006321511506076376015313 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ODBCTestQ4$(EXEEXT) subdir = ODBCTestQ4 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ODBCTestQ4_OBJECTS = attr.$(OBJEXT) catalog.$(OBJEXT) \ conn.$(OBJEXT) desc.$(OBJEXT) diag.$(OBJEXT) \ DlgDbcConnect.$(OBJEXT) DlgEnvAllocEnv.$(OBJEXT) \ DlgEnvAllocHandle.$(OBJEXT) DlgEnvDataSources.$(OBJEXT) \ DlgEnvDrivers.$(OBJEXT) DlgEnvEndTran.$(OBJEXT) \ DlgEnvFreeEnv.$(OBJEXT) DlgEnvFreeHandle.$(OBJEXT) \ DlgEnvTransact.$(OBJEXT) DlgToolsManageAutoTest.$(OBJEXT) \ DlgToolsManageTest.$(OBJEXT) DlgToolsManageTestGroup.$(OBJEXT) \ DlgToolsNewGroup.$(OBJEXT) DlgToolsNewSource.$(OBJEXT) \ DlgToolsRunAutoTests.$(OBJEXT) installer.$(OBJEXT) \ main.$(OBJEXT) OdbcHandle.$(OBJEXT) OdbcTest.$(OBJEXT) \ results.$(OBJEXT) stmt.$(OBJEXT) mattr.$(OBJEXT) \ mcatalog.$(OBJEXT) mconn.$(OBJEXT) mdesc.$(OBJEXT) \ mdiag.$(OBJEXT) mDlgDbcConnect.$(OBJEXT) \ mDlgToolsManageAutoTest.$(OBJEXT) \ mDlgToolsManageTest.$(OBJEXT) \ mDlgToolsManageTestGroup.$(OBJEXT) mDlgToolsNewGroup.$(OBJEXT) \ mDlgToolsNewSource.$(OBJEXT) mDlgToolsRunAutoTests.$(OBJEXT) \ mDlgEnvAllocEnv.$(OBJEXT) mDlgEnvAllocHandle.$(OBJEXT) \ mDlgEnvDataSources.$(OBJEXT) mDlgEnvDrivers.$(OBJEXT) \ mDlgEnvEndTran.$(OBJEXT) mDlgEnvFreeEnv.$(OBJEXT) \ mDlgEnvFreeHandle.$(OBJEXT) mDlgEnvTransact.$(OBJEXT) \ mOdbcTest.$(OBJEXT) mresults.$(OBJEXT) mstmt.$(OBJEXT) ODBCTestQ4_OBJECTS = $(am_ODBCTestQ4_OBJECTS) am__DEPENDENCIES_1 = ODBCTestQ4_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ ../gtrtstQ4/libgtrtstQ4.la DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(ODBCTestQ4_SOURCES) DIST_SOURCES = $(ODBCTestQ4_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(QT_CXXFLAGS) \ $(INCLUDES_COMMON) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ $(LTDLINCL) ODBCTestQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ ../gtrtstQ4/libgtrtstQ4.la \ -lodbc -lodbcinst ODBCTestQ4_SOURCES = \ attr.cpp \ catalog.cpp \ conn.cpp \ desc.cpp \ diag.cpp \ DlgDbcConnect.cpp \ DlgEnvAllocEnv.cpp \ DlgEnvAllocHandle.cpp \ DlgEnvDataSources.cpp \ DlgEnvDrivers.cpp \ DlgEnvEndTran.cpp \ DlgEnvFreeEnv.cpp \ DlgEnvFreeHandle.cpp \ DlgEnvTransact.cpp \ DlgToolsManageAutoTest.cpp \ DlgToolsManageTest.cpp \ DlgToolsManageTestGroup.cpp \ DlgToolsNewGroup.cpp \ DlgToolsNewSource.cpp \ DlgToolsRunAutoTests.cpp \ installer.cpp \ main.cpp \ OdbcHandle.cpp \ OdbcTest.cpp \ results.cpp \ stmt.cpp \ mattr.cpp \ mcatalog.cpp \ mconn.cpp \ mdesc.cpp \ mdiag.cpp \ mDlgDbcConnect.cpp \ mDlgToolsManageAutoTest.cpp \ mDlgToolsManageTest.cpp \ mDlgToolsManageTestGroup.cpp \ mDlgToolsNewGroup.cpp \ mDlgToolsNewSource.cpp \ mDlgToolsRunAutoTests.cpp \ mDlgEnvAllocEnv.cpp \ mDlgEnvAllocHandle.cpp \ mDlgEnvDataSources.cpp \ mDlgEnvDrivers.cpp \ mDlgEnvEndTran.cpp \ mDlgEnvFreeEnv.cpp \ mDlgEnvFreeHandle.cpp \ mDlgEnvTransact.cpp \ mOdbcTest.cpp \ mresults.cpp \ mstmt.cpp CLEANFILES = \ mattr.cpp \ mcatalog.cpp \ mconn.cpp \ mdesc.cpp \ mdiag.cpp \ mDlgDbcConnect.cpp \ mDlgEnvAllocEnv.cpp \ mDlgEnvAllocHandle.cpp \ mDlgEnvDataSources.cpp \ mDlgEnvDrivers.cpp \ mDlgEnvEndTran.cpp \ mDlgEnvFreeEnv.cpp \ mDlgEnvFreeHandle.cpp \ mDlgEnvTransact.cpp \ mDlgToolsManageAutoTest.cpp \ mDlgToolsManageTest.cpp \ mDlgToolsManageTestGroup.cpp \ mDlgToolsNewGroup.cpp \ mDlgToolsNewSource.cpp \ mDlgToolsRunAutoTests.cpp \ mOdbcTest.cpp \ mresults.cpp \ mstmt.cpp EXTRA_DIST = \ attr.h \ catalog.h \ conn.h \ desc.h \ diag.h \ DlgDbcConnect.h \ DlgEnvAllocEnv.h \ DlgEnvAllocHandle.h \ DlgEnvDataSources.h \ DlgEnvDrivers.h \ DlgEnvEndTran.h \ DlgEnvFreeEnv.h \ DlgEnvFreeHandle.h \ DlgEnvTransact.h \ DlgToolsManageAutoTest.h \ DlgToolsManageTest.h \ DlgToolsManageTestGroup.h \ DlgToolsNewGroup.h \ DlgToolsNewSource.h \ DlgToolsRunAutoTests.h \ OdbcHandle.h \ OdbcTest.h \ results.h \ stmt.h all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ODBCTestQ4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ODBCTestQ4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ODBCTestQ4$(EXEEXT): $(ODBCTestQ4_OBJECTS) $(ODBCTestQ4_DEPENDENCIES) @rm -f ODBCTestQ4$(EXEEXT) $(CXXLINK) $(ODBCTestQ4_OBJECTS) $(ODBCTestQ4_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgDbcConnect.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvAllocEnv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvAllocHandle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvDataSources.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvDrivers.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvEndTran.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvFreeEnv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvFreeHandle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgEnvTransact.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsManageAutoTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsManageTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsManageTestGroup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsNewGroup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsNewSource.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DlgToolsRunAutoTests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OdbcHandle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OdbcTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/attr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catalog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conn.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/desc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/diag.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/installer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgDbcConnect.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvAllocEnv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvAllocHandle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvDataSources.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvDrivers.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvEndTran.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvFreeEnv.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvFreeHandle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgEnvTransact.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsManageAutoTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsManageTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsManageTestGroup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsNewGroup.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsNewSource.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mDlgToolsRunAutoTests.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mOdbcTest.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mattr.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mcatalog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mconn.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdesc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdiag.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mresults.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mstmt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/results.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stmt.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS mresults.cpp: @srcdir@/results.h @MOC@ @srcdir@/results.h -o mresults.cpp mstmt.cpp: @srcdir@/stmt.h @MOC@ @srcdir@/stmt.h -o mstmt.cpp mOdbcTest.cpp: @srcdir@/OdbcTest.h @MOC@ @srcdir@/OdbcTest.h -o mOdbcTest.cpp mdesc.cpp: @srcdir@/desc.h @MOC@ @srcdir@/desc.h -o mdesc.cpp mdiag.cpp: @srcdir@/diag.h @MOC@ @srcdir@/diag.h -o mdiag.cpp mDlgEnvAllocEnv.cpp: @srcdir@/DlgEnvAllocEnv.h @MOC@ @srcdir@/DlgEnvAllocEnv.h -o mDlgEnvAllocEnv.cpp mDlgEnvAllocHandle.cpp: @srcdir@/DlgEnvAllocHandle.h @MOC@ @srcdir@/DlgEnvAllocHandle.h -o mDlgEnvAllocHandle.cpp mDlgEnvDataSources.cpp: @srcdir@/DlgEnvDataSources.h @MOC@ @srcdir@/DlgEnvDataSources.h -o mDlgEnvDataSources.cpp mDlgEnvDrivers.cpp: @srcdir@/DlgEnvDrivers.h @MOC@ @srcdir@/DlgEnvDrivers.h -o mDlgEnvDrivers.cpp mDlgEnvEndTran.cpp: @srcdir@/DlgEnvEndTran.h @MOC@ @srcdir@/DlgEnvEndTran.h -o mDlgEnvEndTran.cpp mDlgEnvFreeEnv.cpp: @srcdir@/DlgEnvFreeEnv.h @MOC@ @srcdir@/DlgEnvFreeEnv.h -o mDlgEnvFreeEnv.cpp mDlgEnvFreeHandle.cpp: @srcdir@/DlgEnvFreeHandle.h @MOC@ @srcdir@/DlgEnvFreeHandle.h -o mDlgEnvFreeHandle.cpp mDlgEnvTransact.cpp: @srcdir@/DlgEnvTransact.h @MOC@ @srcdir@/DlgEnvTransact.h -o mDlgEnvTransact.cpp mcatalog.cpp: @srcdir@/catalog.h @MOC@ @srcdir@/catalog.h -o mcatalog.cpp mconn.cpp: @srcdir@/conn.h @MOC@ @srcdir@/conn.h -o mconn.cpp mattr.cpp: @srcdir@/attr.h @MOC@ @srcdir@/attr.h -o mattr.cpp mDlgDbcConnect.cpp: @srcdir@/DlgDbcConnect.h @MOC@ @srcdir@/DlgDbcConnect.h -o mDlgDbcConnect.cpp mDlgToolsManageAutoTest.cpp: @srcdir@/DlgToolsManageAutoTest.h @MOC@ @srcdir@/DlgToolsManageAutoTest.h -o mDlgToolsManageAutoTest.cpp mDlgToolsManageTest.cpp: @srcdir@/DlgToolsManageTest.h @MOC@ @srcdir@/DlgToolsManageTest.h -o mDlgToolsManageTest.cpp mDlgToolsManageTestGroup.cpp: @srcdir@/DlgToolsManageTestGroup.h @MOC@ @srcdir@/DlgToolsManageTestGroup.h -o mDlgToolsManageTestGroup.cpp mDlgToolsNewGroup.cpp: @srcdir@/DlgToolsNewGroup.h @MOC@ @srcdir@/DlgToolsNewGroup.h -o mDlgToolsNewGroup.cpp mDlgToolsNewSource.cpp: @srcdir@/DlgToolsNewSource.h @MOC@ @srcdir@/DlgToolsNewSource.h -o mDlgToolsNewSource.cpp mDlgToolsRunAutoTests.cpp: @srcdir@/DlgToolsRunAutoTests.h @MOC@ @srcdir@/DlgToolsRunAutoTests.h -o mDlgToolsRunAutoTests.cpp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvAllocHandle.cpp0000644000175000001440000001143111506076311017176 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvAllocHandle.h" #include "OdbcTest.h" void DlgEnvAllocHandle::slotDone() { SQLHANDLE out_handle, in_handle = SQL_NULL_HANDLE; SQLRETURN ret; SQLINTEGER type; const char *handle; switch( types->currentIndex() ) { case 0: type = SQL_HANDLE_ENV; handle = "SQL_HANDLE_ENV=1"; break; case 1: type = SQL_HANDLE_DBC; handle = "SQL_HANDLE_DBC=2"; break; case 2: type = SQL_HANDLE_STMT; handle = "SQL_HANDLE_STMT=3"; break; case 3: type = SQL_HANDLE_DESC; handle = "SQL_HANDLE_DESC=4"; break; } /* * get input handle */ OdbcHandle *hand = pOdbcTest->extract_handle_list( -1, handles ); if ( hand ) in_handle = hand->getHandle(); /* * set output handle to something */ out_handle = 0; if ( valid->isChecked() ) ret = SQLAllocHandle( type, in_handle, SQL_NULL_HANDLE ); else ret = SQLAllocHandle( type, in_handle, &out_handle ); pOdbcTest->out_win->append( "SQLAllocHandle():" ); pOdbcTest->out_win->append( " In:" ); txt.sprintf( " Handle Type: %s", handle ); pOdbcTest->out_win->append( txt ); if ( in_handle ) txt.sprintf( " InputHandle: %p", in_handle ); else txt.sprintf( " InputHandle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); if ( valid->isChecked() ) txt.sprintf( " OutputHandle: SQL_NULL_HANDLE" ); else txt.sprintf( " OutputHandle: %p", &out_handle ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( out_handle ) txt.sprintf( " *OutputHandle: %p", out_handle ); else txt.sprintf( " *OutputHandle: " ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->listHandle.append( new OdbcHandle( type, out_handle, pOdbcTest->listHandle )); } accept(); } void DlgEnvAllocHandle::out_handle_ptr_clkd() { if ( valid->isChecked() ) valid->setText( "OutputHandlePtr: SQL_NULL_HANDLE" ); else valid->setText( "OutputHandlePtr: VALID" ); } DlgEnvAllocHandle::DlgEnvAllocHandle( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; QVBoxLayout *playoutTop = new QVBoxLayout( this ); QGridLayout *pLayout = new QGridLayout; playoutTop->addLayout( pLayout ); l_handle = new QLabel( "InputHandle:", this ); handles = new QComboBox( this ); pOdbcTest->fill_handle_list( -1, handles ); pLayout->addWidget( l_handle, 0, 0 ); pLayout->addWidget( handles, 0, 1 ); l_types = new QLabel( "HandleType:", this ); types = new QComboBox( this ); types->insertItem( 0, "SQL_HANDLE_ENV=1 (3.0)" ); types->insertItem( 1, "SQL_HANDLE_DBC=2 (3.0)" ); types->insertItem( 2, "SQL_HANDLE_STMT=3 (3.0)" ); types->insertItem( 3, "SQL_HANDLE_DESC=3 (3.0)" ); pLayout->addWidget( l_types, 1, 0 ); pLayout->addWidget( types, 1, 1 ); valid = new QCheckBox( "OutputHandlePtr: VALID", this ); pLayout->addWidget( valid, 2, 1 ); pDialogButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, Qt::Horizontal, this ); playoutTop->addWidget( pDialogButtonBox ); connect( valid, SIGNAL( clicked()), this, SLOT( out_handle_ptr_clkd())); connect( pDialogButtonBox, SIGNAL(accepted()), this, SLOT(slotDone()) ); connect( pDialogButtonBox, SIGNAL(rejected()), this, SLOT(reject()) ); // connect( pDialogButtonBox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); } DlgEnvAllocHandle::~DlgEnvAllocHandle() { delete types; delete handles; delete l_handle; delete l_types; delete valid; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageTestGroup.h0000644000175000001440000000351411506076311020115 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsNewGroup; class DlgToolsManageTestGroup : public QDialog { Q_OBJECT public: DlgToolsManageTestGroup( OdbcTest *pOdbcTest, QString name ); ~DlgToolsManageTestGroup(); friend class DlgToolsNewGroup; protected: QPushButton *close, *nw, *del, *add, *remove; OdbcTest *pOdbcTest; QComboBox *test_source; QComboBox *group; QLabel *l_group, *l_auto, *l_sauto; QListWidget *auto_list, *sauto_list; void update_test_lists( void ); protected slots: void Activated( int index ); void Activated( const QString &str ); void Ok(); void Add(); void Remove(); void New(); void Delete(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/desc.cpp0000644000175000001440000005635711506076311014666 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "desc.h" #include "OdbcTest.h" static attr_options field_ident_struct[] = { { "SQL_DESC_ALLOC_TYPE", SQL_DESC_ALLOC_TYPE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_USMALLINT, 0, 0 }, { "SQL_DESC_ARRAY_SIZE", SQL_DESC_ARRAY_SIZE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_UINTEGER, 0, 0 }, { "SQL_DESC_ARRAY_STATUS_PTR", SQL_DESC_ARRAY_STATUS_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_POINTER, 0, 0 }, { "SQL_DESC_BIND_OFFSET_PTR", SQL_DESC_BIND_OFFSET_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_POINTER, 0, 0 }, { "SQL_DESC_BIND_TYPE", SQL_DESC_BIND_TYPE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_UINTEGER, 0, 0 }, { "SQL_DESC_COUNT", SQL_DESC_COUNT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_SMALLINT, 0, 0 }, { "SQL_DESC_ROWS_PROCESSED_PTR", SQL_DESC_ROWS_PROCESSED_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_POINTER, 0, 0 }, { "SQL_DESC_AUTO_UNIQUE_VALUE", SQL_DESC_AUTO_UNIQUE_VALUE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_INTEGER, 0, 0 }, { "SQL_DESC_BASE_COLUMN_NAME", SQL_DESC_BASE_COLUMN_NAME, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_BASE_TABLE_NAME", SQL_DESC_BASE_TABLE_NAME, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_CASE_SENSITIVE", SQL_DESC_CASE_SENSITIVE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_INTEGER, 0, 0 }, { "SQL_DESC_CATALOG_NAME", SQL_DESC_CATALOG_NAME, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DESC_CONCISE_TYPE", SQL_DESC_CONCISE_TYPE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_SMALLINT, 0, 0 }, { "SQL_DESC_DATA_PTR", SQL_DESC_DATA_PTR, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_POINTER, 0, 0 }, { "SQL_DESC_DATETIME_INTERVAL_CODE", SQL_DESC_DATETIME_INTERVAL_CODE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_IS_SMALLINT, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; void dCopyDesc::Ok() { OdbcHandle *desc1 = pOdbcTest->extract_handle_list( SQL_HANDLE_DESC, handle1 ); SQLHANDLE in_handle1 = SQL_NULL_HANDLE; OdbcHandle *desc2 = pOdbcTest->extract_handle_list( SQL_HANDLE_DESC, handle2 ); SQLHANDLE in_handle2 = SQL_NULL_HANDLE; if ( desc1 ) in_handle1 = desc1->getHandle(); if ( desc2 ) in_handle2 = desc2->getHandle(); pOdbcTest->out_win->append( "SQLCopyDesc():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle1 ) txt.sprintf( " Source Handle: %p", in_handle1 ); else txt.sprintf( " Source Handle: SQL_NULL_DESC" ); pOdbcTest->out_win->append( txt ); if ( in_handle2 ) txt.sprintf( " Destination Handle: %p", in_handle2 ); else txt.sprintf( " Destination Handle: SQL_NULL_DESC" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLCopyDesc( in_handle1, in_handle2 ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dCopyDesc::dCopyDesc( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 130,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 210,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 290,10, 70,25 ); handle1 = new QComboBox( this ); handle1->setGeometry( 160, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DESC, handle1 ); l_handle1 = new QLabel( "Source Handle:", this ); l_handle1->setGeometry( 10, 50, 120, 20 ); handle2 = new QComboBox( this ); handle2->setGeometry( 160, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DESC, handle2 ); l_handle2 = new QLabel( "Destination Handle:", this ); l_handle2->setGeometry( 10, 80, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dCopyDesc::~dCopyDesc() { delete ok; delete cancel; delete help; delete handle1; delete l_handle1; delete handle2; delete l_handle2; } void dGetDescField::ptr_clkd() { if ( ptr_valid->isChecked() ) ptr_valid->setText( "ValuePtr: SQL_NULL_POINTER" ); else ptr_valid->setText( "ValuePtr: VALID" ); } void dGetDescField::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StringLengthPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StringLengthPtr: VALID" ); } void dGetDescField::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DESC, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT b_len, attribute; SQLINTEGER *strlen_ptr, strlen_val; SQLINTEGER rec_number; SQLPOINTER buf; SQLPOINTER pval; SQLINTEGER ival; SQLSMALLINT sval; SQLUINTEGER uival; SQLUSMALLINT usval; int buf_allocated = 0; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetDescField():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Handle: %p", in_handle ); else txt.sprintf( " Handle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); rec_number = rec_num->text().toInt(); txt.sprintf( " RecNumber: %d", rec_number ); pOdbcTest->out_win->append( txt ); attribute = field_ident_struct[ diag_info->currentIndex() ].attr; txt.sprintf( " FieldIdentifier: %s=%d", field_ident_struct[ diag_info->currentIndex() ].text, field_ident_struct[ diag_info->currentIndex() ].attr ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( ptr_valid->isChecked() ) { buf = NULL; txt.sprintf( " ValuePtr: " ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_POINTER ) { buf = &pval; } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_INTEGER ) { buf = &ival; } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_UINTEGER ) { buf = &uival; } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_SMALLINT ) { buf = &sval; } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_USMALLINT ) { buf = &usval; } else { if ( b_len < 0 ) b_len = 300; buf = malloc( b_len ); buf_allocated = 1; } if ( buf ) { txt.sprintf( " ValuePtr: %p", buf ); } pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked() ) { txt.sprintf( " StringLengthPtr: " ); strlen_ptr = NULL; } else { strlen_ptr = &strlen_val; strlen_val = -9999; txt.sprintf( " StringLengthPtr: %p", strlen_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLGetDescField( in_handle, rec_number, attribute, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( buf ) { if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_CHAR ) { txt.sprintf( " ValuePtr: %p", buf ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_POINTER ) { txt.sprintf( " ValuePtr: %p", pval ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_INTEGER ) { txt.sprintf( " ValuePtr: %d", ival ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_UINTEGER ) { txt.sprintf( " ValuePtr: %d", ival ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_SMALLINT ) { txt.sprintf( " ValuePtr: %d", sval ); } else if ( field_ident_struct[ diag_info->currentIndex() ].data_type == SQL_IS_USMALLINT ) { txt.sprintf( " ValuePtr: %d", sval ); } pOdbcTest->out_win->append( txt ); } if ( strlen_ptr ) { if ( strlen_val == -9999 ) { txt.sprintf( " *StringLengthPtr: " ); } else { txt.sprintf( " *StringLengthPtr: %d", strlen_val ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( buf && buf_allocated ) free( buf ); } dGetDescField::dGetDescField( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 250,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 330,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 410,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DESC, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 50, 120, 20 ); rec_num = new QLineEdit( this ); rec_num->setGeometry( 130, 80, 70, 20 ); rec_num->setMaxLength( 6 ); rec_num->setText( "0" ); l_rec_num = new QLabel( "Rec Number:", this ); l_rec_num->setGeometry( 10, 80, 100, 20 ); diag_info = new QComboBox( this ); diag_info->setGeometry( 130, 110, 350, 20 ); pOdbcTest->fill_list_box( field_ident_struct, diag_info ); l_diag_info = new QLabel( "Field Identifier:", this ); l_diag_info->setGeometry( 10, 110, 120, 20 ); ptr_valid = new QCheckBox( "ValuePtr: VALID", this ); ptr_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 130, 170, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Length:", this ); l_buffer_len->setGeometry( 10, 170, 100, 20 ); strlen_valid = new QCheckBox( "StringLengthPtr: VALID", this ); strlen_valid->setGeometry( 10, 200, 300, 15 ); connect( ptr_valid, SIGNAL( clicked()), this, SLOT( ptr_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dGetDescField::~dGetDescField() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete ptr_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; delete rec_num; delete l_rec_num; delete l_diag_info; delete diag_info; } void dGetDescRec::name_clkd() { if ( name_valid->isChecked() ) name_valid->setText( "Name: SQL_NULL_POINTER" ); else name_valid->setText( "Name: VALID" ); } void dGetDescRec::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StringLengthPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StringLengthPtr: VALID" ); } void dGetDescRec::type_clkd() { if ( type_valid->isChecked() ) type_valid->setText( "TypePtr: SQL_NULL_POINTER" ); else type_valid->setText( "TypePtr: VALID" ); } void dGetDescRec::sub_type_clkd() { if ( sub_type_valid->isChecked() ) sub_type_valid->setText( "SubTypePtr: SQL_NULL_POINTER" ); else sub_type_valid->setText( "SubTypePtr: VALID" ); } void dGetDescRec::length_clkd() { if ( length_valid->isChecked() ) length_valid->setText( "LengthPtr: SQL_NULL_POINTER" ); else length_valid->setText( "LengthPtr: VALID" ); } void dGetDescRec::precision_clkd() { if ( precision_valid->isChecked() ) precision_valid->setText( "PrecisionPtr: SQL_NULL_POINTER" ); else precision_valid->setText( "PrecisionPtr: VALID" ); } void dGetDescRec::scale_clkd() { if ( scale_valid->isChecked() ) scale_valid->setText( "ScalePtr: SQL_NULL_POINTER" ); else scale_valid->setText( "ScalePtr: VALID" ); } void dGetDescRec::nullable_clkd() { if ( nullable_valid->isChecked() ) nullable_valid->setText( "NullablePtr: SQL_NULL_POINTER" ); else nullable_valid->setText( "NullablePtr: VALID" ); } void dGetDescRec::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DESC, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT b_len; SQLSMALLINT *strlen_ptr, strlen_val; SQLSMALLINT rec_number; SQLSMALLINT *type_ptr, type_val; SQLSMALLINT *sub_type_ptr, sub_type_val; SQLLEN *length_ptr, length_val; SQLSMALLINT *precision_ptr, precision_val; SQLSMALLINT *scale_ptr, scale_val; SQLSMALLINT *nullable_ptr, nullable_val; SQLCHAR *buf; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetDescRec():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Handle: %p", in_handle ); else txt.sprintf( " Handle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); rec_number = rec_num->text().toInt(); txt.sprintf( " RecNumber: %d", rec_number ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( name_valid->isChecked() ) { buf = NULL; txt.sprintf( " Name: " ); } else { if ( b_len < 0 ) b_len = 300; buf = new SQLCHAR[ b_len ]; txt.sprintf( " Name: %p", buf ); } pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked() ) { txt.sprintf( " StringLengthPtr: " ); strlen_ptr = NULL; } else { strlen_ptr = &strlen_val; strlen_val = -9999; txt.sprintf( " StringLengthPtr: %p", strlen_ptr ); } pOdbcTest->out_win->append( txt ); if ( type_valid->isChecked() ) { txt.sprintf( " TypePtr: " ); type_ptr = NULL; } else { type_ptr = &type_val; type_val = -9999; txt.sprintf( " TypePtr: %p", type_ptr ); } pOdbcTest->out_win->append( txt ); if ( sub_type_valid->isChecked() ) { txt.sprintf( " SubTypePtr: " ); sub_type_ptr = NULL; } else { sub_type_ptr = &sub_type_val; sub_type_val = -9999; txt.sprintf( " SubTypePtr: %p", sub_type_ptr ); } pOdbcTest->out_win->append( txt ); if ( length_valid->isChecked() ) { txt.sprintf( " LengthPtr: " ); length_ptr = NULL; } else { length_ptr = &length_val; length_val = -9999; txt.sprintf( " LengthPtr: %p", length_ptr ); } pOdbcTest->out_win->append( txt ); if ( precision_valid->isChecked() ) { txt.sprintf( " PrecisionPtr: " ); precision_ptr = NULL; } else { precision_ptr = &precision_val; precision_val = -9999; txt.sprintf( " PrecisionPtr: %p", precision_ptr ); } pOdbcTest->out_win->append( txt ); if ( scale_valid->isChecked() ) { txt.sprintf( " ScalePtr: " ); scale_ptr = NULL; } else { scale_ptr = &scale_val; scale_val = -9999; txt.sprintf( " ScalePtr: %p", scale_ptr ); } pOdbcTest->out_win->append( txt ); if ( nullable_valid->isChecked() ) { txt.sprintf( " NullablePtr: " ); nullable_ptr = NULL; } else { nullable_ptr = &nullable_val; nullable_val = -9999; txt.sprintf( " NullablePtr: %p", nullable_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLGetDescRec( in_handle, rec_number, buf, b_len, strlen_ptr, type_ptr, sub_type_ptr, length_ptr, precision_ptr, scale_ptr, nullable_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( buf ) { txt.sprintf( " Name: %s", buf ); pOdbcTest->out_win->append( txt ); } if ( strlen_ptr ) { if ( strlen_val == -9999 ) { txt.sprintf( " *StringLengthPtr: " ); } else { txt.sprintf( " *StringLengthPtr: %d", strlen_val ); } pOdbcTest->out_win->append( txt ); } if ( type_ptr ) { if ( type_val == -9999 ) { txt.sprintf( " *TypePtr: " ); } else { txt.sprintf( " *TypePtr: %d", type_val ); } pOdbcTest->out_win->append( txt ); } if ( sub_type_ptr ) { if ( sub_type_val == -9999 ) { txt.sprintf( " *SubTypePtr: " ); } else { txt.sprintf( " *SubTypePtr: %d", sub_type_val ); } pOdbcTest->out_win->append( txt ); } if ( length_ptr ) { if ( length_val == -9999 ) { txt.sprintf( " *LengthPtr: " ); } else { txt.sprintf( " *LengthPtr: %d", length_val ); } pOdbcTest->out_win->append( txt ); } if ( precision_ptr ) { if ( precision_val == -9999 ) { txt.sprintf( " *PrecisionPtr: " ); } else { txt.sprintf( " *PrecisionPtr: %d", precision_val ); } pOdbcTest->out_win->append( txt ); } if ( nullable_ptr ) { if ( nullable_val == -9999 ) { txt.sprintf( " *NullablePtr: " ); } else { txt.sprintf( " *NullablePtr: %d", nullable_val ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( buf ) delete buf; } dGetDescRec::dGetDescRec( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 250,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 330,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 410,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DESC, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 50, 120, 20 ); rec_num = new QLineEdit( this ); rec_num->setGeometry( 130, 80, 70, 20 ); rec_num->setMaxLength( 6 ); rec_num->setText( "0" ); l_rec_num = new QLabel( "Rec Number:", this ); l_rec_num->setGeometry( 10, 80, 100, 20 ); name_valid = new QCheckBox( "Name: VALID", this ); name_valid->setGeometry( 10, 110, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 130, 140, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Length:", this ); l_buffer_len->setGeometry( 10, 140, 100, 20 ); strlen_valid = new QCheckBox( "StringLengthPtr: VALID", this ); strlen_valid->setGeometry( 10, 170, 220, 15 ); type_valid = new QCheckBox( "TypePtr: VALID", this ); type_valid->setGeometry( 300, 170, 220, 15 ); sub_type_valid = new QCheckBox( "SubTypePtr: VALID", this ); sub_type_valid->setGeometry( 10, 200, 220, 15 ); length_valid = new QCheckBox( "LengthPtr: VALID", this ); length_valid->setGeometry( 300, 200, 220, 15 ); precision_valid = new QCheckBox( "PrecisionPtr: VALID", this ); precision_valid->setGeometry( 10, 230, 220, 15 ); scale_valid = new QCheckBox( "ScalePtr: VALID", this ); scale_valid->setGeometry( 300, 230, 220, 15 ); nullable_valid = new QCheckBox( "NullablePtr: VALID", this ); nullable_valid->setGeometry( 10, 260, 220, 15 ); connect( name_valid, SIGNAL( clicked()), this, SLOT( name_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); connect( type_valid, SIGNAL( clicked()), this, SLOT( type_clkd())); connect( sub_type_valid, SIGNAL( clicked()), this, SLOT( sub_type_clkd())); connect( length_valid, SIGNAL( clicked()), this, SLOT( length_clkd())); connect( scale_valid, SIGNAL( clicked()), this, SLOT( scale_clkd())); connect( precision_valid, SIGNAL( clicked()), this, SLOT( precision_clkd())); connect( nullable_valid, SIGNAL( clicked()), this, SLOT( nullable_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dGetDescRec::~dGetDescRec() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete name_valid; delete strlen_valid; delete type_valid; delete sub_type_valid; delete length_valid; delete precision_valid; delete nullable_valid; delete scale_valid; delete buffer_len; delete l_buffer_len; delete rec_num; delete l_rec_num; } void OdbcTest::slotCopyDesc() { dCopyDesc *dlg = new dCopyDesc( this, "SQLCopyDesc" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetDescField() { dGetDescField *dlg = new dGetDescField( this, "SQLGetDescField" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetDescRec() { dGetDescRec *dlg = new dGetDescRec( this, "SQLGetDescRec" ); dlg->exec(); delete dlg; } void OdbcTest::slotSetDescField() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotSetDescRec() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotGetDescAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/OdbcHandle.cpp0000644000175000001440000001350311506076311015715 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "OdbcHandle.h" attr_value pEnvHandleTypes[] = { { "SQL_HANDLE_ENV", SQL_HANDLE_ENV, NULL, 0 }, { "SQL_HANDLE_DBC", SQL_HANDLE_DBC, NULL, 0 }, { NULL, 0, NULL, 0 } }; attr_value pEnvCompletionTypes[] = { { "SQL_COMMIT", SQL_COMMIT, NULL, 0 }, { "SQL_ROLLBACK", SQL_ROLLBACK, NULL, 0 }, { NULL, 0, NULL, 0 } }; attr_value pEnvDataSourcesDirections[] = { { "SQL_FETCH_NEXT", SQL_FETCH_NEXT, NULL, 0 }, { "SQL_FETCH_FIRST", SQL_FETCH_FIRST, NULL, 0 }, { "SQL_FETCH_FIRST_USER", SQL_FETCH_FIRST_USER, NULL, 0 }, { "SQL_FETCH_FIRST_SYSTEM", SQL_FETCH_FIRST_SYSTEM, NULL, 0 }, { NULL, 0, NULL, 0 } }; attr_value pEnvDriversDirections[] = { { "SQL_FETCH_NEXT", SQL_FETCH_NEXT, NULL, 0 }, { "SQL_FETCH_FIRST", SQL_FETCH_FIRST, NULL, 0 }, { NULL, 0, NULL, 0 } }; OdbcHandle::OdbcHandle( int t, SQLHANDLE h, QString desc, SQLHANDLE stmt ) { type = t; handle = h; description = desc; stmt_handle = stmt; if ( stmt ) { implicit = 1; } else { implicit = 0; } handle_list = NULL; bookmark_ptr = new char[ 256 ]; param_bind_offset_ptr = ¶m_bind_offset; param_opt_ptr = ¶m_opt; param_status_ptr = ¶m_status; params_processed_ptr = ¶ms_processed; row_bind_offset_ptr = &row_bind_offset; row_operation_ptr = &row_operation; row_status_ptr = &row_status; rows_fetched_ptr = &rows_fetched; row_array_size = 0; param_array_size = 0; } OdbcHandle::OdbcHandle( int t, SQLHANDLE h, QList &list ) { type = t; handle = h; implicit = 0; description = ""; stmt_handle = SQL_NULL_HANDLE; handle_list = &list; bookmark_ptr = new char[ 256 ]; param_bind_offset_ptr = ¶m_bind_offset; param_opt_ptr = ¶m_opt; param_status_ptr = ¶m_status; params_processed_ptr = ¶ms_processed; row_bind_offset_ptr = &row_bind_offset; row_operation_ptr = &row_operation; row_status_ptr = &row_status; rows_fetched_ptr = &rows_fetched; row_array_size = 0; param_array_size = 0; /* * extract any desc handles associated with a statement handle */ if ( type == SQL_HANDLE_STMT ) { SQLRETURN ret; SQLHANDLE desc; ret = SQLGetStmtAttr( h, SQL_ATTR_APP_PARAM_DESC, &desc, 0, NULL ); if ( SQL_SUCCEEDED( ret )) list.append( new OdbcHandle( SQL_HANDLE_DESC, desc, "Implicit APD", h )); ret = SQLGetStmtAttr( h, SQL_ATTR_APP_ROW_DESC, &desc, 0, NULL ); if ( SQL_SUCCEEDED( ret )) list.append( new OdbcHandle( SQL_HANDLE_DESC, desc, "Implicit ARD", h )); ret = SQLGetStmtAttr( h, SQL_ATTR_IMP_PARAM_DESC, &desc, 0, NULL ); if ( SQL_SUCCEEDED( ret )) list.append( new OdbcHandle( SQL_HANDLE_DESC, desc, "Implicit IPD", h )); ret = SQLGetStmtAttr( h, SQL_ATTR_IMP_ROW_DESC, &desc, 0, NULL ); if ( SQL_SUCCEEDED( ret )) list.append( new OdbcHandle( SQL_HANDLE_DESC, desc, "Implicit IRD", h )); } } OdbcHandle::OdbcHandle( OdbcHandle &e ) { type = e.type; handle = e.handle; implicit = 0; description = ""; stmt_handle = SQL_NULL_HANDLE; bookmark_ptr = new char[ 256 ]; param_bind_offset_ptr = ¶m_bind_offset; param_opt_ptr = ¶m_opt; param_status_ptr = ¶m_status; params_processed_ptr = ¶ms_processed; row_bind_offset_ptr = &row_bind_offset; row_operation_ptr = &row_operation; row_status_ptr = &row_status; rows_fetched_ptr = &rows_fetched; row_array_size = 0; param_array_size = 0; }; OdbcHandle::~OdbcHandle() { /* * remove the implicit descriptors if a stmt is removed */ if ( type == SQL_HANDLE_STMT ) { int changed = 0; do { changed = 0; { for ( int i = 0; i < handle_list->size(); ++i ) { OdbcHandle *hand = handle_list->at( i ); if ( hand && hand->getType() == SQL_HANDLE_DESC && hand->getStmtHandle() == handle ) { handle_list->removeAll( hand ); delete hand; changed = 1; break; } } } } while( changed ); } } char * OdbcHandle::toStr( char * str ) { switch( type ) { case SQL_HANDLE_ENV: sprintf( str, "henv: %p", handle ); break; case SQL_HANDLE_DBC: sprintf( str, "hdbc: %p", handle ); break; case SQL_HANDLE_STMT: sprintf( str, "hstmt: %p", handle ); break; case SQL_HANDLE_DESC: sprintf( str, "hdesc: %p \"%s\"", handle, description.toAscii().constData() ); break; } return str; }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/OdbcTest.cpp0000644000175000001440000014201311506076311015440 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "OdbcTest.h" #include "ODBCTestQ4-48.xpm" #include "DlgEnvAllocHandle.h" #include "DlgEnvDataSources.h" #include "DlgEnvDrivers.h" #include "DlgEnvEndTran.h" #include "DlgEnvFreeHandle.h" #include "DlgEnvAllocEnv.h" #include "DlgEnvFreeEnv.h" #include "DlgEnvTransact.h" OdbcTest::OdbcTest( QWidget *parent ) : QMainWindow( parent ) { setWindowTitle( "ODBC Test" ); setWindowIcon( QPixmap( xpmODBCTestQ4_48 ) ); /*! * Open the test configuration file once and allow all supporting code to use it. Let Qt * delete the object when this (its parent) deconstructs. The settings will automatically * sync to disk at that time. * * \note Using QSettings to read/write ini files imposes some limitations. The main * one is that slashs in directory names need to be escaped. There may also be * issues with the order in which things are read. */ pSettings = new QSettings( QDir::homePath() + "/Gator.ini", QSettings::IniFormat, this ); createActions(); createMenus(); this->setGeometry( 0, 0, 500, 250 ); split = new QSplitter( Qt::Vertical, this ); split->setOpaqueResize( FALSE ); setCentralWidget( split ); in_win = new QTextEdit( split ); out_win = new QTextEdit( split ); out_win->setReadOnly( TRUE ); readApplicationState(); } OdbcTest::~OdbcTest() { writeApplicationState(); // delete all handles while ( !listHandle.isEmpty() ) delete listHandle.takeFirst(); } void OdbcTest::slotExit() { qApp->quit(); } const char * OdbcTest::return_as_text( int ret ) { switch ( ret ) { case SQL_SUCCESS: return "SQL_SUCCESS"; case SQL_SUCCESS_WITH_INFO: return "SQL_SUCCESS_WITH_INFO"; case SQL_ERROR: return "SQL_ERROR"; case SQL_INVALID_HANDLE: return "SQL_INVALID_HANDLE"; case SQL_STILL_EXECUTING: return "SQL_STILL_EXECUTING"; case SQL_NEED_DATA: return "SQL_NEED_DATA"; case SQL_NO_DATA: return "SQL_NO_DATA"; default: return "Unknown Return ?"; } } void OdbcTest::fill_list_box( attr_value *attr, QComboBox *lst ) { char txt[ 128 ]; for ( int i = 0; attr[ i ].text; i ++ ) { if ( strlen( attr[ i ].text ) > 0 ) { if ( attr[ i ].version ) { sprintf( txt, "%s=%d (%s)", attr[ i ].text, attr[ i ].value, attr[ i ].version ); } else { sprintf( txt, "%s=%d", attr[ i ].text, attr[ i ].value ); } } else { sprintf( txt, "%d", attr[ i ].value ); } lst->insertItem( i, txt ); } } void OdbcTest::fill_list_box( attr_options *attr, QComboBox *lst ) { char txt[ 128 ]; for ( int i = 0; attr[ i ].text; i ++ ) { if ( strlen( attr[ i ].text ) > 0 ) { if ( attr[ i ].version ) { sprintf( txt, "%s=%d (%s)", attr[ i ].text, attr[ i ].attr, attr[ i ].version ); } else { sprintf( txt, "%s=%d", attr[ i ].text, attr[ i ].attr ); } } else { sprintf( txt, "%d", attr[ i ].attr ); } lst->insertItem( i, txt ); } } SQLHANDLE OdbcTest::get_handle( int type ) { QListIterator it( listHandle ); while ( it.hasNext() ) { OdbcHandle *hand = it.next(); if ( hand && hand->getType() == type ) { return hand->getHandle(); } } return SQL_NULL_HANDLE; } OdbcHandle * OdbcTest::fill_handle_list( int type, QComboBox *lst ) { QListIterator it( listHandle ); OdbcHandle * match = NULL; int i = 0; char txt[128]; while ( it.hasNext() ) { OdbcHandle *hand = it.next(); if ( !hand ) break; hand->toStr( txt ); if ( type < 0 ) { lst->insertItem( i++, txt ); match = hand; } else if ( hand->getType() == type ) { lst->insertItem( i++, txt ); match = hand; } } lst->insertItem( i, "SQL_NULL_HANDLE" ); return match; } OdbcHandle *OdbcTest::extract_handle_list( int type, QComboBox *lst ) { QListIterator it( listHandle ); int index = lst->currentIndex(); int i = 0; OdbcHandle * hand = NULL; while ( it.hasNext() ) { hand = it.next(); if ( !hand ) break; if ( type < 0 || hand->getType() == type ) { if ( i == index ) { break; } i++; } } return hand; } void OdbcTest::fill_dsn_list( QComboBox *box ) { SQLHANDLE henv; SQLRETURN ret; SQLCHAR dsn_txt[ 128 ]; box -> clear(); ret = SQLAllocEnv( &henv ); if ( !SQL_SUCCEEDED( ret )) { out_win -> append( "SQLAllocHandle fails allocating a environment handle" ); return; } ret = SQLDataSources( henv, SQL_FETCH_FIRST, dsn_txt, sizeof( dsn_txt ), NULL, NULL, 0, NULL ); while ( SQL_SUCCEEDED( ret )) { box -> addItem( (char*)dsn_txt ); ret = SQLDataSources( henv, SQL_FETCH_NEXT, dsn_txt, sizeof( dsn_txt ), NULL, NULL, 0, NULL ); } SQLFreeEnv( henv ); } void OdbcTest::set_dsn_list( QComboBox *box, const QString &stringItem ) { int index; for ( index = 0; index < box->count(); index ++ ) { if ( box->itemText( index ) == stringItem ) { box->setCurrentIndex( index ); break; } } } void OdbcTest::dumpError( int type, SQLHANDLE hnd ) { SQLRETURN ret; SQLINTEGER count, i; char handle[ 30 ]; switch ( type ) { case SQL_HANDLE_ENV: sprintf( handle, "henv %p", hnd ); break; case SQL_HANDLE_DBC: sprintf( handle, "hdbc %p", hnd ); break; case SQL_HANDLE_STMT: sprintf( handle, "hstmt %p", hnd ); break; case SQL_HANDLE_DESC: sprintf( handle, "hdesc %p", hnd ); break; default: strcpy( handle, "unknown handle" ); break; } ret = SQLGetDiagField( type, hnd, 0, SQL_DIAG_NUMBER, &count, 0, NULL ); if ( !SQL_SUCCEEDED( ret )) { out_win->append( "SQLGetDiagField( SQL_DIAG_NUMBER ) failed" ); return; } for ( i = 1; i <= count; i ++ ) { SQLCHAR sqlstate[ 6 ]; SQLINTEGER native; SQLCHAR message_text[ SQL_MAX_MESSAGE_LENGTH ]; char txt[ SQL_MAX_MESSAGE_LENGTH + 50 ]; ret = SQLGetDiagRec( type, hnd, i, sqlstate, &native, message_text, sizeof( message_text ), NULL ); if ( !SQL_SUCCEEDED( ret )) { out_win->append( "SQLGetDiagRec() failed" ); return; } sprintf( txt, "Diag(%s):%s:%d:%s", handle, sqlstate, native, message_text ); out_win->append( txt ); } } void OdbcTest::slotHelpApi() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotHelpTest() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotHelpAbout() { /*! * \todo * * 1. create unixODBC.adp * 2. get unixODBC.adp and associated doc to install in various install scenarios * 3. tweek the way we get the path to the doc so its more portable (currently just Linux friendly) * * \sa * * slotHelp */ QProcess *process = new QProcess( this ); QString app = QLibraryInfo::location( QLibraryInfo::BinariesPath ) + QLatin1String( "/assistant" ); process->start( app, QStringList() << QLatin1String( "-enableRemoteControl" ) ); if ( !process->waitForStarted() ) { QMessageBox::critical(this, tr("ODBC Test"), tr("Could not start Qt Assistant from %1.").arg( app ) ); return; } // show index page // "SetSource qthelp://unixODBC-GUI-Qt/doc/index.html" QTextStream str( process ); str << QLatin1String( "SetSource qthelp://org.unixODBC.doc/doc/ODBCTestQ4/index.html" ) << QLatin1Char('\0') << endl; } void OdbcTest::resizeEvent( QResizeEvent * ) { // label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); } const char *OdbcTest::int_type_as_string( SQLINTERVAL itype ) { switch ( itype ) { case SQL_IS_YEAR: return "SQL_IS_YEAR"; case SQL_IS_MONTH: return "SQL_IS_MONTH"; case SQL_IS_DAY: return "SQL_IS_DAY"; case SQL_IS_HOUR: return "SQL_IS_HOUR"; case SQL_IS_MINUTE: return "SQL_IS_MINUTE"; case SQL_IS_SECOND: return "SQL_IS_SECOND"; case SQL_IS_YEAR_TO_MONTH: return "SQL_IS_YEAR_TO_MONTH"; case SQL_IS_DAY_TO_HOUR : return "SQL_IS_DAY_TO_HOUR"; case SQL_IS_DAY_TO_MINUTE: return "SQL_IS_DAY_TO_MINUTE"; case SQL_IS_DAY_TO_SECOND: return "SQL_IS_DAY_TO_SECOND"; case SQL_IS_HOUR_TO_MINUTE: return "SQL_IS_HOUR_TO_MINUTE"; case SQL_IS_HOUR_TO_SECOND: return "SQL_IS_HOUR_TO_SECOND"; case SQL_IS_MINUTE_TO_SECOND: return "SQL_IS_MINUTE_TO_SECOND"; } return "Unknown Type"; } void OdbcTest::createActions() { pactionExit = new QAction( tr("E&xit"), this ); pactionGetDiagRec = new QAction( tr("SQLGetDiag&Rec..."), this ); pactionGetDiagField = new QAction( tr("SQLGetDiag&Field..."), this ); pactionError = new QAction( tr("SQL&Error..."), this ); pactionErrorsAll = new QAction( tr("Errors &All..."), this ); pactionAllocEnv = new QAction( tr("SQL&AllocEnv..."), this ); pactionAllocHandle = new QAction( tr("SQL&AllocHandle..."), this ); pactionDataSources = new QAction( tr("SQLDataS&ources..."), this ); pactionDrivers = new QAction( tr("S&QLDrivers..."), this ); pactionFreeEnv = new QAction( tr("SQL&FreeEnv..."), this ); pactionFreeHandle = new QAction( tr("SQLF&reeHandle..."), this ); pactionEndTran = new QAction( tr("SQLE&ndTran..."), this ); pactionTransact = new QAction( tr("SQL&Transact..."), this ); pactionDataSourcesAll = new QAction( tr("Data &Sources All..."), this ); pactionDriversAll = new QAction( tr("Dri&vers All..."), this ); pactionAllocConnect = new QAction( tr("SQL&AllocConnect..."), this ); pactionBrowseConnect = new QAction( tr("SQL&BrowseConnect..."), this ); pactionConnect = new QAction( tr("SQL&Connect..."), this ); pactionDriverConnect = new QAction( tr("SQLD&riverConnect..."), this ); pactionDisconnect = new QAction( tr("SQL&Disconnect..."), this ); pactionFreeConnect = new QAction( tr("SQL&FreeConnect..."), this ); pactionGetFunctions = new QAction( tr("S&QLGetFunctions..."), this ); pactionGetInfo = new QAction( tr("SQLGet&Info..."), this ); pactionNativeSql = new QAction( tr("SQLN&ativeSQL..."), this ); pactionFullConnect = new QAction( tr("F&ull Connect..."), this ); pactionFullDisconnect = new QAction( tr("Fu&ll Disconnect..."), this ); pactionGetInfoAll = new QAction( tr("G&et Info All..."), this ); pactionGetFunctionsAll = new QAction( tr("Get &Functions All..."), this ); pactionCopyDesc = new QAction( tr("SQLCop&yDesc..."), this ); pactionGetDescField = new QAction( tr("SQLGetDesc&Field..."), this ); pactionGetDescRec = new QAction( tr("SQLG&etDescRec..."), this ); pactionSetDescField = new QAction( tr("SQLSetDescF&ield..."), this ); pactionSetDescRec = new QAction( tr("SQLSetDescRec..."), this ); pactionGetDescAll = new QAction( tr("Get Desc All..."), this ); pactionAllocStmt = new QAction( tr("SQLAllocStmt..."), this ); pactionBindParam = new QAction( tr("SQLBindParam,..."), this ); pactionBindParameter = new QAction( tr("SQLBindParameter..."), this ); pactionCancel = new QAction( tr("SQLCancel..."), this ); pactionCloseCursor = new QAction( tr("SQLCloseCursor..."), this ); pactionDescribeParam = new QAction( tr("SQLDescribeParam..."), this ); pactionExecute = new QAction( tr("SQLExecute..."), this ); pactionExecDirect = new QAction( tr("SQLExecDirect..."), this ); pactionFreeStmt = new QAction( tr("SQLFreeStmt..."), this ); pactionGetCursorName = new QAction( tr("SQLGetCursorName..."), this ); pactionNumParams = new QAction( tr("SQLNumParams..."), this ); pactionParamData = new QAction( tr("SQLParamData..."), this ); pactionParamOptions = new QAction( tr("SQLParamOptions..."), this ); pactionPrepare = new QAction( tr("SQLPrepare..."), this ); pactionPutData = new QAction( tr("SQLPutData..."), this ); pactionSetCursorName = new QAction( tr("SQLSetCursorName..."), this ); pactionFillParam = new QAction( tr("Fill Param..."), this ); pactionShowParam = new QAction( tr("Show Param..."), this ); pactionShowCursorSettings = new QAction( tr("Show Cursor Settings..."), this ); pactionSetStmtAttr = new QAction( tr("SQLSetStmtAttr..."), this ); pactionGetStmtAttr = new QAction( tr("SQLGetStmtAttr..."), this ); pactionSetStmtOption = new QAction( tr("SQLSetStmtOption..."), this ); pactionGetStmtOption = new QAction( tr("SQLGetStmtOption..."), this ); pactionSetConnectAttr = new QAction( tr("SQLSetConnectAttr..."), this ); pactionGetConnectAttr = new QAction( tr("SQLGetConnectAttr..."), this ); pactionSetConnectOption = new QAction( tr("SQLSetConnectOption..."), this ); pactionGetConnectOption = new QAction( tr("SQLGetConnectOption..."), this ); pactionSetEnvAttr = new QAction( tr("SQLSetEnvAttr..."), this ); pactionGetEnvAttr = new QAction( tr("SQLGetEnvAttr..."), this ); pactionSetCursorAttributes = new QAction( tr("Set Cursor Attributes..."), this ); pactionBindCol = new QAction( tr("SQLBindCol..."), this ); pactionBulkOperations = new QAction( tr("SQLBulkOperations..."), this ); pactionColAttributes = new QAction( tr("SQLColAttributes..."), this ); pactionColAttribute = new QAction( tr("SQLColAttribute..."), this ); pactionDescribeCol = new QAction( tr("SQLDescribeCol..."), this ); pactionExtendedFetch = new QAction( tr("SQLExtendedFetch..."), this ); pactionFetch = new QAction( tr("SQLFetch..."), this ); pactionFetchScroll = new QAction( tr("SQLFetchScroll..."), this ); pactionGetData = new QAction( tr("SQLGetData..."), this ); pactionMoreResults = new QAction( tr("SQLMoreResults..."), this ); pactionNumResultCols = new QAction( tr("SQLNumResultCols..."), this ); pactionRowCount = new QAction( tr("SQLRowCount..."), this ); pactionSetPos = new QAction( tr("SQLSetPos..."), this ); pactionSetScrollOptions = new QAction( tr("SQLSetScrollOptions..."), this ); pactionBindColAll = new QAction( tr("Bind Col All..."), this ); pactionDescribeColAll = new QAction( tr("Describe Col All..."), this ); pactionFetchAll = new QAction( tr("Fetch All..."), this ); pactionGetDataAll = new QAction( tr("Get Data All..."), this ); pactionShowBoundCols = new QAction( tr("Show Bound Cols..."), this ); pactionDisplayRowSet = new QAction( tr("Display Row Set..."), this ); pactionColumns = new QAction( tr("SQLColumns..."), this ); pactionColumnPrivileges = new QAction( tr("SQLColumnPrivileges..."), this ); pactionGetTypeInfo = new QAction( tr("SQLGetTypeInfo..."), this ); pactionForeignKeys = new QAction( tr("SQLForeignKeys..."), this ); pactionPrimaryKeys = new QAction( tr("SQLPrimaryKeys..."), this ); pactionProcedures = new QAction( tr("SQLProcedures..."), this ); pactionProcedureColumns = new QAction( tr("SQLProcedureColumns..."), this ); pactionSpecialColumns = new QAction( tr("SQLSpecialColumns..."), this ); pactionStatistics = new QAction( tr("SQLStatistics..."), this ); pactionTables = new QAction( tr("SQLTables..."), this ); pactionTablePrivileges = new QAction( tr("SQLTablePrivileges..."), this ); pactionManageDataSources = new QAction( tr("SQLManageDataSources..."), this ); pactionRemoveDefaultDataSource = new QAction( tr("SQLRemoveDefaultDataSource..."), this ); pactionConfigDataSource = new QAction( tr("SQLConfigDataSource..."), this ); pactionCreateDataSource = new QAction( tr("SQLCreateDataSource..."), this ); pactionValidDSN = new QAction( tr("SQLValidDSN..."), this ); pactionRemoveDSNFromIni = new QAction( tr("SQLRemoveDSNFromIni..."), this ); pactionWriteDSNToIni = new QAction( tr("SQLWriteDSNToIni..."), this ); pactionRemoveDrivers = new QAction( tr("SQLRemoveDrivers..."), this ); pactionConfigDrivers = new QAction( tr("SQLConfigDrivers..."), this ); pactionInstallDriver = new QAction( tr("SQLInstallDriver..."), this ); pactionInstallDriverEx = new QAction( tr("SQLInstallDriverEx..."), this ); pactionGetInstalledDrivers = new QAction( tr("SQLGetInstalledDrivers..."), this ); pactionRemoveDriverManager = new QAction( tr("SQLRemoveDriverManager..."), this ); pactionInstallDriverManager = new QAction( tr("SQLInstallDriverManager..."), this ); pactionReadFileDSN = new QAction( tr("SQLReadFileDSN..."), this ); pactionWriteFileDSN = new QAction( tr("SQLWriteFileDSN..."), this ); pactionWritePrivateProfileString = new QAction( tr("SQLWritePrivateProfileString..."), this ); pactionGetPrivateProfileString = new QAction( tr("SQLGetPrivateProfileString..."), this ); pactionInstallTranslator = new QAction( tr("SQLInstallTranslator..."), this ); pactionInstallTranslatorEx = new QAction( tr("SQLInstallTranslatorEx..."), this ); pactionRemoveTranslator = new QAction( tr("SQLRemoveTranslator..."), this ); pactionGetTranslator = new QAction( tr("SQLGetTranslator..."), this ); pactionSetConfigMode = new QAction( tr("SQLSetConfigMode..."), this ); pactionGetConfigMode = new QAction( tr("SQLGetConfigMode..."), this ); pactionOptions = new QAction( tr("Options..."), this ); pactionTrace = new QAction( tr("Trace..."), this ); pactionManageTestSources = new QAction( tr("Manage Test Sources..."), this ); pactionManageAutoTests = new QAction( tr("Manage Auto Tests..."), this ); pactionManageTestGroups = new QAction( tr("Manage Test Groups..."), this ); pactionRunAutoTests = new QAction( tr("Run Auto Tests..."), this ); pactionHelpTest = new QAction( tr("&ODBC Test..."), this ); pactionHelpApi = new QAction( tr("A&PI..."), this ); pactionHelpAbout = new QAction( tr("About..."), this ); connect( pactionExit , SIGNAL(triggered()), this, SLOT(slotExit ()) ); connect( pactionGetDiagRec , SIGNAL(triggered()), this, SLOT(slotGetDiagRec ()) ); connect( pactionGetDiagField , SIGNAL(triggered()), this, SLOT(slotGetDiagField ()) ); connect( pactionError , SIGNAL(triggered()), this, SLOT(slotError ()) ); connect( pactionErrorsAll , SIGNAL(triggered()), this, SLOT(slotErrorsAll ()) ); connect( pactionAllocEnv , SIGNAL(triggered()), this, SLOT(slotAllocEnv ()) ); connect( pactionAllocHandle , SIGNAL(triggered()), this, SLOT(slotAllocHandle ()) ); connect( pactionDataSources , SIGNAL(triggered()), this, SLOT(slotDataSources ()) ); connect( pactionDrivers , SIGNAL(triggered()), this, SLOT(slotDrivers ()) ); connect( pactionFreeEnv , SIGNAL(triggered()), this, SLOT(slotFreeEnv ()) ); connect( pactionFreeHandle , SIGNAL(triggered()), this, SLOT(slotFreeHandle ()) ); connect( pactionEndTran , SIGNAL(triggered()), this, SLOT(slotEndTran ()) ); connect( pactionTransact , SIGNAL(triggered()), this, SLOT(slotTransact ()) ); connect( pactionDataSourcesAll , SIGNAL(triggered()), this, SLOT(slotDataSourcesAll ()) ); connect( pactionDriversAll , SIGNAL(triggered()), this, SLOT(slotDriversAll ()) ); connect( pactionAllocConnect , SIGNAL(triggered()), this, SLOT(slotAllocConnect ()) ); connect( pactionBrowseConnect , SIGNAL(triggered()), this, SLOT(slotBrowseConnect ()) ); connect( pactionConnect , SIGNAL(triggered()), this, SLOT(slotConnect ()) ); connect( pactionDriverConnect , SIGNAL(triggered()), this, SLOT(slotDriverConnect ()) ); connect( pactionDisconnect , SIGNAL(triggered()), this, SLOT(slotDisconnect ()) ); connect( pactionFreeConnect , SIGNAL(triggered()), this, SLOT(slotFreeConnect ()) ); connect( pactionGetFunctions , SIGNAL(triggered()), this, SLOT(slotGetFunctions ()) ); connect( pactionGetInfo , SIGNAL(triggered()), this, SLOT(slotGetInfo ()) ); connect( pactionNativeSql , SIGNAL(triggered()), this, SLOT(slotNativeSql ()) ); connect( pactionFullConnect , SIGNAL(triggered()), this, SLOT(slotFullConnect ()) ); connect( pactionFullDisconnect , SIGNAL(triggered()), this, SLOT(slotFullDisconnect ()) ); connect( pactionGetInfoAll , SIGNAL(triggered()), this, SLOT(slotGetInfoAll ()) ); connect( pactionGetFunctionsAll , SIGNAL(triggered()), this, SLOT(slotGetFunctionsAll ()) ); connect( pactionCopyDesc , SIGNAL(triggered()), this, SLOT(slotCopyDesc ()) ); connect( pactionGetDescField , SIGNAL(triggered()), this, SLOT(slotGetDescField ()) ); connect( pactionGetDescRec , SIGNAL(triggered()), this, SLOT(slotGetDescRec ()) ); connect( pactionSetDescField , SIGNAL(triggered()), this, SLOT(slotSetDescField ()) ); connect( pactionSetDescRec , SIGNAL(triggered()), this, SLOT(slotSetDescRec ()) ); connect( pactionGetDescAll , SIGNAL(triggered()), this, SLOT(slotGetDescAll ()) ); connect( pactionAllocStmt , SIGNAL(triggered()), this, SLOT(slotAllocStmt ()) ); connect( pactionBindParam , SIGNAL(triggered()), this, SLOT(slotBindParam ()) ); connect( pactionBindParameter , SIGNAL(triggered()), this, SLOT(slotBindParameter ()) ); connect( pactionCancel , SIGNAL(triggered()), this, SLOT(slotCancel ()) ); connect( pactionCloseCursor , SIGNAL(triggered()), this, SLOT(slotCloseCursor ()) ); connect( pactionDescribeParam , SIGNAL(triggered()), this, SLOT(slotDescribeParam ()) ); connect( pactionExecute , SIGNAL(triggered()), this, SLOT(slotExecute ()) ); connect( pactionExecDirect , SIGNAL(triggered()), this, SLOT(slotExecDirect ()) ); connect( pactionFreeStmt , SIGNAL(triggered()), this, SLOT(slotFreeStmt ()) ); connect( pactionGetCursorName , SIGNAL(triggered()), this, SLOT(slotGetCursorName ()) ); connect( pactionNumParams , SIGNAL(triggered()), this, SLOT(slotNumParams ()) ); connect( pactionParamData , SIGNAL(triggered()), this, SLOT(slotParamData ()) ); connect( pactionParamOptions , SIGNAL(triggered()), this, SLOT(slotParamOptions ()) ); connect( pactionPrepare , SIGNAL(triggered()), this, SLOT(slotPrepare ()) ); connect( pactionPutData , SIGNAL(triggered()), this, SLOT(slotPutData ()) ); connect( pactionSetCursorName , SIGNAL(triggered()), this, SLOT(slotSetCursorName ()) ); connect( pactionFillParam , SIGNAL(triggered()), this, SLOT(slotFillParam ()) ); connect( pactionShowParam , SIGNAL(triggered()), this, SLOT(slotShowParam ()) ); connect( pactionShowCursorSettings , SIGNAL(triggered()), this, SLOT(slotShowCursorSettings ()) ); connect( pactionSetStmtAttr , SIGNAL(triggered()), this, SLOT(slotSetStmtAttr ()) ); connect( pactionGetStmtAttr , SIGNAL(triggered()), this, SLOT(slotGetStmtAttr ()) ); connect( pactionSetStmtOption , SIGNAL(triggered()), this, SLOT(slotSetStmtOption ()) ); connect( pactionGetStmtOption , SIGNAL(triggered()), this, SLOT(slotGetStmtOption ()) ); connect( pactionSetConnectAttr , SIGNAL(triggered()), this, SLOT(slotSetConnectAttr ()) ); connect( pactionGetConnectAttr , SIGNAL(triggered()), this, SLOT(slotGetConnectAttr ()) ); connect( pactionSetConnectOption , SIGNAL(triggered()), this, SLOT(slotSetConnectOption ()) ); connect( pactionGetConnectOption , SIGNAL(triggered()), this, SLOT(slotGetConnectOption ()) ); connect( pactionSetEnvAttr , SIGNAL(triggered()), this, SLOT(slotSetEnvAttr ()) ); connect( pactionGetEnvAttr , SIGNAL(triggered()), this, SLOT(slotGetEnvAttr ()) ); connect( pactionSetCursorAttributes , SIGNAL(triggered()), this, SLOT(slotSetCursorAttributes ()) ); connect( pactionBindCol , SIGNAL(triggered()), this, SLOT(slotBindCol ()) ); connect( pactionBulkOperations , SIGNAL(triggered()), this, SLOT(slotBulkOperations ()) ); connect( pactionColAttributes , SIGNAL(triggered()), this, SLOT(slotColAttributes ()) ); connect( pactionColAttribute , SIGNAL(triggered()), this, SLOT(slotColAttribute ()) ); connect( pactionDescribeCol , SIGNAL(triggered()), this, SLOT(slotDescribeCol ()) ); connect( pactionExtendedFetch , SIGNAL(triggered()), this, SLOT(slotExtendedFetch ()) ); connect( pactionFetch , SIGNAL(triggered()), this, SLOT(slotFetch ()) ); connect( pactionFetchScroll , SIGNAL(triggered()), this, SLOT(slotFetchScroll ()) ); connect( pactionGetData , SIGNAL(triggered()), this, SLOT(slotGetData ()) ); connect( pactionMoreResults , SIGNAL(triggered()), this, SLOT(slotMoreResults ()) ); connect( pactionNumResultCols , SIGNAL(triggered()), this, SLOT(slotNumResultCols ()) ); connect( pactionRowCount , SIGNAL(triggered()), this, SLOT(slotRowCount ()) ); connect( pactionSetPos , SIGNAL(triggered()), this, SLOT(slotSetPos ()) ); connect( pactionSetScrollOptions , SIGNAL(triggered()), this, SLOT(slotSetScrollOptions ()) ); connect( pactionBindColAll , SIGNAL(triggered()), this, SLOT(slotBindColAll ()) ); connect( pactionDescribeColAll , SIGNAL(triggered()), this, SLOT(slotDescribeColAll ()) ); connect( pactionFetchAll , SIGNAL(triggered()), this, SLOT(slotFetchAll ()) ); connect( pactionGetDataAll , SIGNAL(triggered()), this, SLOT(slotGetDataAll ()) ); connect( pactionShowBoundCols , SIGNAL(triggered()), this, SLOT(slotShowBoundCols ()) ); connect( pactionDisplayRowSet , SIGNAL(triggered()), this, SLOT(slotDisplayRowSet ()) ); connect( pactionColumns , SIGNAL(triggered()), this, SLOT(slotColumns ()) ); connect( pactionColumnPrivileges , SIGNAL(triggered()), this, SLOT(slotColumnPrivileges ()) ); connect( pactionGetTypeInfo , SIGNAL(triggered()), this, SLOT(slotGetTypeInfo ()) ); connect( pactionForeignKeys , SIGNAL(triggered()), this, SLOT(slotForeignKeys ()) ); connect( pactionPrimaryKeys , SIGNAL(triggered()), this, SLOT(slotPrimaryKeys ()) ); connect( pactionProcedures , SIGNAL(triggered()), this, SLOT(slotProcedures ()) ); connect( pactionProcedureColumns , SIGNAL(triggered()), this, SLOT(slotProcedureColumns ()) ); connect( pactionSpecialColumns , SIGNAL(triggered()), this, SLOT(slotSpecialColumns ()) ); connect( pactionStatistics , SIGNAL(triggered()), this, SLOT(slotStatistics ()) ); connect( pactionTables , SIGNAL(triggered()), this, SLOT(slotTables ()) ); connect( pactionTablePrivileges , SIGNAL(triggered()), this, SLOT(slotTablePrivileges ()) ); connect( pactionManageDataSources , SIGNAL(triggered()), this, SLOT(slotManageDataSources ()) ); connect( pactionRemoveDefaultDataSource , SIGNAL(triggered()), this, SLOT(slotRemoveDefaultDataSource ()) ); connect( pactionConfigDataSource , SIGNAL(triggered()), this, SLOT(slotConfigDataSource ()) ); connect( pactionCreateDataSource , SIGNAL(triggered()), this, SLOT(slotCreateDataSource ()) ); connect( pactionValidDSN , SIGNAL(triggered()), this, SLOT(slotValidDSN ()) ); connect( pactionRemoveDSNFromIni , SIGNAL(triggered()), this, SLOT(slotRemoveDSNFromIni ()) ); connect( pactionWriteDSNToIni , SIGNAL(triggered()), this, SLOT(slotWriteDSNToIni ()) ); connect( pactionRemoveDrivers , SIGNAL(triggered()), this, SLOT(slotRemoveDrivers ()) ); connect( pactionConfigDrivers , SIGNAL(triggered()), this, SLOT(slotConfigDrivers ()) ); connect( pactionInstallDriver , SIGNAL(triggered()), this, SLOT(slotInstallDriver ()) ); connect( pactionInstallDriverEx , SIGNAL(triggered()), this, SLOT(slotInstallDriverEx ()) ); connect( pactionGetInstalledDrivers , SIGNAL(triggered()), this, SLOT(slotGetInstalledDrivers ()) ); connect( pactionRemoveDriverManager , SIGNAL(triggered()), this, SLOT(slotRemoveDriverManager ()) ); connect( pactionInstallDriverManager , SIGNAL(triggered()), this, SLOT(slotInstallDriverManager ()) ); connect( pactionReadFileDSN , SIGNAL(triggered()), this, SLOT(slotReadFileDSN ()) ); connect( pactionWriteFileDSN , SIGNAL(triggered()), this, SLOT(slotWriteFileDSN ()) ); connect( pactionWritePrivateProfileString, SIGNAL(triggered()), this, SLOT(slotWritePrivateProfileString()) ); connect( pactionGetPrivateProfileString , SIGNAL(triggered()), this, SLOT(slotGetPrivateProfileString ()) ); connect( pactionInstallTranslator , SIGNAL(triggered()), this, SLOT(slotInstallTranslator ()) ); connect( pactionInstallTranslatorEx , SIGNAL(triggered()), this, SLOT(slotInstallTranslatorEx ()) ); connect( pactionRemoveTranslator , SIGNAL(triggered()), this, SLOT(slotRemoveTranslator ()) ); connect( pactionGetTranslator , SIGNAL(triggered()), this, SLOT(slotGetTranslator ()) ); connect( pactionSetConfigMode , SIGNAL(triggered()), this, SLOT(slotSetConfigMode ()) ); connect( pactionGetConfigMode , SIGNAL(triggered()), this, SLOT(slotGetConfigMode ()) ); connect( pactionOptions , SIGNAL(triggered()), this, SLOT(slotOptions ()) ); connect( pactionTrace , SIGNAL(triggered()), this, SLOT(slotTrace ()) ); connect( pactionManageTestSources , SIGNAL(triggered()), this, SLOT(slotManageTestSources ()) ); connect( pactionManageAutoTests , SIGNAL(triggered()), this, SLOT(slotManageAutoTests ()) ); connect( pactionManageTestGroups , SIGNAL(triggered()), this, SLOT(slotManageTestGroups ()) ); connect( pactionRunAutoTests , SIGNAL(triggered()), this, SLOT(slotRunAutoTests ()) ); connect( pactionHelpTest , SIGNAL(triggered()), this, SLOT(slotHelpTest ()) ); connect( pactionHelpApi , SIGNAL(triggered()), this, SLOT(slotHelpApi ()) ); connect( pactionHelpAbout , SIGNAL(triggered()), this, SLOT(slotHelpAbout ()) ); } void OdbcTest::createMenus() { // File... pmenuFile = menuBar()->addMenu( tr("&File") ); pmenuFile->addAction( pactionExit ); // Diagnostic... pmenuDiagnostic = menuBar()->addMenu( tr("Dia&gnostic") ); pmenuDiagnostic->addAction( pactionGetDiagRec ); pmenuDiagnostic->addAction( pactionGetDiagField ); pmenuDiagnostic->addAction( pactionError ); pmenuDiagnostic->addSeparator(); pmenuDiagnostic->addAction( pactionErrorsAll ); // Environment... pmenuEnvironment = menuBar()->addMenu( tr("E&nvironment") ); pmenuEnvironment->addAction( pactionAllocEnv ); pmenuEnvironment->addAction( pactionAllocHandle ); pmenuEnvironment->addAction( pactionDataSources ); pmenuEnvironment->addAction( pactionDrivers ); pmenuEnvironment->addAction( pactionFreeEnv ); pmenuEnvironment->addAction( pactionFreeHandle ); pmenuEnvironment->addAction( pactionEndTran ); pmenuEnvironment->addAction( pactionTransact ); pmenuEnvironment->addSeparator(); pmenuEnvironment->addAction( pactionDataSourcesAll ); pmenuEnvironment->addAction( pactionDriversAll ); // Connection... pmenuConnection = menuBar()->addMenu( tr("&Connection") ); pmenuConnection->addAction( pactionAllocConnect ); pmenuConnection->addAction( pactionBrowseConnect ); pmenuConnection->addAction( pactionConnect ); pmenuConnection->addAction( pactionDriverConnect ); pmenuConnection->addAction( pactionDisconnect ); pmenuConnection->addAction( pactionFreeConnect ); pmenuConnection->addAction( pactionGetFunctions ); pmenuConnection->addAction( pactionGetInfo ); pmenuConnection->addAction( pactionNativeSql ); pmenuConnection->addSeparator(); pmenuConnection->addAction( pactionFullConnect ); pmenuConnection->addAction( pactionFullDisconnect ); pmenuConnection->addAction( pactionGetInfoAll ); pmenuConnection->addAction( pactionGetFunctionsAll ); // Descriptor... pmenuDescriptor = menuBar()->addMenu( tr("&Descriptor") ); pmenuDescriptor->addAction( pactionCopyDesc ); pmenuDescriptor->addAction( pactionGetDescField ); pmenuDescriptor->addAction( pactionGetDescRec ); pmenuDescriptor->addAction( pactionSetDescField ); pmenuDescriptor->addAction( pactionSetDescRec ); pmenuDescriptor->addSeparator(); pmenuDescriptor->addAction( pactionGetDescAll ); // Statement... pmenuStatement = menuBar()->addMenu( tr("&Statement") ); pmenuStatement->addAction( pactionAllocStmt ); pmenuStatement->addAction( pactionBindParam ); pmenuStatement->addAction( pactionBindParameter ); pmenuStatement->addAction( pactionCancel ); pmenuStatement->addAction( pactionCloseCursor ); pmenuStatement->addAction( pactionDescribeParam ); pmenuStatement->addAction( pactionExecute ); pmenuStatement->addAction( pactionExecDirect ); pmenuStatement->addAction( pactionFreeStmt ); pmenuStatement->addAction( pactionGetCursorName ); pmenuStatement->addAction( pactionNumParams ); pmenuStatement->addAction( pactionParamData ); pmenuStatement->addAction( pactionParamOptions ); pmenuStatement->addAction( pactionPrepare ); pmenuStatement->addAction( pactionPutData ); pmenuStatement->addAction( pactionSetCursorName ); pmenuStatement->addSeparator(); pmenuStatement->addAction( pactionFillParam ); pmenuStatement->addAction( pactionShowParam ); pmenuStatement->addAction( pactionShowCursorSettings ); // Attributes... pmenuAttributes = menuBar()->addMenu( tr("&Attributes") ); pmenuAttributes->addAction( pactionSetStmtAttr ); pmenuAttributes->addAction( pactionGetStmtAttr ); pmenuAttributes->addAction( pactionSetStmtOption ); pmenuAttributes->addAction( pactionGetStmtOption ); pmenuAttributes->addSeparator(); pmenuAttributes->addAction( pactionSetConnectAttr ); pmenuAttributes->addAction( pactionGetConnectAttr ); pmenuAttributes->addAction( pactionSetConnectOption ); pmenuAttributes->addAction( pactionGetConnectOption ); pmenuAttributes->addSeparator(); pmenuAttributes->addAction( pactionSetEnvAttr ); pmenuAttributes->addAction( pactionGetEnvAttr ); pmenuAttributes->addAction( pactionSetCursorAttributes ); // Results... pmenuResults = menuBar()->addMenu( tr("&Results") ); pmenuResults->addAction( pactionBindCol ); pmenuResults->addAction( pactionBulkOperations ); pmenuResults->addAction( pactionColAttributes ); pmenuResults->addAction( pactionColAttribute ); pmenuResults->addAction( pactionDescribeCol ); pmenuResults->addAction( pactionExtendedFetch ); pmenuResults->addAction( pactionFetch ); pmenuResults->addAction( pactionFetchScroll ); pmenuResults->addAction( pactionGetData ); pmenuResults->addAction( pactionMoreResults ); pmenuResults->addAction( pactionNumResultCols ); pmenuResults->addAction( pactionRowCount ); pmenuResults->addAction( pactionSetPos ); pmenuResults->addAction( pactionSetScrollOptions ); pmenuResults->addSeparator(); pmenuResults->addAction( pactionBindColAll ); pmenuResults->addAction( pactionDescribeColAll ); pmenuResults->addAction( pactionFetchAll ); pmenuResults->addAction( pactionGetDataAll ); pmenuResults->addAction( pactionShowBoundCols ); pmenuResults->addAction( pactionDisplayRowSet ); // Catalog... pmenuCatalog = menuBar()->addMenu( tr("Cata&log") ); pmenuCatalog->addAction( pactionColumns ); pmenuCatalog->addAction( pactionColumnPrivileges ); pmenuCatalog->addAction( pactionGetTypeInfo ); pmenuCatalog->addAction( pactionForeignKeys ); pmenuCatalog->addAction( pactionPrimaryKeys ); pmenuCatalog->addAction( pactionProcedures ); pmenuCatalog->addAction( pactionProcedureColumns ); pmenuCatalog->addAction( pactionSpecialColumns ); pmenuCatalog->addAction( pactionStatistics ); pmenuCatalog->addAction( pactionTables ); pmenuCatalog->addAction( pactionTablePrivileges ); // Installer... pmenuInstaller = menuBar()->addMenu( tr("&Installer") ); // Installer->Data Sources... pmenuDataSources = pmenuInstaller->addMenu( tr("DataSources") ); pmenuDataSources->addAction( pactionManageDataSources ); pmenuDataSources->addAction( pactionRemoveDefaultDataSource ); pmenuDataSources->addAction( pactionConfigDataSource ); pmenuDataSources->addAction( pactionCreateDataSource ); pmenuDataSources->addAction( pactionValidDSN ); pmenuDataSources->addAction( pactionRemoveDSNFromIni ); pmenuDataSources->addAction( pactionWriteDSNToIni ); // Installer->Drivers... pmenuDrivers = pmenuInstaller->addMenu( tr("Drivers") ); pmenuDrivers->addAction( pactionRemoveDrivers ); pmenuDrivers->addAction( pactionConfigDrivers ); pmenuDrivers->addAction( pactionInstallDriver ); pmenuDrivers->addAction( pactionInstallDriverEx ); pmenuDrivers->addAction( pactionGetInstalledDrivers ); // Installer->DriverManager... pmenuDriverManager = pmenuInstaller->addMenu( tr("DriverManager") ); pmenuDriverManager->addAction( pactionRemoveDriverManager ); pmenuDriverManager->addAction( pactionInstallDriverManager ); // Installer->DataSourceName... pmenuFileDataSourceName = pmenuInstaller->addMenu( tr("FileDataSourceName") ); pmenuFileDataSourceName->addAction( pactionReadFileDSN ); pmenuFileDataSourceName->addAction( pactionWriteFileDSN ); // Installer->ProfileStrings... pmenuProfileStrings = pmenuInstaller->addMenu( tr("ProfileStrings") ); pmenuProfileStrings->addAction( pactionWritePrivateProfileString ); pmenuProfileStrings->addAction( pactionGetPrivateProfileString ); // Installer->Translator... pmenuTranslator = pmenuInstaller->addMenu( tr("Translator") ); pmenuTranslator->addAction( pactionInstallTranslator ); pmenuTranslator->addAction( pactionInstallTranslatorEx ); pmenuTranslator->addAction( pactionRemoveTranslator ); pmenuTranslator->addAction( pactionGetTranslator ); // Installer->ConfigMode... pmenuConfigMode = pmenuInstaller->addMenu( tr("ConfigMode") ); pmenuConfigMode->addAction( pactionSetConfigMode ); pmenuConfigMode->addAction( pactionGetConfigMode ); // Tools... pmenuTools = menuBar()->addMenu( tr("&Tools") ); pmenuTools->addAction( pactionOptions ); pmenuTools->addAction( pactionTrace ); pmenuTools->addSeparator(); pmenuTools->addAction( pactionManageTestSources ); pmenuTools->addAction( pactionManageAutoTests ); pmenuTools->addAction( pactionManageTestGroups ); pmenuTools->addAction( pactionRunAutoTests ); // Help... pmenuHelp = menuBar()->addMenu( tr("&Help") ); pmenuHelp->addAction( pactionHelpTest ); pmenuHelp->addAction( pactionHelpApi ); pmenuHelp->addAction( pactionHelpAbout ); } void OdbcTest::readApplicationState() { QSettings settings( "unixODBC-GUI-Qt", "OdbcTestQ4" ); settings.beginGroup( "MainWindow" ); resize(settings.value( "size", QSize( 400, 400 ) ).toSize() ); move(settings.value( "pos", QPoint( 200, 200 ) ).toPoint() ); settings.endGroup(); } void OdbcTest::writeApplicationState() { QSettings settings( "unixODBC-GUI-Qt", "OdbcTestQ4" ); settings.beginGroup( "MainWindow" ); settings.setValue( "size", size() ); settings.setValue( "pos", pos() ); settings.endGroup(); } void OdbcTest::slotAllocHandle() { DlgEnvAllocHandle *dlg = new DlgEnvAllocHandle( this, "SQLAllocHandle" ); dlg->exec(); delete dlg; } void OdbcTest::slotDataSources() { DlgEnvDataSources *dlg = new DlgEnvDataSources( this, "SQLDataSources" ); dlg->exec(); delete dlg; } void OdbcTest::slotDrivers() { DlgEnvDrivers *dlg = new DlgEnvDrivers( this, "SQLDrivers" ); dlg->exec(); delete dlg; } void OdbcTest::slotEndTran() { DlgEnvEndTran *dlg = new DlgEnvEndTran( this, "SQLEndTran" ); dlg->exec(); delete dlg; } void OdbcTest::slotFreeHandle() { DlgEnvFreeHandle *dlg = new DlgEnvFreeHandle( this, "SQLFreeHandle" ); dlg->exec(); delete dlg; } void OdbcTest::slotAllocEnv() { DlgEnvAllocEnv *dlg = new DlgEnvAllocEnv( this, "SQLAllocEnv" ); dlg->exec(); delete dlg; } void OdbcTest::slotFreeEnv() { DlgEnvFreeEnv *dlg = new DlgEnvFreeEnv( this, "SQLFreeEnv" ); dlg->exec(); delete dlg; } void OdbcTest::slotTransact() { DlgEnvTransact *dlg = new DlgEnvTransact( this, "SQLTransact" ); dlg->exec(); delete dlg; } void OdbcTest::slotDataSourcesAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotDriversAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvFreeHandle.h0000644000175000001440000000310711506076311016473 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvFreeHandle : public QDialog { Q_OBJECT public: DlgEnvFreeHandle( OdbcTest *pOdbcTest, QString name ); ~DlgEnvFreeHandle(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *valid; QLabel *l_handle, *l_types; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mdesc.cpp0000644000175000001440000001421311506076452015032 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'desc.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "desc.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'desc.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_dCopyDesc[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 11, 10, 10, 10, 0x09, 0 // eod }; static const char qt_meta_stringdata_dCopyDesc[] = { "dCopyDesc\0\0Ok()\0" }; const QMetaObject dCopyDesc::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dCopyDesc, qt_meta_data_dCopyDesc, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dCopyDesc::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dCopyDesc::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dCopyDesc::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dCopyDesc)) return static_cast(const_cast< dCopyDesc*>(this)); return QDialog::qt_metacast(_clname); } int dCopyDesc::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } static const uint qt_meta_data_dGetDescField[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 31, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetDescField[] = { "dGetDescField\0\0Ok()\0ptr_clkd()\0" "strlen_clkd()\0" }; const QMetaObject dGetDescField::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetDescField, qt_meta_data_dGetDescField, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetDescField::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetDescField::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetDescField::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetDescField)) return static_cast(const_cast< dGetDescField*>(this)); return QDialog::qt_metacast(_clname); } int dGetDescField::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: ptr_clkd(); break; case 2: strlen_clkd(); break; default: ; } _id -= 3; } return _id; } static const uint qt_meta_data_dGetDescRec[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 9, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x09, 18, 12, 12, 12, 0x09, 30, 12, 12, 12, 0x09, 44, 12, 12, 12, 0x09, 56, 12, 12, 12, 0x09, 72, 12, 12, 12, 0x09, 86, 12, 12, 12, 0x09, 103, 12, 12, 12, 0x09, 116, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_dGetDescRec[] = { "dGetDescRec\0\0Ok()\0name_clkd()\0" "strlen_clkd()\0type_clkd()\0sub_type_clkd()\0" "length_clkd()\0precision_clkd()\0" "scale_clkd()\0nullable_clkd()\0" }; const QMetaObject dGetDescRec::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_dGetDescRec, qt_meta_data_dGetDescRec, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &dGetDescRec::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *dGetDescRec::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *dGetDescRec::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_dGetDescRec)) return static_cast(const_cast< dGetDescRec*>(this)); return QDialog::qt_metacast(_clname); } int dGetDescRec::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: name_clkd(); break; case 2: strlen_clkd(); break; case 3: type_clkd(); break; case 4: sub_type_clkd(); break; case 5: length_clkd(); break; case 6: precision_clkd(); break; case 7: scale_clkd(); break; case 8: nullable_clkd(); break; default: ; } _id -= 9; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsNewSource.h0000644000175000001440000000306511506076311016763 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsManageTest; class DlgToolsNewSource : public QDialog { Q_OBJECT public: DlgToolsNewSource( OdbcTest *pOdbcTest, QString name, DlgToolsManageTest *ptest ); ~DlgToolsNewSource(); protected: QPushButton *ok, *cancel; OdbcTest *pOdbcTest; QLineEdit *source; QLabel *l_dsn; DlgToolsManageTest *parent_test; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvDrivers.h0000644000175000001440000000347311506076311016122 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvDrivers : public QDialog { Q_OBJECT public: DlgEnvDrivers( OdbcTest *pOdbcTest, QString name ); ~DlgEnvDrivers(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *direction; QCheckBox *server_valid, *nlp1_valid, *description_valid, *nlp2_valid; QLabel *l_handles, *l_direction, *l_server_len, *l_description_len; QLineEdit *server_len, *description_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void server_clkd(); void description_clkd(); void nlp1_clkd(); void nlp2_clkd(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvDataSources.cpp0000644000175000001440000002027011506076311017246 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgEnvDataSources.h" #include "OdbcTest.h" void DlgEnvDataSources::server_clkd() { if ( server_valid->isChecked() ) server_valid->setText( "ServerName: SQL_NULL_POINTER" ); else server_valid->setText( "ServerName: VALID" ); } void DlgEnvDataSources::description_clkd() { if ( description_valid->isChecked() ) description_valid->setText( "Description: SQL_NULL_POINTER" ); else description_valid->setText( "Description: VALID" ); } void DlgEnvDataSources::nlp1_clkd() { if ( nlp1_valid->isChecked() ) nlp1_valid->setText( "NameLengthPtr1: SQL_NULL_POINTER" ); else nlp1_valid->setText( "NameLengthPtr1: VALID" ); } void DlgEnvDataSources::nlp2_clkd() { if ( nlp2_valid->isChecked() ) nlp2_valid->setText( "NameLengthPtr2: SQL_NULL_POINTER" ); else nlp2_valid->setText( "NameLengthPtr2: VALID" ); } void DlgEnvDataSources::slotDone() { OdbcHandle *env = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLCHAR *server_name, *description; SQLSMALLINT bl1, bl2, *nlp1, *nlp2, nl1, nl2; SQLUSMALLINT direc; if ( env ) in_handle = env->getHandle(); pOdbcTest->out_win->append( "SQLDataSources():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Environment Handle: %p", in_handle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); direc = pEnvDataSourcesDirections[ direction->currentIndex() ].value; txt.sprintf( " Direction: %s=%d", pEnvDataSourcesDirections[ direction->currentIndex() ].text, pEnvDataSourcesDirections[ direction->currentIndex() ].value ); bl1 = server_len->text().toInt(); if ( server_valid->isChecked() ) { server_name = NULL; txt.sprintf( " ServerName: " ); } else { if ( bl1 < 0 ) bl1 = 300; server_name = new SQLCHAR[ bl1 ]; txt.sprintf( " ServerName: %p", bl1 ); } pOdbcTest->out_win->append( txt ); if ( nlp1_valid->isChecked() ) { nlp1 = NULL; txt.sprintf( " NameLengthPtr 1: " ); } else { nl1 = -9999; nlp1 = &nl1; txt.sprintf( " NameLengthPtr 1: %p", nlp1 ); } pOdbcTest->out_win->append( txt ); bl2 = description_len->text().toInt(); if ( description_valid->isChecked() ) { description = NULL; txt.sprintf( " Description: " ); } else { if ( bl1 < 0 ) bl1 = 300; description = new SQLCHAR[ bl1 ]; txt.sprintf( " Description: %p", bl1 ); } pOdbcTest->out_win->append( txt ); if ( nlp2_valid->isChecked() ) { nlp2 = NULL; txt.sprintf( " NameLengthPtr 2: " ); } else { nl2 = -9999; nlp2 = &nl2; txt.sprintf( " NameLengthPtr 2: %p", nlp2 ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLDataSources( in_handle, direc, server_name, bl1, nlp1, description, bl2, nlp2 ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( server_name ) { txt.sprintf( " ServerName: %s", server_name ); pOdbcTest->out_win->append( txt ); } if ( nlp1 ) { if ( nl1 == 9999 ) { txt.sprintf( " *NameLengthPtr 1: " ); } else { txt.sprintf( " *NameLengthPtr 1: %d", nl1 ); } pOdbcTest->out_win->append( txt ); } if ( description ) { txt.sprintf( " Description: %s", description ); pOdbcTest->out_win->append( txt ); } if ( nlp2 ) { if ( nl2 == 9999 ) { txt.sprintf( " *NameLengthPtr 2: " ); } else { txt.sprintf( " *NameLengthPtr 2: %d", nl2 ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( server_name ) delete server_name; if ( description ) delete description; } DlgEnvDataSources::DlgEnvDataSources( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; QVBoxLayout *playoutTop = new QVBoxLayout( this ); QGridLayout *pLayout = new QGridLayout; playoutTop->addLayout( pLayout ); l_handles = new QLabel( "Environment Handle:", this ); handles = new QComboBox( this ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); pLayout->addWidget( l_handles, 0, 0 ); pLayout->addWidget( handles, 0, 1 ); l_direction = new QLabel( "Direction:", this ); direction = new QComboBox( this ); pOdbcTest->fill_list_box( pEnvDataSourcesDirections, direction ); pLayout->addWidget( l_direction, 1, 0 ); pLayout->addWidget( direction, 1, 1 ); server_valid = new QCheckBox( "ServerName: VALID", this ); l_server_len = new QLabel( "BufferLength 1:", this ); server_len = new QLineEdit( this ); server_len->setMaxLength( 6 ); server_len->setText( "300" ); nlp1_valid = new QCheckBox( "Name Length Ptr 1: VALID", this ); pLayout->addWidget( server_valid, 2, 0 ); pLayout->addWidget( l_server_len, 2, 1 ); pLayout->addWidget( server_len, 2, 2 ); pLayout->addWidget( nlp1_valid, 2, 3 ); description_valid = new QCheckBox( "Description: VALID", this ); l_description_len = new QLabel( "BufferLength 2:", this ); description_len = new QLineEdit( this ); description_len->setMaxLength( 6 ); description_len->setText( "300" ); nlp2_valid = new QCheckBox( "Name Length Ptr 2: VALID", this ); pLayout->addWidget( description_valid, 3, 0 ); pLayout->addWidget( l_description_len, 3, 1 ); pLayout->addWidget( description_len, 3, 2 ); pLayout->addWidget( nlp2_valid, 3, 3 ); pDialogButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, Qt::Horizontal, this ); playoutTop->addWidget( pDialogButtonBox ); connect( server_valid, SIGNAL( clicked()), this, SLOT( server_clkd())); connect( nlp1_valid, SIGNAL( clicked()), this, SLOT( nlp1_clkd())); connect( description_valid, SIGNAL( clicked()), this, SLOT( description_clkd())); connect( nlp2_valid, SIGNAL( clicked()), this, SLOT( nlp2_clkd())); connect( pDialogButtonBox, SIGNAL(accepted()), this, SLOT(slotDone()) ); connect( pDialogButtonBox, SIGNAL(rejected()), this, SLOT(reject()) ); // connect( pDialogButtonBox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); } DlgEnvDataSources::~DlgEnvDataSources() { delete handles; delete l_handles; delete direction; delete l_direction; delete server_valid; delete server_len; delete l_server_len; delete nlp1_valid; delete description_valid; delete description_len; delete l_description_len; delete nlp2_valid; } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvTransact.h0000644000175000001440000000316111506076311016255 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvTransact : public QDialog { Q_OBJECT public: DlgEnvTransact( OdbcTest *pOdbcTest, QString name ); ~DlgEnvTransact(); protected: QPushButton *ok, *cancel, *help; QTextEdit *in_win; QComboBox *ehandles, *chandles; QLabel *l_ehandles, *l_chandles; QComboBox *completion_type; QLabel *l_completion_type; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsNewGroup.cpp0000644000175000001440000000576011506076311017156 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsNewGroup.h" #include "DlgToolsManageTestGroup.h" #include "OdbcTest.h" DlgToolsNewGroup::DlgToolsNewGroup( OdbcTest *pOdbcTest, QString name, DlgToolsManageTestGroup *ptest ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; parent_test = ptest; cancel = new QPushButton( "Close", this ); cancel->setGeometry( 200,50, 70,25 ); ok = new QPushButton( "Ok", this ); ok->setGeometry( 110,50, 70,25 ); source = new QLineEdit( this ); source->setGeometry( 100, 20, 250, 20 ); source->setMaxLength( 128 ); l_dsn = new QLabel( "Test Group:", this ); l_dsn->setGeometry( 10, 20, 90, 20 ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); } DlgToolsNewGroup::~DlgToolsNewGroup() { delete cancel; delete ok; delete source; delete l_dsn; } void DlgToolsNewGroup::Ok() { // sanity check... QString stringGroup = source->text(); if ( stringGroup.isEmpty() ) return; // add to GROUPS (but only if it it is not already there)... pOdbcTest->pSettings->beginGroup( "GROUPS" ); if ( pOdbcTest->pSettings->contains( stringGroup ) ) { QMessageBox::critical( this, "OdbcTest", QString( tr("Group (%1) already defined") ).arg( stringGroup ) ); pOdbcTest->pSettings->endGroup(); return; } pOdbcTest->pSettings->setValue( stringGroup, "Installed" ); pOdbcTest->pSettings->endGroup(); // create the group itself (it is just an empty section)... // pOdbcTest->pSettings->setValue( stringGroup ); // update the UI... parent_test->group->addItem( stringGroup ); parent_test->group->setCurrentIndex( parent_test->group->count() - 1 ); parent_test->Activated( stringGroup ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/conn.cpp0000644000175000001440000050070411506076311014673 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "conn.h" #include "DlgDbcConnect.h" #include "OdbcTest.h" static attr_options gf_options[] = { { "SQL_API_ODBC3_ALL_FUNCTIONS", SQL_API_ODBC3_ALL_FUNCTIONS, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_API_ALL_FUNCTIONS", SQL_API_ALL_FUNCTIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLALLOCCONNECT", SQL_API_SQLALLOCCONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLALLOCENV", SQL_API_SQLALLOCENV, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLALLOCHANDLESTD", SQL_API_SQLALLOCHANDLESTD, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLALLOCSTMT", SQL_API_SQLALLOCSTMT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLBINDCOL", SQL_API_SQLBINDCOL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLBINDPARAMETER", SQL_API_SQLBINDPARAMETER, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLBROWSECONNECT", SQL_API_SQLBROWSECONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLBULKOPERATIONS", SQL_API_SQLBULKOPERATIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCANCEL", SQL_API_SQLCANCEL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCOLATTRIBUTE", SQL_API_SQLCOLATTRIBUTE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCOLATTRIBUTES", SQL_API_SQLCOLATTRIBUTES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCOLUMNPRIVILEGES", SQL_API_SQLCOLUMNPRIVILEGES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCOLUMNS", SQL_API_SQLCOLUMNS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCONNECT", SQL_API_SQLCONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDATASOURCES", SQL_API_SQLDATASOURCES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDESCRIBECOL", SQL_API_SQLDESCRIBECOL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDESCRIBEPARAM", SQL_API_SQLDESCRIBEPARAM, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDISCONNECT", SQL_API_SQLDISCONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDRIVERCONNECT", SQL_API_SQLDRIVERCONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLDRIVERS", SQL_API_SQLDRIVERS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLERROR", SQL_API_SQLERROR, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLEXECDIRECT", SQL_API_SQLEXECDIRECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLEXECUTE", SQL_API_SQLEXECUTE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLEXTENDEDFETCH", SQL_API_SQLEXTENDEDFETCH, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFETCH", SQL_API_SQLFETCH, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFOREIGNKEYS", SQL_API_SQLFOREIGNKEYS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFREECONNECT", SQL_API_SQLFREECONNECT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFREEENV", SQL_API_SQLFREEENV, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFREESTMT", SQL_API_SQLFREESTMT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETCONNECTOPTION", SQL_API_SQLGETCONNECTOPTION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETCURSORNAME", SQL_API_SQLGETCURSORNAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETDATA", SQL_API_SQLGETDATA, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETFUNCTIONS", SQL_API_SQLGETFUNCTIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETINFO", SQL_API_SQLGETINFO, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETSTMTOPTION", SQL_API_SQLGETSTMTOPTION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETTYPEINFO", SQL_API_SQLGETTYPEINFO, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLMORERESULTS", SQL_API_SQLMORERESULTS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLNATIVESQL", SQL_API_SQLNATIVESQL, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLNUMPARAMS", SQL_API_SQLNUMPARAMS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLNUMRESULTCOLS", SQL_API_SQLNUMRESULTCOLS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPARAMDATA", SQL_API_SQLPARAMDATA, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPARAMOPTIONS", SQL_API_SQLPARAMOPTIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPREPARE", SQL_API_SQLPREPARE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPRIMARYKEYS", SQL_API_SQLPRIMARYKEYS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPROCEDURECOLUMNS", SQL_API_SQLPROCEDURECOLUMNS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPROCEDURES", SQL_API_SQLPROCEDURES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLPUTDATA", SQL_API_SQLPUTDATA, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLROWCOUNT", SQL_API_SQLROWCOUNT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETCONNECTOPTION", SQL_API_SQLSETCONNECTOPTION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETCURSORNAME", SQL_API_SQLSETCURSORNAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETPARAM", SQL_API_SQLSETPARAM, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETPOS", SQL_API_SQLSETPOS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETSCROLLOPTIONS", SQL_API_SQLSETSCROLLOPTIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETSTMTOPTION", SQL_API_SQLSETSTMTOPTION, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSPECIALCOLUMNS", SQL_API_SQLSPECIALCOLUMNS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSTATISTICS", SQL_API_SQLSTATISTICS, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLTABLEPRIVILEGES", SQL_API_SQLTABLEPRIVILEGES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLTABLES", SQL_API_SQLTABLES, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLTRANSACT", SQL_API_SQLTRANSACT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLALLOCHANDLE", SQL_API_SQLALLOCHANDLE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLBINDPARAM", SQL_API_SQLBINDPARAM, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCLOSECURSOR", SQL_API_SQLCLOSECURSOR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLCOPYDESC", SQL_API_SQLCOPYDESC, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLENDTRAN", SQL_API_SQLENDTRAN, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFETCHSCROLL", SQL_API_SQLFETCHSCROLL, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLFREEHANDLE", SQL_API_SQLFREEHANDLE, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETCONNECTATTR", SQL_API_SQLGETCONNECTATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETDESCFIELD", SQL_API_SQLGETDESCFIELD, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETDESCREC", SQL_API_SQLGETDESCREC, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETDIAGFIELD", SQL_API_SQLGETDIAGFIELD, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETDIAGREC", SQL_API_SQLGETDIAGREC, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETENVATTR", SQL_API_SQLGETENVATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLGETSTMTATTR", SQL_API_SQLGETSTMTATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETCONNECTATTR", SQL_API_SQLSETCONNECTATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETDESCFIELD", SQL_API_SQLSETDESCFIELD, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETDESCREC", SQL_API_SQLSETDESCREC, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETENVATTR", SQL_API_SQLSETENVATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, {"SQL_API_SQLSETSTMTATTR", SQL_API_SQLSETSTMTATTR, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options dc_options[] = { { "SQL_DRIVER_COMPLETE", SQL_DRIVER_COMPLETE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_NOPROMPT", SQL_DRIVER_NOPROMPT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_COMPLETE", SQL_DRIVER_COMPLETE, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_COMPLETE_REQUIRED", SQL_DRIVER_COMPLETE_REQUIRED, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; static attr_options info_options[] = { { "SQL_ACCESSIBLE_PROCEDURES", SQL_ACCESSIBLE_PROCEDURES, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_ACCESSIBLE_TABLES", SQL_ACCESSIBLE_TABLES, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_ACTIVE_ENVIRONMENTS", SQL_ACTIVE_ENVIRONMENTS, { { NULL, 0, NULL, 0} }, "3.0", SQL_SMALLINT, 0, 0 }, { "SQL_AGGREGATE_FUNCTIONS", SQL_AGGREGATE_FUNCTIONS, { { "SQL_AF_ALL", SQL_AF_ALL, NULL, 0}, { "SQL_AF_AVG", SQL_AF_AVG, NULL, 0}, { "SQL_AF_COUNT", SQL_AF_COUNT, NULL, 0}, { "SQL_AF_DISTINCT", SQL_AF_DISTINCT,NULL, 0}, { "SQL_AF_MAX", SQL_AF_MAX, NULL, 0}, { "SQL_AF_MIN", SQL_AF_MIN, NULL, 0}, { "SQL_AF_SUM", SQL_AF_SUM, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_ALTER_DOMAIN", SQL_ALTER_DOMAIN, { { "SQL_AD_ADD_DOMAIN_CONSTRAINT", SQL_AD_ADD_DOMAIN_CONSTRAINT, NULL, 0}, { "SQL_AD_ADD_DOMAIN_DEFAULT", SQL_AD_ADD_DOMAIN_DEFAULT, NULL, 0}, { "SQL_AD_CONSTRAINT_NAME_DEFINITION", SQL_AD_CONSTRAINT_NAME_DEFINITION, NULL, 0}, { "SQL_AD_DROP_DOMAIN_CONSTRAINT", SQL_AD_DROP_DOMAIN_CONSTRAINT, NULL, 0}, { "SQL_AD_DROP_DOMAIN_DEFAULT", SQL_AD_DROP_DOMAIN_DEFAULT, NULL, 0}, { "SQL_AD_ADD_CONSTRAINT_DEFERRABLE", SQL_AD_ADD_CONSTRAINT_DEFERRABLE, NULL, 0}, { "SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE", SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE, NULL, 0}, { "SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED", SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED, NULL, 0}, { "SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE", SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_ALTER_TABLE", SQL_ALTER_TABLE, { { "SQL_AT_ADD_COLUMN_COLLATION", SQL_AT_ADD_COLUMN_COLLATION, NULL, 0}, { "SQL_AT_ADD_COLUMN_DEFAULT", SQL_AT_ADD_COLUMN_DEFAULT, NULL, 0}, { "SQL_AT_ADD_COLUMN_SINGLE", SQL_AT_ADD_COLUMN_SINGLE, NULL, 0}, { "SQL_AT_ADD_CONSTRAINT", SQL_AT_ADD_CONSTRAINT, NULL, 0}, { "SQL_AT_ADD_TABLE_CONSTRAINT", SQL_AT_ADD_TABLE_CONSTRAINT, NULL, 0}, { "SQL_AT_CONSTRAINT_NAME_DEFINITION", SQL_AT_CONSTRAINT_NAME_DEFINITION, NULL, 0}, { "SQL_AT_DROP_COLUMN_CASCADE", SQL_AT_DROP_COLUMN_CASCADE, NULL, 0}, { "SQL_AT_DROP_COLUMN_DEFAULT", SQL_AT_DROP_COLUMN_DEFAULT, NULL, 0}, { "SQL_AT_DROP_COLUMN_RESTRICT", SQL_AT_DROP_COLUMN_RESTRICT, NULL, 0}, { "SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE", SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE, NULL, 0}, { "SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT", SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT, NULL, 0}, { "SQL_AT_SET_COLUMN_DEFAULT", SQL_AT_SET_COLUMN_DEFAULT, NULL, 0}, { "SQL_AT_CONSTRAINT_INITIALLY_DEFERRED", SQL_AT_CONSTRAINT_INITIALLY_DEFERRED, NULL, 0}, { "SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE", SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE, NULL, 0}, { "SQL_AT_CONSTRAINT_DEFERRABLE", SQL_AT_CONSTRAINT_DEFERRABLE, NULL, 0}, { "SQL_AT_CONSTRAINT_NON_DEFERRABLE", SQL_AT_CONSTRAINT_NON_DEFERRABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_ASYNC_MODE", SQL_ASYNC_MODE, { { "SQL_AM_CONNECTION", SQL_AM_CONNECTION, NULL, 0}, { "SQL_AM_STATEMENT", SQL_AM_STATEMENT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_BATCH_ROW_COUNT", SQL_BATCH_ROW_COUNT, { { "SQL_BRC_ROLLED_UP", SQL_BRC_ROLLED_UP, NULL, 0}, { "SQL_BRC_PROCEDURES", SQL_BRC_PROCEDURES, NULL, 0}, { "SQL_BRC_EXPLICIT", SQL_BRC_EXPLICIT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_BATCH_SUPPORT", SQL_BATCH_SUPPORT, { { "SQL_BS_SELECT_EXPLI|CIT", SQL_BS_SELECT_EXPLICIT, NULL, 0}, { "SQL_BS_ROW_COUNT_EXPLICIT", SQL_BS_ROW_COUNT_EXPLICIT, NULL, 0}, { "SQL_BS_SELECT_PROC", SQL_BS_SELECT_PROC, NULL, 0}, { "SQL_BS_ROW_COUNT_PROC", SQL_BS_ROW_COUNT_PROC, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_BOOKMARK_PERSISTENCE", SQL_BOOKMARK_PERSISTENCE, { { "SQL_BP_CLOSE", SQL_BP_CLOSE, NULL, 0}, { "SQL_BP_DELETE", SQL_BP_DELETE, NULL, 0}, { "SQL_BP_DROP", SQL_BP_DROP, NULL, 0}, { "SQL_BP_TRANSACTION", SQL_BP_TRANSACTION, NULL, 0}, { "SQL_BP_UPDATE", SQL_BP_UPDATE, NULL, 0}, { "SQL_BP_OTHER_HSTMT", SQL_BP_OTHER_HSTMT, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CATALOG_LOCATION", SQL_CATALOG_LOCATION, { { "SQL_CL_START", SQL_CL_START, NULL, 0}, { "SQL_CL_END", SQL_CL_END, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_CATALOG_NAME", SQL_CATALOG_NAME, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_CATALOG_NAME_SEPARATOR", SQL_CATALOG_NAME_SEPARATOR, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_CATALOG_TERM", SQL_CATALOG_TERM, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_CATALOG_USAGE", SQL_CATALOG_USAGE, { { "SQL_CU_DML_STATEMENTS", SQL_CU_DML_STATEMENTS, NULL, 0}, { "SQL_CU_PROCEDURE_INVOCATION", SQL_CU_PROCEDURE_INVOCATION, NULL, 0}, { "SQL_CU_TABLE_DEFINITION", SQL_CU_TABLE_DEFINITION, NULL, 0}, { "SQL_CU_INDEX_DEFINITION", SQL_CU_INDEX_DEFINITION, NULL, 0}, { "SQL_CU_PRIVILEGE_DEFINITION", SQL_CU_PRIVILEGE_DEFINITION, NULL, 0}, { "SQL_CL_END", SQL_CL_END, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_COLLATION_SEQ", SQL_COLLATION_SEQ, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_COLUMN_ALIAS", SQL_COLUMN_ALIAS, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_ODBC_API_CONFORMANCE", SQL_ODBC_API_CONFORMANCE, { { "SQL_OAC_NONE", SQL_OAC_NONE, NULL, 0}, { "SQL_OAC_LEVEL1", SQL_OAC_LEVEL1, NULL, 0}, { "SQL_OAC_LEVEL2", SQL_OAC_LEVEL2, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ODBC_SAG_CLI_CONFORMANCE", SQL_ODBC_SAG_CLI_CONFORMANCE, { { "SQL_OSCC_NOT_COMPLIANT", SQL_OSCC_NOT_COMPLIANT, NULL, 0}, { "SQL_OSCC_COMPLIANT", SQL_OSCC_COMPLIANT, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_ODBC_SQL_CONFORMANCE", SQL_ODBC_SQL_CONFORMANCE, { { "SQL_OSC_MINIMUM", SQL_OSC_MINIMUM, NULL, 0}, { "SQL_OSC_CORE", SQL_OSC_CORE, NULL, 0}, { "SQL_OSC_EXTENDED", SQL_OSC_EXTENDED, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_CONCAT_NULL_BEHAVIOR", SQL_CONCAT_NULL_BEHAVIOR, { { "SQL_CB_NULL", SQL_CB_NULL, NULL, 0}, { "SQL_CB_NON_NULL", SQL_CB_NON_NULL, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_CONVERT_BIGINT", SQL_CONVERT_BIGINT, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_BINARY", SQL_CONVERT_BINARY, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_BIT", SQL_CONVERT_BIT, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_CHAR", SQL_CONVERT_CHAR, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_DATE", SQL_CONVERT_DATE, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_DECIMAL", SQL_CONVERT_DECIMAL, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_DOUBLE", SQL_CONVERT_DOUBLE, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_FLOAT", SQL_CONVERT_FLOAT, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_INTEGER", SQL_CONVERT_INTEGER, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_INTERVAL_YEAR_MONTH", SQL_CONVERT_INTERVAL_YEAR_MONTH, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_INTERVAL_DAY_TIME", SQL_CONVERT_INTERVAL_DAY_TIME, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_LONGVARBINARY", SQL_CONVERT_LONGVARBINARY, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_LONGVARCHAR", SQL_CONVERT_LONGVARCHAR, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_NUMERIC", SQL_CONVERT_NUMERIC, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_REAL", SQL_CONVERT_REAL, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_SMALLINT", SQL_CONVERT_SMALLINT, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_TIME", SQL_CONVERT_TIME, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_TIMESTAMP", SQL_CONVERT_TIMESTAMP, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_TINYINT", SQL_CONVERT_TINYINT, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_VARBINARY", SQL_CONVERT_VARBINARY, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_VARCHAR", SQL_CONVERT_VARCHAR, { { "SQL_CVT_BIGINT", SQL_CVT_BIGINT, NULL, 0}, { "SQL_CVT_BINARY", SQL_CVT_BINARY, NULL, 0}, { "SQL_CVT_BIT", SQL_CVT_BIT, NULL, 0}, { "SQL_CVT_CHAR", SQL_CVT_CHAR, NULL, 0}, { "SQL_CVT_DATE", SQL_CVT_DATE, NULL, 0}, { "SQL_CVT_DECIMAL", SQL_CVT_DECIMAL, NULL, 0}, { "SQL_CVT_DOUBLE", SQL_CVT_DOUBLE, NULL, 0}, { "SQL_CVT_FLOAT", SQL_CVT_FLOAT, NULL, 0}, { "SQL_CVT_INTEGER", SQL_CVT_INTEGER, NULL, 0}, { "SQL_CVT_INTERVAL_YEAR_MONTH", SQL_CVT_INTERVAL_YEAR_MONTH, NULL, 0}, { "SQL_CVT_INTERVAL_DAY_TIME", SQL_CVT_INTERVAL_DAY_TIME, NULL, 0}, { "SQL_CVT_LONGVARBINARY", SQL_CVT_LONGVARBINARY, NULL, 0}, { "SQL_CVT_LONGVARCHAR", SQL_CVT_LONGVARCHAR, NULL, 0}, { "SQL_CVT_NUMERIC", SQL_CVT_NUMERIC, NULL, 0}, { "SQL_CVT_REAL", SQL_CVT_REAL, NULL, 0}, { "SQL_CVT_SMALLINT", SQL_CVT_SMALLINT, NULL, 0}, { "SQL_CVT_TIME", SQL_CVT_TIME, NULL, 0}, { "SQL_CVT_TIMESTAMP", SQL_CVT_TIMESTAMP, NULL, 0}, { "SQL_CVT_TINYINT", SQL_CVT_TINYINT, NULL, 0}, { "SQL_CVT_VARBINARY", SQL_CVT_VARBINARY, NULL, 0}, { "SQL_CVT_VARCHAR", SQL_CVT_VARCHAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CONVERT_FUNCTIONS", SQL_CONVERT_FUNCTIONS, { { "SQL_FN_CVT_CAST", SQL_FN_CVT_CAST, NULL, 0}, { "SQL_FN_CVT_CONVERT", SQL_FN_CVT_CONVERT, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CORRELATION_NAME", SQL_CORRELATION_NAME, { { "SQL_CN_NONE", SQL_CN_NONE, NULL, 0}, { "SQL_CN_DIFFERENT", SQL_CN_DIFFERENT, NULL, 0}, { "SQL_CN_ANY", SQL_CN_ANY, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_CREATE_ASSERTION", SQL_CREATE_ASSERTION, { { "SQL_CA_CREATE_ASSERTION", SQL_CA_CREATE_ASSERTION, NULL, 0}, { "SQL_CA_CONSTRAINT_INITIALLY_DEFERRED", SQL_CA_CONSTRAINT_INITIALLY_DEFERRED, NULL, 0}, { "SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE", SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE, NULL, 0}, { "SQL_CA_CONSTRAINT_DEFERRABLE", SQL_CA_CONSTRAINT_DEFERRABLE, NULL, 0}, { "SQL_CA_CONSTRAINT_NON_DEFERRABLE", SQL_CA_CONSTRAINT_NON_DEFERRABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_CHARACTER_SET", SQL_CREATE_CHARACTER_SET, { { "SQL_CCS_CREATE_CHARACTER_SET", SQL_CCS_CREATE_CHARACTER_SET, NULL, 0}, { "SQL_CCS_COLLATE_CLAUSE", SQL_CCS_COLLATE_CLAUSE, NULL, 0}, { "SQL_CCS_LIMITED_COLLATION", SQL_CCS_LIMITED_COLLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_COLLATION", SQL_CREATE_COLLATION, { { "SQL_CCOL_CREATE_COLLATION", SQL_CCOL_CREATE_COLLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_DOMAIN", SQL_CREATE_DOMAIN, { { "SQL_CDO_CREATE_DOMAIN", SQL_CDO_CREATE_DOMAIN, NULL, 0}, { "SQL_CDO_CONSTRAINT_NAME_DEFINITION", SQL_CDO_CONSTRAINT_NAME_DEFINITION, NULL, 0}, { "SQL_CDO_DEFAULT", SQL_CDO_DEFAULT, NULL, 0}, { "SQL_CDO_CONSTRAINT", SQL_CDO_CONSTRAINT, NULL, 0}, { "SQL_CDO_COLLATION", SQL_CDO_COLLATION, NULL, 0}, { "SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED", SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED, NULL, 0}, { "SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE", SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE, NULL, 0}, { "SQL_CDO_CONSTRAINT_DEFERRABLE", SQL_CDO_CONSTRAINT_DEFERRABLE, NULL, 0}, { "SQL_CDO_CONSTRAINT_NON_DEFERRABLE", SQL_CDO_CONSTRAINT_NON_DEFERRABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_SCHEMA", SQL_CREATE_SCHEMA, { { "SQL_CS_CREATE_SCHEMA", SQL_CS_CREATE_SCHEMA, NULL, 0}, { "SQL_CS_AUTHORIZATION", SQL_CS_AUTHORIZATION, NULL, 0}, { "SQL_CS_DEFAULT_CHARACTER_SET", SQL_CS_DEFAULT_CHARACTER_SET, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_TABLE", SQL_CREATE_TABLE, { { "SQL_CT_CREATE_TABLE", SQL_CT_CREATE_TABLE, NULL, 0}, { "SQL_CT_TABLE_CONSTRAINT", SQL_CT_TABLE_CONSTRAINT, NULL, 0}, { "SQL_CT_CONSTRAINT_NAME_DEFINITION", SQL_CT_CONSTRAINT_NAME_DEFINITION, NULL, 0}, { "SQL_CT_COMMIT_PRESERVE", SQL_CT_COMMIT_PRESERVE, NULL, 0}, { "SQL_CT_COMMIT_DELETE", SQL_CT_COMMIT_DELETE, NULL, 0}, { "SQL_CT_GLOBAL_TEMPORARY", SQL_CT_GLOBAL_TEMPORARY, NULL, 0}, { "SQL_CT_LOCAL_TEMPORARY", SQL_CT_LOCAL_TEMPORARY, NULL, 0}, { "SQL_CT_COLUMN_CONSTRAINT", SQL_CT_COLUMN_CONSTRAINT, NULL, 0}, { "SQL_CT_COLUMN_DEFAULT", SQL_CT_COLUMN_DEFAULT, NULL, 0}, { "SQL_CT_COLUMN_COLLATION", SQL_CT_COLUMN_COLLATION, NULL, 0}, { "SQL_CT_CONSTRAINT_INITIALLY_DEFERRED", SQL_CT_CONSTRAINT_INITIALLY_DEFERRED, NULL, 0}, { "SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE", SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE, NULL, 0}, { "SQL_CT_CONSTRAINT_DEFERRABLE", SQL_CT_CONSTRAINT_DEFERRABLE, NULL, 0}, { "SQL_CT_CONSTRAINT_NON_DEFERRABLE", SQL_CT_CONSTRAINT_NON_DEFERRABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_TRANSLATION", SQL_CREATE_TRANSLATION, { { "SQL_CTR_CREATE_TRANSLATION", SQL_CTR_CREATE_TRANSLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_CREATE_VIEW", SQL_CREATE_VIEW, { { "SQL_CV_CREATE_VIEW", SQL_CV_CREATE_VIEW, NULL, 0}, { "SQL_CV_CHECK_OPTION", SQL_CV_CHECK_OPTION, NULL, 0}, { "SQL_CV_CASCADED", SQL_CV_CASCADED, NULL, 0}, { "SQL_CV_LOCAL", SQL_CV_LOCAL, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, TRUE, 0 }, { "SQL_CURSOR_COMMIT_BEHAVIOR", SQL_CURSOR_COMMIT_BEHAVIOR, { { "SQL_CB_DELETE", SQL_CB_DELETE, NULL, 0}, { "SQL_CB_CLOSE", SQL_CB_CLOSE, NULL, 0}, { "SQL_CB_PRESERVE", SQL_CB_PRESERVE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_CURSOR_ROLLBACK_BEHAVIOR", SQL_CURSOR_ROLLBACK_BEHAVIOR, { { "SQL_CB_DELETE", SQL_CB_DELETE, NULL, 0}, { "SQL_CB_CLOSE", SQL_CB_CLOSE, NULL, 0}, { "SQL_CB_PRESERVE", SQL_CB_PRESERVE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_CURSOR_SENSITIVITY", SQL_CURSOR_SENSITIVITY, { { "SQL_INSENSITIVE", SQL_INSENSITIVE, NULL, 0}, { "SQL_UNSPECIFIED", SQL_UNSPECIFIED, NULL, 0}, { "SQL_SENSITIVE", SQL_SENSITIVE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DATA_SOURCE_NAME", SQL_DATA_SOURCE_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DATA_SOURCE_READ_ONLY", SQL_DATA_SOURCE_READ_ONLY, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DATABASE_NAME", SQL_DATABASE_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DATETIME_LITERALS", SQL_DATETIME_LITERALS, { { "SQL_DL_SQL92_DATE", SQL_DL_SQL92_DATE, NULL, 0}, { "SQL_DL_SQL92_TIME", SQL_DL_SQL92_TIME, NULL, 0}, { "SQL_DL_SQL92_TIMESTAMP", SQL_DL_SQL92_TIMESTAMP, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_YEAR", SQL_DL_SQL92_INTERVAL_YEAR, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_MONTH", SQL_DL_SQL92_INTERVAL_MONTH, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_DAY", SQL_DL_SQL92_INTERVAL_DAY, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_HOUR", SQL_DL_SQL92_INTERVAL_HOUR, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_MINUTE", SQL_DL_SQL92_INTERVAL_MINUTE, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_SECOND", SQL_DL_SQL92_INTERVAL_SECOND, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH", SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR", SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE", SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND", SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE", SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND", SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND, NULL, 0}, { "SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND", SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DBMS_NAME", SQL_DBMS_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DBMS_VER", SQL_DBMS_VER, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DDL_INDEX", SQL_DDL_INDEX, { { "SQL_DI_CREATE_INDEX", SQL_DI_CREATE_INDEX, NULL, 0}, { "SQL_DI_DROP_INDEX", SQL_DI_DROP_INDEX, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DEFAULT_TXN_ISOLATION", SQL_DEFAULT_TXN_ISOLATION, { { "SQL_TXN_READ_UNCOMMITTED", SQL_TXN_READ_UNCOMMITTED, NULL, 0}, { "SQL_TXN_READ_COMMITTED", SQL_TXN_READ_COMMITTED, NULL, 0}, { "SQL_TXN_REPEATABLE_READ", SQL_TXN_REPEATABLE_READ, NULL, 0}, { "SQL_TXN_SERIALIZABLE", SQL_TXN_SERIALIZABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DESCRIBE_PARAMETER", SQL_DESCRIBE_PARAMETER, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DM_VER", SQL_DM_VER, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DRIVER_HDBC", SQL_DRIVER_HDBC, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_HENV", SQL_DRIVER_HENV, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_HDESC", SQL_DRIVER_HDESC, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_HLIB", SQL_DRIVER_HLIB, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_HSTMT", SQL_DRIVER_HSTMT, { { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, 0, 0 }, { "SQL_DRIVER_NAME", SQL_DRIVER_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DRIVER_ODBC_VER", SQL_DRIVER_ODBC_VER, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_DRIVER_VER", SQL_DRIVER_VER, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_DROP_ASSERTION", SQL_DROP_ASSERTION, { { "SQL_DA_DROP_ASSERTION", SQL_DA_DROP_ASSERTION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_CHARACTER_SET", SQL_DROP_CHARACTER_SET, { { "SQL_DCS_DROP_CHARACTER_SET", SQL_DCS_DROP_CHARACTER_SET, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_COLLATION", SQL_DROP_COLLATION, { { "SQL_DC_DROP_COLLATION", SQL_DC_DROP_COLLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_DOMAIN", SQL_DROP_DOMAIN, { { "SQL_DD_DROP_DOMAIN", SQL_DD_DROP_DOMAIN, NULL, 0}, { "SQL_DD_CASCADE", SQL_DD_CASCADE, NULL, 0}, { "SQL_DD_RESTRICT", SQL_DD_RESTRICT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_SCHEMA", SQL_DROP_SCHEMA, { { "SQL_DS_DROP_SCHEMA", SQL_DS_DROP_SCHEMA, NULL, 0}, { "SQL_DS_CASCADE", SQL_DS_CASCADE, NULL, 0}, { "SQL_DS_RESTRICT", SQL_DS_RESTRICT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_TABLE", SQL_DROP_TABLE, { { "SQL_DT_DROP_TABLE", SQL_DT_DROP_TABLE, NULL, 0}, { "SQL_DT_CASCADE", SQL_DT_CASCADE, NULL, 0}, { "SQL_DT_RESTRICT", SQL_DT_RESTRICT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_TRANSLATION", SQL_DROP_TRANSLATION, { { "SQL_DTR_DROP_TRANSLATION", SQL_DTR_DROP_TRANSLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DROP_VIEW", SQL_DROP_VIEW, { { "SQL_DV_DROP_VIEW", SQL_DV_DROP_VIEW, NULL, 0}, { "SQL_DV_CASCADE", SQL_DV_CASCADE, NULL, 0}, { "SQL_DV_RESTRICT", SQL_DV_RESTRICT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DYNAMIC_CURSOR_ATTRIBUTES1", SQL_DYNAMIC_CURSOR_ATTRIBUTES1, { { "SQL_CA1_NEXT", SQL_CA1_NEXT, NULL, 0}, { "SQL_CA1_ABSOLUTE", SQL_CA1_ABSOLUTE, NULL, 0}, { "SQL_CA1_RELATIVE", SQL_CA1_RELATIVE, NULL, 0}, { "SQL_CA1_BOOKMARK", SQL_CA1_BOOKMARK, NULL, 0}, { "SQL_CA1_LOCK_EXCLUSIVE", SQL_CA1_LOCK_EXCLUSIVE, NULL, 0}, { "SQL_CA1_LOCK_NO_CHANGE", SQL_CA1_LOCK_NO_CHANGE, NULL, 0}, { "SQL_CA1_LOCK_UNLOCK", SQL_CA1_LOCK_UNLOCK, NULL, 0}, { "SQL_CA1_POS_POSITION", SQL_CA1_POS_POSITION, NULL, 0}, { "SQL_CA1_POS_UPDATE", SQL_CA1_POS_UPDATE, NULL, 0}, { "SQL_CA1_POS_DELETE", SQL_CA1_POS_DELETE, NULL, 0}, { "SQL_CA1_POS_REFRESH", SQL_CA1_POS_REFRESH, NULL, 0}, { "SQL_CA1_POSITIONED_UPDATE", SQL_CA1_POSITIONED_UPDATE, NULL, 0}, { "SQL_CA1_POSITIONED_DELETE", SQL_CA1_POSITIONED_DELETE, NULL, 0}, { "SQL_CA1_SELECT_FOR_UPDATE", SQL_CA1_SELECT_FOR_UPDATE, NULL, 0}, { "SQL_CA1_BULK_ADD", SQL_CA1_BULK_ADD, NULL, 0}, { "SQL_CA1_BULK_UPDATE_BY_BOOKMARK", SQL_CA1_BULK_UPDATE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_DELETE_BY_BOOKMARK", SQL_CA1_BULK_DELETE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_FETCH_BY_BOOKMARK", SQL_CA1_BULK_FETCH_BY_BOOKMARK, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_DYNAMIC_CURSOR_ATTRIBUTES2", SQL_DYNAMIC_CURSOR_ATTRIBUTES2, { { "SQL_CA2_READ_ONLY_CONCURRENCY", SQL_CA2_READ_ONLY_CONCURRENCY, NULL, 0}, { "SQL_CA2_LOCK_CONCURRENCY", SQL_CA2_LOCK_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_ROWVER_CONCURRENCY", SQL_CA2_OPT_ROWVER_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_VALUES_CONCURRENCY", SQL_CA2_OPT_VALUES_CONCURRENCY, NULL, 0}, { "SQL_CA2_SENSITIVITY_ADDITIONS", SQL_CA2_SENSITIVITY_ADDITIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_DELETIONS", SQL_CA2_SENSITIVITY_DELETIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_UPDATES", SQL_CA2_SENSITIVITY_UPDATES, NULL, 0}, { "SQL_CA2_MAX_ROWS_SELECT", SQL_CA2_MAX_ROWS_SELECT, NULL, 0}, { "SQL_CA2_MAX_ROWS_INSERT", SQL_CA2_MAX_ROWS_INSERT, NULL, 0}, { "SQL_CA2_MAX_ROWS_DELETE", SQL_CA2_MAX_ROWS_DELETE, NULL, 0}, { "SQL_CA2_MAX_ROWS_UPDATE", SQL_CA2_MAX_ROWS_UPDATE, NULL, 0}, { "SQL_CA2_MAX_ROWS_CATALOG", SQL_CA2_MAX_ROWS_CATALOG, NULL, 0}, { "SQL_CA2_MAX_ROWS_AFFECTS_ALL", SQL_CA2_MAX_ROWS_AFFECTS_ALL, NULL, 0}, { "SQL_CA2_CRC_EXACT", SQL_CA2_CRC_EXACT, NULL, 0}, { "SQL_CA2_CRC_APPROXIMATE", SQL_CA2_CRC_APPROXIMATE, NULL, 0}, { "SQL_CA2_SIMULATE_NON_UNIQUE", SQL_CA2_SIMULATE_NON_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_TRY_UNIQUE", SQL_CA2_SIMULATE_TRY_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_UNIQUE", SQL_CA2_SIMULATE_UNIQUE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_EXPRESSIONS_IN_ORDERBY", SQL_EXPRESSIONS_IN_ORDERBY, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_FILE_USAGE", SQL_FILE_USAGE, { { "SQL_FILE_NOT_SUPPORTED", SQL_FILE_NOT_SUPPORTED, NULL, 0}, { "SQL_FILE_TABLE", SQL_FILE_TABLE, NULL, 0}, { "SQL_FILE_CATALOG", SQL_FILE_CATALOG, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1", SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1, { { "SQL_CA1_NEXT", SQL_CA1_NEXT, NULL, 0}, { "SQL_CA1_LOCK_EXCLUSIVE", SQL_CA1_LOCK_EXCLUSIVE, NULL, 0}, { "SQL_CA1_LOCK_NO_CHANGE", SQL_CA1_LOCK_NO_CHANGE, NULL, 0}, { "SQL_CA1_LOCK_UNLOCK", SQL_CA1_LOCK_UNLOCK, NULL, 0}, { "SQL_CA1_POS_POSITION", SQL_CA1_POS_POSITION, NULL, 0}, { "SQL_CA1_POS_UPDATE", SQL_CA1_POS_UPDATE, NULL, 0}, { "SQL_CA1_POS_DELETE", SQL_CA1_POS_DELETE, NULL, 0}, { "SQL_CA1_POS_REFRESH", SQL_CA1_POS_REFRESH, NULL, 0}, { "SQL_CA1_POSITIONED_UPDATE", SQL_CA1_POSITIONED_UPDATE, NULL, 0}, { "SQL_CA1_POSITIONED_DELETE", SQL_CA1_POSITIONED_DELETE, NULL, 0}, { "SQL_CA1_SELECT_FOR_UPDATE", SQL_CA1_SELECT_FOR_UPDATE, NULL, 0}, { "SQL_CA1_BULK_ADD", SQL_CA1_BULK_ADD, NULL, 0}, { "SQL_CA1_BULK_UPDATE_BY_BOOKMARK", SQL_CA1_BULK_UPDATE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_DELETE_BY_BOOKMARK", SQL_CA1_BULK_DELETE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_FETCH_BY_BOOKMARK", SQL_CA1_BULK_FETCH_BY_BOOKMARK, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2", SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2, { { "SQL_CA2_READ_ONLY_CONCURRENCY", SQL_CA2_READ_ONLY_CONCURRENCY, NULL, 0}, { "SQL_CA2_LOCK_CONCURRENCY", SQL_CA2_LOCK_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_ROWVER_CONCURRENCY", SQL_CA2_OPT_ROWVER_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_VALUES_CONCURRENCY", SQL_CA2_OPT_VALUES_CONCURRENCY, NULL, 0}, { "SQL_CA2_SENSITIVITY_ADDITIONS", SQL_CA2_SENSITIVITY_ADDITIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_DELETIONS", SQL_CA2_SENSITIVITY_DELETIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_UPDATES", SQL_CA2_SENSITIVITY_UPDATES, NULL, 0}, { "SQL_CA2_MAX_ROWS_SELECT", SQL_CA2_MAX_ROWS_SELECT, NULL, 0}, { "SQL_CA2_MAX_ROWS_INSERT", SQL_CA2_MAX_ROWS_INSERT, NULL, 0}, { "SQL_CA2_MAX_ROWS_DELETE", SQL_CA2_MAX_ROWS_DELETE, NULL, 0}, { "SQL_CA2_MAX_ROWS_UPDATE", SQL_CA2_MAX_ROWS_UPDATE, NULL, 0}, { "SQL_CA2_MAX_ROWS_CATALOG", SQL_CA2_MAX_ROWS_CATALOG, NULL, 0}, { "SQL_CA2_MAX_ROWS_AFFECTS_ALL", SQL_CA2_MAX_ROWS_AFFECTS_ALL, NULL, 0}, { "SQL_CA2_CRC_EXACT", SQL_CA2_CRC_EXACT, NULL, 0}, { "SQL_CA2_CRC_APPROXIMATE", SQL_CA2_CRC_APPROXIMATE, NULL, 0}, { "SQL_CA2_SIMULATE_NON_UNIQUE", SQL_CA2_SIMULATE_NON_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_TRY_UNIQUE", SQL_CA2_SIMULATE_TRY_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_UNIQUE", SQL_CA2_SIMULATE_UNIQUE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_GETDATA_EXTENSIONS", SQL_GETDATA_EXTENSIONS, { { "SQL_GD_ANY_COLUMN", SQL_GD_ANY_COLUMN, NULL, 0}, { "SQL_GD_ANY_ORDER", SQL_GD_ANY_ORDER, NULL, 0}, { "SQL_GD_BLOCK", SQL_GD_BLOCK, NULL, 0}, { "SQL_GD_BOUND", SQL_GD_BOUND, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_GROUP_BY", SQL_GROUP_BY, { { "SQL_GB_COLLATE", SQL_GB_COLLATE, NULL, 0}, { "SQL_GB_NOT_SUPPORTED", SQL_GB_NOT_SUPPORTED, NULL, 0}, { "SQL_GB_GROUP_BY_EQUALS_SELECT", SQL_GB_GROUP_BY_EQUALS_SELECT, NULL, 0}, { "SQL_GB_GROUP_BY_CONTAINS_SELECT", SQL_GB_GROUP_BY_CONTAINS_SELECT, NULL, 0}, { "SQL_GB_NO_RELATION", SQL_GB_NO_RELATION, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_IDENTIFIER_CASE", SQL_IDENTIFIER_CASE, { { "SQL_IC_UPPER", SQL_IC_UPPER, NULL, 0}, { "SQL_IC_LOWER", SQL_IC_LOWER, NULL, 0}, { "SQL_IC_SENSITIVE", SQL_IC_SENSITIVE, NULL, 0}, { "SQL_IC_MIXED", SQL_IC_MIXED, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_IDENTIFIER_QUOTE_CHAR", SQL_IDENTIFIER_QUOTE_CHAR, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_INDEX_KEYWORDS", SQL_INDEX_KEYWORDS, { { "SQL_IK_NONE", SQL_IK_NONE, NULL, 0}, { "SQL_IK_ASC", SQL_IK_ASC, NULL, 0}, { "SQL_IK_DESC", SQL_IK_DESC, NULL, 0}, { "SQL_IK_ALL", SQL_IK_ALL, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_INFO_SCHEMA_VIEWS", SQL_INFO_SCHEMA_VIEWS, { { "SQL_ISV_ASSERTIONS", SQL_ISV_ASSERTIONS, NULL, 0}, { "SQL_ISV_CHARACTER_SETS", SQL_ISV_CHARACTER_SETS, NULL, 0}, { "SQL_ISV_CHECK_CONSTRAINTS", SQL_ISV_CHECK_CONSTRAINTS, NULL, 0}, { "SQL_ISV_COLLATIONS", SQL_ISV_COLLATIONS, NULL, 0}, { "SQL_ISV_COLUMN_DOMAIN_USAGE", SQL_ISV_COLUMN_DOMAIN_USAGE, NULL, 0}, { "SQL_ISV_COLUMN_PRIVILEGES", SQL_ISV_COLUMN_PRIVILEGES, NULL, 0}, { "SQL_ISV_COLUMNS", SQL_ISV_COLUMNS, NULL, 0}, { "SQL_ISV_CONSTRAINT_COLUMN_USAGE", SQL_ISV_CONSTRAINT_COLUMN_USAGE, NULL, 0}, { "SQL_ISV_CONSTRAINT_TABLE_USAGE", SQL_ISV_CONSTRAINT_TABLE_USAGE, NULL, 0}, { "SQL_ISV_DOMAIN_CONSTRAINTS", SQL_ISV_DOMAIN_CONSTRAINTS, NULL, 0}, { "SQL_ISV_DOMAINS", SQL_ISV_DOMAINS, NULL, 0}, { "SQL_ISV_KEY_COLUMN_USAGE", SQL_ISV_KEY_COLUMN_USAGE, NULL, 0}, { "SQL_ISV_REFERENTIAL_CONSTRAINTS", SQL_ISV_REFERENTIAL_CONSTRAINTS, NULL, 0}, { "SQL_ISV_SCHEMATA", SQL_ISV_SCHEMATA, NULL, 0}, { "SQL_ISV_SQL_LANGUAGES", SQL_ISV_SQL_LANGUAGES, NULL, 0}, { "SQL_ISV_TABLE_CONSTRAINTS", SQL_ISV_TABLE_CONSTRAINTS, NULL, 0}, { "SQL_ISV_TABLE_PRIVILEGES", SQL_ISV_TABLE_PRIVILEGES, NULL, 0}, { "SQL_ISV_TABLES", SQL_ISV_TABLES, NULL, 0}, { "SQL_ISV_TRANSLATIONS", SQL_ISV_TRANSLATIONS, NULL, 0}, { "SQL_ISV_USAGE_PRIVILEGES", SQL_ISV_USAGE_PRIVILEGES, NULL, 0}, { "SQL_ISV_VIEW_COLUMN_USAGE", SQL_ISV_VIEW_COLUMN_USAGE, NULL, 0}, { "SQL_ISV_VIEW_TABLE_USAGE", SQL_ISV_VIEW_TABLE_USAGE, NULL, 0}, { "SQL_ISV_VIEWS", SQL_ISV_VIEWS, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_INSERT_STATEMENT", SQL_INSERT_STATEMENT, { { "SQL_IS_INSERT_LITERALS", SQL_IS_INSERT_LITERALS, NULL, 0}, { "SQL_IS_INSERT_SEARCHED", SQL_IS_INSERT_SEARCHED, NULL, 0}, { "SQL_IS_SELECT_INTO", SQL_IS_SELECT_INTO, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_INTEGRITY", SQL_INTEGRITY, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_KEYSET_CURSOR_ATTRIBUTES1", SQL_KEYSET_CURSOR_ATTRIBUTES1, { { "SQL_CA1_NEXT", SQL_CA1_NEXT, NULL, 0}, { "SQL_CA1_ABSOLUTE", SQL_CA1_ABSOLUTE, NULL, 0}, { "SQL_CA1_RELATIVE", SQL_CA1_RELATIVE, NULL, 0}, { "SQL_CA1_BOOKMARK", SQL_CA1_BOOKMARK, NULL, 0}, { "SQL_CA1_LOCK_EXCLUSIVE", SQL_CA1_LOCK_EXCLUSIVE, NULL, 0}, { "SQL_CA1_LOCK_NO_CHANGE", SQL_CA1_LOCK_NO_CHANGE, NULL, 0}, { "SQL_CA1_LOCK_UNLOCK", SQL_CA1_LOCK_UNLOCK, NULL, 0}, { "SQL_CA1_POS_POSITION", SQL_CA1_POS_POSITION, NULL, 0}, { "SQL_CA1_POS_UPDATE", SQL_CA1_POS_UPDATE, NULL, 0}, { "SQL_CA1_POS_DELETE", SQL_CA1_POS_DELETE, NULL, 0}, { "SQL_CA1_POS_REFRESH", SQL_CA1_POS_REFRESH, NULL, 0}, { "SQL_CA1_POSITIONED_UPDATE", SQL_CA1_POSITIONED_UPDATE, NULL, 0}, { "SQL_CA1_POSITIONED_DELETE", SQL_CA1_POSITIONED_DELETE, NULL, 0}, { "SQL_CA1_SELECT_FOR_UPDATE", SQL_CA1_SELECT_FOR_UPDATE, NULL, 0}, { "SQL_CA1_BULK_ADD", SQL_CA1_BULK_ADD, NULL, 0}, { "SQL_CA1_BULK_UPDATE_BY_BOOKMARK", SQL_CA1_BULK_UPDATE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_DELETE_BY_BOOKMARK", SQL_CA1_BULK_DELETE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_FETCH_BY_BOOKMARK", SQL_CA1_BULK_FETCH_BY_BOOKMARK, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_KEYSET_CURSOR_ATTRIBUTES2", SQL_KEYSET_CURSOR_ATTRIBUTES2, { { "SQL_CA2_READ_ONLY_CONCURRENCY", SQL_CA2_READ_ONLY_CONCURRENCY, NULL, 0}, { "SQL_CA2_LOCK_CONCURRENCY", SQL_CA2_LOCK_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_ROWVER_CONCURRENCY", SQL_CA2_OPT_ROWVER_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_VALUES_CONCURRENCY", SQL_CA2_OPT_VALUES_CONCURRENCY, NULL, 0}, { "SQL_CA2_SENSITIVITY_ADDITIONS", SQL_CA2_SENSITIVITY_ADDITIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_DELETIONS", SQL_CA2_SENSITIVITY_DELETIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_UPDATES", SQL_CA2_SENSITIVITY_UPDATES, NULL, 0}, { "SQL_CA2_MAX_ROWS_SELECT", SQL_CA2_MAX_ROWS_SELECT, NULL, 0}, { "SQL_CA2_MAX_ROWS_INSERT", SQL_CA2_MAX_ROWS_INSERT, NULL, 0}, { "SQL_CA2_MAX_ROWS_DELETE", SQL_CA2_MAX_ROWS_DELETE, NULL, 0}, { "SQL_CA2_MAX_ROWS_UPDATE", SQL_CA2_MAX_ROWS_UPDATE, NULL, 0}, { "SQL_CA2_MAX_ROWS_CATALOG", SQL_CA2_MAX_ROWS_CATALOG, NULL, 0}, { "SQL_CA2_MAX_ROWS_AFFECTS_ALL", SQL_CA2_MAX_ROWS_AFFECTS_ALL, NULL, 0}, { "SQL_CA2_CRC_EXACT", SQL_CA2_CRC_EXACT, NULL, 0}, { "SQL_CA2_CRC_APPROXIMATE", SQL_CA2_CRC_APPROXIMATE, NULL, 0}, { "SQL_CA2_SIMULATE_NON_UNIQUE", SQL_CA2_SIMULATE_NON_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_TRY_UNIQUE", SQL_CA2_SIMULATE_TRY_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_UNIQUE", SQL_CA2_SIMULATE_UNIQUE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_KEYWORDS", SQL_KEYWORDS, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_LIKE_ESCAPE_CLAUSE", SQL_LIKE_ESCAPE_CLAUSE, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_MAX_ASYNC_CONCURRENT_STATEMENTS", SQL_MAX_ASYNC_CONCURRENT_STATEMENTS, { { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_BINARY_LITERAL_LEN", SQL_MAX_BINARY_LITERAL_LEN, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_CATALOG_NAME_LEN", SQL_MAX_CATALOG_NAME_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_CHAR_LITERAL_LEN", SQL_MAX_CHAR_LITERAL_LEN, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_COLUMN_NAME_LEN", SQL_MAX_COLUMN_NAME_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_COLUMNS_IN_GROUP_BY", SQL_MAX_COLUMNS_IN_GROUP_BY, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_COLUMNS_IN_INDEX", SQL_MAX_COLUMNS_IN_INDEX, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_COLUMNS_IN_ORDER_BY", SQL_MAX_COLUMNS_IN_ORDER_BY, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_COLUMNS_IN_SELECT", SQL_MAX_COLUMNS_IN_SELECT, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_COLUMNS_IN_TABLE", SQL_MAX_COLUMNS_IN_TABLE, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_CONCURRENT_ACTIVITIES", SQL_MAX_CONCURRENT_ACTIVITIES, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_CURSOR_NAME_LEN", SQL_MAX_CURSOR_NAME_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_DRIVER_CONNECTIONS", SQL_MAX_DRIVER_CONNECTIONS, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_IDENTIFIER_LEN", SQL_MAX_IDENTIFIER_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_INDEX_SIZE", SQL_MAX_INDEX_SIZE, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_PROCEDURE_NAME_LEN", SQL_MAX_PROCEDURE_NAME_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_ROW_SIZE", SQL_MAX_ROW_SIZE, { { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, 0, 0 }, { "SQL_MAX_ROW_SIZE_INCLUDES_LONG", SQL_MAX_ROW_SIZE_INCLUDES_LONG, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_MAX_STATEMENT_LEN", SQL_MAX_STATEMENT_LEN, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_TABLE_NAME_LEN", SQL_MAX_TABLE_NAME_LEN, { { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_TABLES_IN_SELECT", SQL_MAX_TABLES_IN_SELECT, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MAX_USER_NAME_LEN", SQL_MAX_USER_NAME_LEN, { { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_MULT_RESULT_SETS", SQL_MULT_RESULT_SETS, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_MULTIPLE_ACTIVE_TXN", SQL_MULTIPLE_ACTIVE_TXN, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_NEED_LONG_DATA_LEN", SQL_NEED_LONG_DATA_LEN, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_NON_NULLABLE_COLUMNS", SQL_NON_NULLABLE_COLUMNS, { { "SQL_NNC_NULL", SQL_NNC_NULL, NULL, 0}, { "SQL_NNC_NON_NULL", SQL_NNC_NON_NULL, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_NULL_COLLATION", SQL_NULL_COLLATION, { { "SQL_NC_END", SQL_NC_END, NULL, 0}, { "SQL_NC_HIGH", SQL_NC_HIGH, NULL, 0}, { "SQL_NC_LOW", SQL_NC_LOW, NULL, 0}, { "SQL_NC_START", SQL_NC_START, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_NUMERIC_FUNCTIONS", SQL_NUMERIC_FUNCTIONS, { { "SQL_FN_NUM_ABS", SQL_FN_NUM_ABS, NULL, 0}, { "SQL_FN_NUM_ACOS", SQL_FN_NUM_ACOS, NULL, 0}, { "SQL_FN_NUM_ASIN", SQL_FN_NUM_ASIN, NULL, 0}, { "SQL_FN_NUM_ATAN", SQL_FN_NUM_ATAN, NULL, 0}, { "SQL_FN_NUM_ATAN2", SQL_FN_NUM_ATAN2, NULL, 0}, { "SQL_FN_NUM_CEILING", SQL_FN_NUM_CEILING, NULL, 0}, { "SQL_FN_NUM_COS", SQL_FN_NUM_COS, NULL, 0}, { "SQL_FN_NUM_COT", SQL_FN_NUM_COT, NULL, 0}, { "SQL_FN_NUM_DEGREES", SQL_FN_NUM_DEGREES, NULL, 0}, { "SQL_FN_NUM_EXP", SQL_FN_NUM_EXP, NULL, 0}, { "SQL_FN_NUM_FLOOR", SQL_FN_NUM_FLOOR, NULL, 0}, { "SQL_FN_NUM_LOG", SQL_FN_NUM_LOG, NULL, 0}, { "SQL_FN_NUM_LOG10", SQL_FN_NUM_LOG10, NULL, 0}, { "SQL_FN_NUM_MOD", SQL_FN_NUM_MOD, NULL, 0}, { "SQL_FN_NUM_PI", SQL_FN_NUM_PI, NULL, 0}, { "SQL_FN_NUM_POWER", SQL_FN_NUM_POWER, NULL, 0}, { "SQL_FN_NUM_RADIANS", SQL_FN_NUM_RADIANS, NULL, 0}, { "SQL_FN_NUM_RAND", SQL_FN_NUM_RAND, NULL, 0}, { "SQL_FN_NUM_ROUND", SQL_FN_NUM_ROUND, NULL, 0}, { "SQL_FN_NUM_SIGN", SQL_FN_NUM_SIGN, NULL, 0}, { "SQL_FN_NUM_SIN", SQL_FN_NUM_SIN, NULL, 0}, { "SQL_FN_NUM_SQRT", SQL_FN_NUM_SQRT, NULL, 0}, { "SQL_FN_NUM_TAN", SQL_FN_NUM_TAN, NULL, 0}, { "SQL_FN_NUM_TRUNCATE", SQL_FN_NUM_TRUNCATE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_ODBC_INTERFACE_CONFORMANCE", SQL_ODBC_INTERFACE_CONFORMANCE, { { "SQL_OIC_CORE", SQL_OIC_CORE, NULL, 0}, { "SQL_OIC_LEVEL1", SQL_OIC_LEVEL1, NULL, 0}, { "SQL_OIC_LEVEL2", SQL_OIC_LEVEL2, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ODBC_SAG_CLI_CONFORMANCE", SQL_ODBC_SAG_CLI_CONFORMANCE, { { "SQL_OSCC_NOT_COMPLIANT", SQL_OSCC_NOT_COMPLIANT, NULL, 0}, { "SQL_OSCC_COMPLIANT", SQL_OSCC_COMPLIANT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_ODBC_VER", SQL_ODBC_VER, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_OJ_CAPABILITIES", SQL_OJ_CAPABILITIES, { { "SQL_OJ_LEFT", SQL_OJ_LEFT, NULL, 0}, { "SQL_OJ_RIGHT", SQL_OJ_RIGHT, NULL, 0}, { "SQL_OJ_FULL", SQL_OJ_FULL, NULL, 0}, { "SQL_OJ_NESTED", SQL_OJ_NESTED, NULL, 0}, { "SQL_OJ_NOT_ORDERED", SQL_OJ_NOT_ORDERED, NULL, 0}, { "SQL_OJ_INNER", SQL_OJ_INNER, NULL, 0}, { "SQL_OJ_ALL_COMPARISON_OPS", SQL_OJ_ALL_COMPARISON_OPS, NULL, 0}, { NULL, 0, NULL, 0} }, "2.01", SQL_INTEGER, TRUE, 0 }, { "SQL_ORDER_BY_COLUMNS_IN_SELECT", SQL_ORDER_BY_COLUMNS_IN_SELECT, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_PARAM_ARRAY_ROW_COUNTS", SQL_PARAM_ARRAY_ROW_COUNTS, { { "SQL_PARC_BATCH", SQL_PARC_BATCH, NULL, 0}, { "SQL_PARC_NO_BATCH", SQL_PARC_NO_BATCH, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_PARAM_ARRAY_SELECTS", SQL_PARAM_ARRAY_SELECTS, { { "SQL_PAS_BATCH", SQL_PAS_BATCH, NULL, 0}, { "SQL_PAS_NO_BATCH", SQL_PAS_NO_BATCH, NULL, 0}, { "SQL_PAS_NO_SELECT", SQL_PAS_NO_SELECT, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_PROCEDURE_TERM", SQL_PROCEDURE_TERM, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_PROCEDURES", SQL_PROCEDURES, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_QUOTED_IDENTIFIER_CASE", SQL_QUOTED_IDENTIFIER_CASE, { { "SQL_IC_UPPER", SQL_IC_UPPER, NULL, 0}, { "SQL_IC_LOWER", SQL_IC_LOWER, NULL, 0}, { "SQL_IC_SENSITIVE", SQL_IC_SENSITIVE, NULL, 0}, { "SQL_IC_MIXED", SQL_IC_MIXED, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_SMALLINT, 0, 0 }, { "SQL_ROW_UPDATES", SQL_ROW_UPDATES, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_SCHEMA_TERM", SQL_SCHEMA_TERM, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_SCHEMA_USAGE", SQL_SCHEMA_USAGE, { { "SQL_SU_DML_STATEMENTS", SQL_SU_DML_STATEMENTS, NULL, 0}, { "SQL_SU_PROCEDURE_INVOCATION", SQL_SU_PROCEDURE_INVOCATION, NULL, 0}, { "SQL_SU_TABLE_DEFINITION", SQL_SU_TABLE_DEFINITION, NULL, 0}, { "SQL_SU_INDEX_DEFINITION", SQL_SU_INDEX_DEFINITION, NULL, 0}, { "SQL_SU_PRIVILEGE_DEFINITION", SQL_SU_PRIVILEGE_DEFINITION, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SCROLL_OPTIONS", SQL_SCROLL_OPTIONS, { { "SQL_SO_FORWARD_ONLY", SQL_SO_FORWARD_ONLY, NULL, 0}, { "SQL_SO_STATIC", SQL_SO_STATIC, NULL, 0}, { "SQL_SO_KEYSET_DRIVEN", SQL_SO_KEYSET_DRIVEN, NULL, 0}, { "SQL_SO_DYNAMIC", SQL_SO_DYNAMIC, NULL, 0}, { "SQL_SO_MIXED", SQL_SO_MIXED, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SEARCH_PATTERN_ESCAPE", SQL_SEARCH_PATTERN_ESCAPE, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_SERVER_NAME", SQL_SERVER_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_SPECIAL_CHARACTERS", SQL_SPECIAL_CHARACTERS, { { NULL, 0, NULL, 0} }, "2.0", SQL_CHAR, 0, 0 }, { "SQL_SQL_CONFORMANCE", SQL_SQL_CONFORMANCE, { { "SQL_SC_SQL92_ENTRY", SQL_SC_SQL92_ENTRY, NULL, 0}, { "SQL_SC_FIPS127_2_TRANSITIONAL", SQL_SC_FIPS127_2_TRANSITIONAL, NULL, 0}, { "SQL_SC_SQL92_FULL", SQL_SC_SQL92_FULL, NULL, 0}, { "SQL_SC_SQL92_INTERMEDIATE", SQL_SC_SQL92_INTERMEDIATE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_SQL92_DATETIME_FUNCTIONS", SQL_SQL92_DATETIME_FUNCTIONS, { { "SQL_SDF_CURRENT_DATE", SQL_SDF_CURRENT_DATE, NULL, 0}, { "SQL_SDF_CURRENT_TIME", SQL_SDF_CURRENT_TIME, NULL, 0}, { "SQL_SDF_CURRENT_TIMESTAMP", SQL_SDF_CURRENT_TIMESTAMP, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_FOREIGN_KEY_DELETE_RULE", SQL_SQL92_FOREIGN_KEY_DELETE_RULE, { { "SQL_SFKD_CASCADE", SQL_SFKD_CASCADE, NULL, 0}, { "SQL_SFKD_NO_ACTION", SQL_SFKD_NO_ACTION, NULL, 0}, { "SQL_SFKD_SET_DEFAULT", SQL_SFKD_SET_DEFAULT, NULL, 0}, { "SQL_SFKD_SET_NULL", SQL_SFKD_SET_NULL, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_FOREIGN_KEY_UPDATE_RULE", SQL_SQL92_FOREIGN_KEY_UPDATE_RULE, { { "SQL_SFKU_CASCADE", SQL_SFKU_CASCADE, NULL, 0}, { "SQL_SFKU_NO_ACTION", SQL_SFKU_NO_ACTION, NULL, 0}, { "SQL_SFKU_SET_DEFAULT", SQL_SFKU_SET_DEFAULT, NULL, 0}, { "SQL_SFKU_SET_NULL", SQL_SFKU_SET_NULL, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_GRANT", SQL_SQL92_GRANT, { { "SQL_SG_DELETE_TABLE", SQL_SG_DELETE_TABLE, NULL, 0}, { "SQL_SG_INSERT_COLUMN", SQL_SG_INSERT_COLUMN, NULL, 0}, { "SQL_SG_INSERT_TABLE", SQL_SG_INSERT_TABLE, NULL, 0}, { "SQL_SG_REFERENCES_TABLE", SQL_SG_REFERENCES_TABLE, NULL, 0}, { "SQL_SG_REFERENCES_COLUMN", SQL_SG_REFERENCES_COLUMN, NULL, 0}, { "SQL_SG_SELECT_TABLE", SQL_SG_SELECT_TABLE, NULL, 0}, { "SQL_SG_UPDATE_COLUMN", SQL_SG_UPDATE_COLUMN, NULL, 0}, { "SQL_SG_UPDATE_TABLE", SQL_SG_UPDATE_TABLE, NULL, 0}, { "SQL_SG_USAGE_ON_DOMAIN", SQL_SG_USAGE_ON_DOMAIN, NULL, 0}, { "SQL_SG_USAGE_ON_CHARACTER_SET", SQL_SG_USAGE_ON_CHARACTER_SET, NULL, 0}, { "SQL_SG_USAGE_ON_COLLATION", SQL_SG_USAGE_ON_COLLATION, NULL, 0}, { "SQL_SG_USAGE_ON_TRANSLATION", SQL_SG_USAGE_ON_TRANSLATION, NULL, 0}, { "SQL_SG_WITH_GRANT_OPTION", SQL_SG_WITH_GRANT_OPTION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_NUMERIC_VALUE_FUNCTIONS", SQL_SQL92_NUMERIC_VALUE_FUNCTIONS, { { "SQL_SNVF_BIT_LENGTH", SQL_SNVF_BIT_LENGTH, NULL, 0}, { "SQL_SNVF_CHAR_LENGTH", SQL_SNVF_CHAR_LENGTH, NULL, 0}, { "SQL_SNVF_CHARACTER_LENGTH", SQL_SNVF_CHARACTER_LENGTH, NULL, 0}, { "SQL_SNVF_EXTRACT", SQL_SNVF_EXTRACT, NULL, 0}, { "SQL_SNVF_OCTET_LENGTH", SQL_SNVF_OCTET_LENGTH, NULL, 0}, { "SQL_SNVF_POSITION", SQL_SNVF_POSITION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_PREDICATES", SQL_SQL92_PREDICATES, { { "SQL_SP_BETWEEN", SQL_SP_BETWEEN, NULL, 0}, { "SQL_SP_COMPARISON", SQL_SP_COMPARISON, NULL, 0}, { "SQL_SP_EXISTS", SQL_SP_EXISTS, NULL, 0}, { "SQL_SP_IN", SQL_SP_IN, NULL, 0}, { "SQL_SP_ISNOTNULL", SQL_SP_ISNOTNULL, NULL, 0}, { "SQL_SP_ISNULL", SQL_SP_ISNULL, NULL, 0}, { "SQL_SP_LIKE", SQL_SP_LIKE, NULL, 0}, { "SQL_SP_MATCH_FULL", SQL_SP_MATCH_FULL, NULL, 0}, { "SQL_SP_MATCH_PARTIAL", SQL_SP_MATCH_PARTIAL, NULL, 0}, { "SQL_SP_MATCH_UNIQUE_FULL", SQL_SP_MATCH_UNIQUE_FULL, NULL, 0}, { "SQL_SP_MATCH_UNIQUE_PARTIAL", SQL_SP_MATCH_UNIQUE_PARTIAL, NULL, 0}, { "SQL_SP_OVERLAPS", SQL_SP_OVERLAPS, NULL, 0}, { "SQL_SP_QUANTIFIED_COMPARISON", SQL_SP_QUANTIFIED_COMPARISON, NULL, 0}, { "SQL_SP_UNIQUE", SQL_SP_UNIQUE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_RELATIONAL_JOIN_OPERATORS", SQL_SQL92_RELATIONAL_JOIN_OPERATORS, { { "SQL_SRJO_CORRESPONDING_CLAUSE", SQL_SRJO_CORRESPONDING_CLAUSE, NULL, 0}, { "SQL_SRJO_CROSS_JOIN", SQL_SRJO_CROSS_JOIN, NULL, 0}, { "SQL_SRJO_EXCEPT_JOIN", SQL_SRJO_EXCEPT_JOIN, NULL, 0}, { "SQL_SRJO_FULL_OUTER_JOIN", SQL_SRJO_FULL_OUTER_JOIN, NULL, 0}, { "SQL_SRJO_INNER_JOIN", SQL_SRJO_INNER_JOIN, NULL, 0}, { "SQL_SRJO_INTERSECT_JOIN", SQL_SRJO_INTERSECT_JOIN, NULL, 0}, { "SQL_SRJO_LEFT_OUTER_JOIN", SQL_SRJO_LEFT_OUTER_JOIN, NULL, 0}, { "SQL_SRJO_NATURAL_JOIN", SQL_SRJO_NATURAL_JOIN, NULL, 0}, { "SQL_SRJO_RIGHT_OUTER_JOIN", SQL_SRJO_RIGHT_OUTER_JOIN, NULL, 0}, { "SQL_SRJO_UNION_JOIN", SQL_SRJO_UNION_JOIN, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_REVOKE", SQL_SQL92_REVOKE, { { "SQL_SR_CASCADE", SQL_SR_CASCADE, NULL, 0}, { "SQL_SR_DELETE_TABLE", SQL_SR_DELETE_TABLE, NULL, 0}, { "SQL_SR_GRANT_OPTION_FOR", SQL_SR_GRANT_OPTION_FOR, NULL, 0}, { "SQL_SR_INSERT_COLUMN", SQL_SR_INSERT_COLUMN, NULL, 0}, { "SQL_SR_INSERT_TABLE", SQL_SR_INSERT_TABLE, NULL, 0}, { "SQL_SR_REFERENCES_COLUMN", SQL_SR_REFERENCES_COLUMN, NULL, 0}, { "SQL_SR_REFERENCES_TABLE", SQL_SR_REFERENCES_TABLE, NULL, 0}, { "SQL_SR_RESTRICT", SQL_SR_RESTRICT, NULL, 0}, { "SQL_SR_SELECT_TABLE", SQL_SR_SELECT_TABLE, NULL, 0}, { "SQL_SR_UPDATE_COLUMN", SQL_SR_UPDATE_COLUMN, NULL, 0}, { "SQL_SR_UPDATE_TABLE", SQL_SR_UPDATE_TABLE, NULL, 0}, { "SQL_SR_USAGE_ON_DOMAIN", SQL_SR_USAGE_ON_DOMAIN, NULL, 0}, { "SQL_SR_USAGE_ON_CHARACTER_SET", SQL_SR_USAGE_ON_CHARACTER_SET, NULL, 0}, { "SQL_SR_USAGE_ON_COLLATION", SQL_SR_USAGE_ON_COLLATION, NULL, 0}, { "SQL_SR_USAGE_ON_TRANSLATION", SQL_SR_USAGE_ON_TRANSLATION, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_ROW_VALUE_CONSTRUCTOR", SQL_SQL92_ROW_VALUE_CONSTRUCTOR, { { "SQL_SRVC_VALUE_EXPRESSION", SQL_SRVC_VALUE_EXPRESSION, NULL, 0}, { "SQL_SRVC_NULL", SQL_SRVC_NULL, NULL, 0}, { "SQL_SRVC_DEFAULT", SQL_SRVC_DEFAULT, NULL, 0}, { "SQL_SRVC_ROW_SUBQUERY", SQL_SRVC_ROW_SUBQUERY, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_STRING_FUNCTIONS", SQL_SQL92_STRING_FUNCTIONS, { { "SQL_SSF_CONVERT", SQL_SSF_CONVERT, NULL, 0}, { "SQL_SSF_LOWER", SQL_SSF_LOWER, NULL, 0}, { "SQL_SSF_UPPER", SQL_SSF_UPPER, NULL, 0}, { "SQL_SSF_SUBSTRING", SQL_SSF_SUBSTRING, NULL, 0}, { "SQL_SSF_TRANSLATE", SQL_SSF_TRANSLATE, NULL, 0}, { "SQL_SSF_TRIM_BOTH", SQL_SSF_TRIM_BOTH, NULL, 0}, { "SQL_SSF_TRIM_LEADING", SQL_SSF_TRIM_LEADING, NULL, 0}, { "SQL_SSF_TRIM_TRAILING", SQL_SSF_TRIM_TRAILING, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SQL92_VALUE_EXPRESSIONS", SQL_SQL92_VALUE_EXPRESSIONS, { { "SQL_SVE_CASE", SQL_SVE_CASE, NULL, 0}, { "SQL_SVE_CAST", SQL_SVE_CAST, NULL, 0}, { "SQL_SVE_COALESCE", SQL_SVE_COALESCE, NULL, 0}, { "SQL_SVE_NULLIF", SQL_SVE_NULLIF, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_STANDARD_CLI_CONFORMANCE", SQL_STANDARD_CLI_CONFORMANCE, { { "SQL_SCC_XOPEN_CLI_VERSION1", SQL_SCC_XOPEN_CLI_VERSION1, NULL, 0}, { "SQL_SCC_ISO92_CLI", SQL_SCC_ISO92_CLI, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_STATIC_CURSOR_ATTRIBUTES1", SQL_STATIC_CURSOR_ATTRIBUTES1, { { "SQL_CA1_NEXT", SQL_CA1_NEXT, NULL, 0}, { "SQL_CA1_ABSOLUTE", SQL_CA1_ABSOLUTE, NULL, 0}, { "SQL_CA1_RELATIVE", SQL_CA1_RELATIVE, NULL, 0}, { "SQL_CA1_BOOKMARK", SQL_CA1_BOOKMARK, NULL, 0}, { "SQL_CA1_LOCK_EXCLUSIVE", SQL_CA1_LOCK_EXCLUSIVE, NULL, 0}, { "SQL_CA1_LOCK_NO_CHANGE", SQL_CA1_LOCK_NO_CHANGE, NULL, 0}, { "SQL_CA1_LOCK_UNLOCK", SQL_CA1_LOCK_UNLOCK, NULL, 0}, { "SQL_CA1_POS_POSITION", SQL_CA1_POS_POSITION, NULL, 0}, { "SQL_CA1_POS_UPDATE", SQL_CA1_POS_UPDATE, NULL, 0}, { "SQL_CA1_POS_DELETE", SQL_CA1_POS_DELETE, NULL, 0}, { "SQL_CA1_POS_REFRESH", SQL_CA1_POS_REFRESH, NULL, 0}, { "SQL_CA1_POSITIONED_UPDATE", SQL_CA1_POSITIONED_UPDATE, NULL, 0}, { "SQL_CA1_POSITIONED_DELETE", SQL_CA1_POSITIONED_DELETE, NULL, 0}, { "SQL_CA1_SELECT_FOR_UPDATE", SQL_CA1_SELECT_FOR_UPDATE, NULL, 0}, { "SQL_CA1_BULK_ADD", SQL_CA1_BULK_ADD, NULL, 0}, { "SQL_CA1_BULK_UPDATE_BY_BOOKMARK", SQL_CA1_BULK_UPDATE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_DELETE_BY_BOOKMARK", SQL_CA1_BULK_DELETE_BY_BOOKMARK, NULL, 0}, { "SQL_CA1_BULK_FETCH_BY_BOOKMARK", SQL_CA1_BULK_FETCH_BY_BOOKMARK, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_STATIC_CURSOR_ATTRIBUTES2", SQL_STATIC_CURSOR_ATTRIBUTES2, { { "SQL_CA2_READ_ONLY_CONCURRENCY", SQL_CA2_READ_ONLY_CONCURRENCY, NULL, 0}, { "SQL_CA2_LOCK_CONCURRENCY", SQL_CA2_LOCK_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_ROWVER_CONCURRENCY", SQL_CA2_OPT_ROWVER_CONCURRENCY, NULL, 0}, { "SQL_CA2_OPT_VALUES_CONCURRENCY", SQL_CA2_OPT_VALUES_CONCURRENCY, NULL, 0}, { "SQL_CA2_SENSITIVITY_ADDITIONS", SQL_CA2_SENSITIVITY_ADDITIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_DELETIONS", SQL_CA2_SENSITIVITY_DELETIONS, NULL, 0}, { "SQL_CA2_SENSITIVITY_UPDATES", SQL_CA2_SENSITIVITY_UPDATES, NULL, 0}, { "SQL_CA2_MAX_ROWS_SELECT", SQL_CA2_MAX_ROWS_SELECT, NULL, 0}, { "SQL_CA2_MAX_ROWS_INSERT", SQL_CA2_MAX_ROWS_INSERT, NULL, 0}, { "SQL_CA2_MAX_ROWS_DELETE", SQL_CA2_MAX_ROWS_DELETE, NULL, 0}, { "SQL_CA2_MAX_ROWS_UPDATE", SQL_CA2_MAX_ROWS_UPDATE, NULL, 0}, { "SQL_CA2_MAX_ROWS_CATALOG", SQL_CA2_MAX_ROWS_CATALOG, NULL, 0}, { "SQL_CA2_MAX_ROWS_AFFECTS_ALL", SQL_CA2_MAX_ROWS_AFFECTS_ALL, NULL, 0}, { "SQL_CA2_CRC_EXACT", SQL_CA2_CRC_EXACT, NULL, 0}, { "SQL_CA2_CRC_APPROXIMATE", SQL_CA2_CRC_APPROXIMATE, NULL, 0}, { "SQL_CA2_SIMULATE_NON_UNIQUE", SQL_CA2_SIMULATE_NON_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_TRY_UNIQUE", SQL_CA2_SIMULATE_TRY_UNIQUE, NULL, 0}, { "SQL_CA2_SIMULATE_UNIQUE", SQL_CA2_SIMULATE_UNIQUE, NULL, 0}, { NULL, 0, NULL, 0} }, "3.0", SQL_INTEGER, TRUE, 0 }, { "SQL_STRING_FUNCTIONS", SQL_STRING_FUNCTIONS, { { "SQL_FN_STR_ASCII", SQL_FN_STR_ASCII, NULL, 0}, { "SQL_FN_STR_BIT_LENGTH", SQL_FN_STR_BIT_LENGTH, NULL, 0}, { "SQL_FN_STR_CHAR", SQL_FN_STR_CHAR, NULL, 0}, { "SQL_FN_STR_CHAR_LENGTH", SQL_FN_STR_CHAR_LENGTH, NULL, 0}, { "SQL_FN_STR_CHARACTER_LENGTH", SQL_FN_STR_CHARACTER_LENGTH, NULL, 0}, { "SQL_FN_STR_CONCAT", SQL_FN_STR_CONCAT, NULL, 0}, { "SQL_FN_STR_DIFFERENCE", SQL_FN_STR_DIFFERENCE, NULL, 0}, { "SQL_FN_STR_INSERT", SQL_FN_STR_INSERT, NULL, 0}, { "SQL_FN_STR_LCASE", SQL_FN_STR_LCASE, NULL, 0}, { "SQL_FN_STR_LEFT", SQL_FN_STR_LEFT, NULL, 0}, { "SQL_FN_STR_LENGTH", SQL_FN_STR_LENGTH, NULL, 0}, { "SQL_FN_STR_LOCATE", SQL_FN_STR_LOCATE, NULL, 0}, { "SQL_FN_STR_LTRIM", SQL_FN_STR_LTRIM, NULL, 0}, { "SQL_FN_STR_OCTET_LENGTH", SQL_FN_STR_OCTET_LENGTH, NULL, 0}, { "SQL_FN_STR_POSITION", SQL_FN_STR_POSITION, NULL, 0}, { "SQL_FN_STR_REPEAT", SQL_FN_STR_REPEAT, NULL, 0}, { "SQL_FN_STR_REPLACE", SQL_FN_STR_REPLACE, NULL, 0}, { "SQL_FN_STR_RIGHT", SQL_FN_STR_RIGHT, NULL, 0}, { "SQL_FN_STR_RTRIM", SQL_FN_STR_RTRIM, NULL, 0}, { "SQL_FN_STR_SOUNDEX", SQL_FN_STR_SOUNDEX, NULL, 0}, { "SQL_FN_STR_SPACE", SQL_FN_STR_SPACE, NULL, 0}, { "SQL_FN_STR_SUBSTRING", SQL_FN_STR_SUBSTRING, NULL, 0}, { "SQL_FN_STR_UCASE", SQL_FN_STR_UCASE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SUBQUERIES", SQL_SUBQUERIES, { { "SQL_SQ_CORRELATED_SUBQUERIES", SQL_SQ_CORRELATED_SUBQUERIES, NULL, 0}, { "SQL_SQ_COMPARISON", SQL_SQ_COMPARISON, NULL, 0}, { "SQL_SQ_EXISTS", SQL_SQ_EXISTS, NULL, 0}, { "SQL_SQ_IN", SQL_SQ_IN, NULL, 0}, { "SQL_SQ_QUANTIFIED", SQL_SQ_QUANTIFIED, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_SYSTEM_FUNCTIONS", SQL_SYSTEM_FUNCTIONS, { { "SQL_FN_SYS_DBNAME", SQL_FN_SYS_DBNAME, NULL, 0}, { "SQL_FN_SYS_IFNULL", SQL_FN_SYS_IFNULL, NULL, 0}, { "SQL_FN_SYS_USERNAME", SQL_FN_SYS_USERNAME, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_TABLE_TERM", SQL_TABLE_TERM, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_TIMEDATE_ADD_INTERVALS", SQL_TIMEDATE_ADD_INTERVALS, { { "SQL_FN_TSI_FRAC_SECOND", SQL_FN_TSI_FRAC_SECOND, NULL, 0}, { "SQL_FN_TSI_SECOND", SQL_FN_TSI_SECOND, NULL, 0}, { "SQL_FN_TSI_MINUTE", SQL_FN_TSI_MINUTE, NULL, 0}, { "SQL_FN_TSI_HOUR", SQL_FN_TSI_HOUR, NULL, 0}, { "SQL_FN_TSI_DAY", SQL_FN_TSI_DAY, NULL, 0}, { "SQL_FN_TSI_WEEK", SQL_FN_TSI_WEEK, NULL, 0}, { "SQL_FN_TSI_MONTH", SQL_FN_TSI_MONTH, NULL, 0}, { "SQL_FN_TSI_QUARTER", SQL_FN_TSI_QUARTER, NULL, 0}, { "SQL_FN_TSI_YEAR", SQL_FN_TSI_YEAR, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_TIMEDATE_DIFF_INTERVALS", SQL_TIMEDATE_DIFF_INTERVALS, { { "SQL_FN_TSI_FRAC_SECOND", SQL_FN_TSI_FRAC_SECOND, NULL, 0}, { "SQL_FN_TSI_SECOND", SQL_FN_TSI_SECOND, NULL, 0}, { "SQL_FN_TSI_MINUTE", SQL_FN_TSI_MINUTE, NULL, 0}, { "SQL_FN_TSI_HOUR", SQL_FN_TSI_HOUR, NULL, 0}, { "SQL_FN_TSI_DAY", SQL_FN_TSI_DAY, NULL, 0}, { "SQL_FN_TSI_WEEK", SQL_FN_TSI_WEEK, NULL, 0}, { "SQL_FN_TSI_MONTH", SQL_FN_TSI_MONTH, NULL, 0}, { "SQL_FN_TSI_QUARTER", SQL_FN_TSI_QUARTER, NULL, 0}, { "SQL_FN_TSI_YEAR", SQL_FN_TSI_YEAR, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_TIMEDATE_FUNCTIONS", SQL_TIMEDATE_FUNCTIONS, { { "SQL_FN_TD_CURRENT_DATE", SQL_FN_TD_CURRENT_DATE, NULL, 0}, { "SQL_FN_TD_CURRENT_TIME", SQL_FN_TD_CURRENT_TIME, NULL, 0}, { "SQL_FN_TD_CURRENT_TIMESTAMP", SQL_FN_TD_CURRENT_TIMESTAMP, NULL, 0}, { "SQL_FN_TD_CURDATE", SQL_FN_TD_CURDATE, NULL, 0}, { "SQL_FN_TD_CURTIME", SQL_FN_TD_CURTIME, NULL, 0}, { "SQL_FN_TD_DAYNAME", SQL_FN_TD_DAYNAME, NULL, 0}, { "SQL_FN_TD_DAYOFMONTH", SQL_FN_TD_DAYOFMONTH, NULL, 0}, { "SQL_FN_TD_DAYOFWEEK", SQL_FN_TD_DAYOFWEEK, NULL, 0}, { "SQL_FN_TD_DAYOFYEAR", SQL_FN_TD_DAYOFYEAR, NULL, 0}, { "SQL_FN_TD_EXTRACT", SQL_FN_TD_EXTRACT, NULL, 0}, { "SQL_FN_TD_HOUR", SQL_FN_TD_HOUR, NULL, 0}, { "SQL_FN_TD_MINUTE", SQL_FN_TD_MINUTE, NULL, 0}, { "SQL_FN_TD_MONTH", SQL_FN_TD_MONTH, NULL, 0}, { "SQL_FN_TD_MONTHNAME", SQL_FN_TD_MONTHNAME, NULL, 0}, { "SQL_FN_TD_NOW", SQL_FN_TD_NOW, NULL, 0}, { "SQL_FN_TD_QUARTER", SQL_FN_TD_QUARTER, NULL, 0}, { "SQL_FN_TD_SECOND", SQL_FN_TD_SECOND, NULL, 0}, { "SQL_FN_TD_TIMESTAMPADD", SQL_FN_TD_TIMESTAMPADD, NULL, 0}, { "SQL_FN_TD_TIMESTAMPDIFF", SQL_FN_TD_TIMESTAMPDIFF, NULL, 0}, { "SQL_FN_TD_WEEK", SQL_FN_TD_WEEK, NULL, 0}, { "SQL_FN_TD_YEAR", SQL_FN_TD_YEAR, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_TXN_CAPABLE", SQL_TXN_CAPABLE, { { "SQL_TC_NONE", SQL_TC_NONE, NULL, 0}, { "SQL_TC_DML", SQL_TC_DML, NULL, 0}, { "SQL_TC_DDL_COMMIT", SQL_TC_DDL_COMMIT, NULL, 0}, { "SQL_TC_DDL_IGNORE", SQL_TC_DDL_IGNORE, NULL, 0}, { "SQL_TC_ALL", SQL_TC_ALL, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_SMALLINT, 0, 0 }, { "SQL_TXN_ISOLATION_OPTION", SQL_TXN_ISOLATION_OPTION, { { "SQL_TXN_READ_UNCOMMITTED", SQL_TXN_READ_UNCOMMITTED, NULL, 0}, { "SQL_TXN_READ_COMMITTED", SQL_TXN_READ_COMMITTED, NULL, 0}, { "SQL_TXN_REPEATABLE_READ", SQL_TXN_REPEATABLE_READ, NULL, 0}, { "SQL_TXN_SERIALIZABLE", SQL_TXN_SERIALIZABLE, NULL, 0}, { NULL, 0, NULL, 0} }, "1.0", SQL_INTEGER, TRUE, 0 }, { "SQL_UNION", SQL_UNION, { { "SQL_U_UNION", SQL_U_UNION, NULL, 0}, { "SQL_U_UNION_ALL", SQL_U_UNION_ALL, NULL, 0}, { NULL, 0, NULL, 0} }, "2.0", SQL_INTEGER, TRUE, 0 }, { "SQL_USER_NAME", SQL_USER_NAME, { { NULL, 0, NULL, 0} }, "1.0", SQL_CHAR, 0, 0 }, { "SQL_XOPEN_CLI_YEAR", SQL_XOPEN_CLI_YEAR, { { NULL, 0, NULL, 0} }, "3.0", SQL_CHAR, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; void dDriverConnect::out_str_clkd() { if ( out_str_valid->isChecked() ) out_str_valid->setText( "OutConnectionString: SQL_NULL_POINTER" ); else out_str_valid->setText( "OutConnectionString: VALID" ); } void dDriverConnect::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLenPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLenPtr: VALID" ); } void dDriverConnect::Ok() { const char *in_string, *string_len; SQLCHAR *conn_str_in; SQLCHAR *out_string; SQLINTEGER in_string_len, con_str_out_max; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle; SQLSMALLINT con_str_out, *ptr_con_str_out; SQLUSMALLINT dc_type; int index; QString qstring_len, qin_string; if ( hand ) in_handle = hand->getHandle(); qstring_len = str_len->currentText(); string_len = qstring_len.toAscii().constData(); pOdbcTest->out_win->append( "SQLDriverConnect():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); txt.sprintf( " Window Handle: NULL" ); pOdbcTest->out_win->append( txt ); qin_string = in_str->currentText(); in_string = qin_string.toAscii().constData(); if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = NULL; pOdbcTest->out_win->append( " InConnectionString: " ); } else if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = ( SQLCHAR * ) ""; pOdbcTest->out_win->append( " InConnectionString: " ); } else { txt.sprintf( " InConnectionString: %s", in_string ); conn_str_in = ( SQLCHAR * ) in_string; pOdbcTest->out_win->append( txt ); } if ( strncmp( string_len, "SQL_NTS", 7 ) == 0 ) { in_string_len = SQL_NTS; txt.sprintf( " StringLength1: SQL_NTS=-3" ); } else { in_string_len = atoi( string_len ); txt.sprintf( " StringLength1: %d", in_string_len ); } pOdbcTest->out_win->append( txt ); con_str_out_max = buffer_len->text().toInt(); if ( out_str_valid->isChecked()) { out_string = ( SQLCHAR * ) NULL; } else if ( con_str_out_max < 300 ) { out_string = new SQLCHAR[ 300 ]; } else { out_string = new SQLCHAR[ con_str_out_max ]; } if ( out_string ) { txt.sprintf( " OutConnectionString: %p", out_string ); } else { txt.sprintf( " OutConnectionString: NULL_POINTER" ); } pOdbcTest->out_win->append( txt ); txt.sprintf( " Buffer Length %d", con_str_out_max ); pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked()) { ptr_con_str_out = NULL; txt.sprintf( " StringLengthPtr: NULL_POINTER" ); } else { ptr_con_str_out = &con_str_out; txt.sprintf( " StringLengthPtr: %p", ptr_con_str_out ); } pOdbcTest->out_win->append( txt ); con_str_out = -9999; index = driver_completion->currentIndex(); dc_type = dc_options[ index ].attr; txt.sprintf( " Driver Complete: %s=%d (%s)", dc_options[ index ].text, dc_options[ index ].attr, dc_options[ index ].version ); pOdbcTest->out_win->append( txt ); SQLHWND hWnd = NULL; #ifdef WIN32 hWnd = (SQLHWND)(this->winId()); #else ODBCINSTWND Wnd; strcpy( Wnd.szUI, "odbcinstQ4" ); Wnd.hWnd = this; hWnd = (SQLHWND)(&Wnd); #endif SQLRETURN ret = SQLDriverConnect( in_handle, hWnd, conn_str_in, in_string_len, out_string, con_str_out_max, ptr_con_str_out, dc_type ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( out_string ) { txt.sprintf( " OutConnectionString: %s", out_string ); pOdbcTest->out_win->append( txt ); } if ( ptr_con_str_out ) { if ( con_str_out == -9999 ) { txt.sprintf( " *StrLenPtr: " ); } else { txt.sprintf( " *StrLenPtr: %d", con_str_out ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dDriverConnect::dDriverConnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); in_str = new QComboBox( this ); in_str->setEditable( true ); in_str->setGeometry( 130, 50, 300, 20 ); l_in_str = new QLabel( "InConnectionString:", this ); l_in_str->setGeometry( 10, 50, 90, 20 ); in_str->insertItem( 0, "" ); in_str->insertItem( 1, "" ); str_len = new QComboBox( this ); str_len->setEditable( true ); str_len->setGeometry( 130, 80, 150, 20 ); l_str_len = new QLabel( "StringLength1:", this ); l_str_len->setGeometry( 10, 80, 90, 20 ); str_len->insertItem( 0, "SQL_NTS=-3" ); str_len->insertItem( 1, "0" ); out_str_valid = new QCheckBox( "OutConnectionString: VALID", this ); out_str_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLenPtr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 80, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 80, 60, 20 ); driver_completion = new QComboBox( this ); driver_completion->setGeometry( 100, 170, 300, 20 ); pOdbcTest->fill_list_box( dc_options, driver_completion ); l_driver_completion = new QLabel( "Driver Completion:", this ); l_driver_completion->setGeometry( 10, 170, 80, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( out_str_valid, SIGNAL( clicked()), this, SLOT( out_str_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dDriverConnect::~dDriverConnect() { delete ok; delete cancel; delete help; delete handles; delete in_str; delete str_len; delete l_handle; delete l_in_str; delete l_str_len; delete out_str_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; delete driver_completion; delete l_driver_completion; } void dBrowseConnect::out_str_clkd() { if ( out_str_valid->isChecked() ) out_str_valid->setText( "OutConnectionString: SQL_NULL_POINTER" ); else out_str_valid->setText( "OutConnectionString: VALID" ); } void dBrowseConnect::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLenPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLenPtr: VALID" ); } void dBrowseConnect::Ok() { const char *in_string, *string_len; SQLCHAR *conn_str_in; SQLCHAR *out_string; SQLINTEGER in_string_len, con_str_out_max; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle; SQLSMALLINT con_str_out, *ptr_con_str_out; QString qstring_len, qin_string; if ( hand ) in_handle = hand->getHandle(); qstring_len = str_len->currentText(); string_len = qstring_len.toAscii().constData(); pOdbcTest->out_win->append( "SQLBrowseConnect():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); qin_string = in_str->currentText(); in_string = qin_string.toAscii().constData(); if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = NULL; pOdbcTest->out_win->append( " InConnectionString: " ); } else if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = ( SQLCHAR * ) ""; pOdbcTest->out_win->append( " InConnectionString: " ); } else { txt.sprintf( " InConnectionString: %s", in_string ); conn_str_in = ( SQLCHAR * ) in_string; pOdbcTest->out_win->append( txt ); } if ( strncmp( string_len, "SQL_NTS", 7 ) == 0 ) { in_string_len = SQL_NTS; txt.sprintf( " StringLength1: SQL_NTS=-3" ); } else { in_string_len = atoi( string_len ); txt.sprintf( " StringLength1: %d", in_string_len ); } pOdbcTest->out_win->append( txt ); con_str_out_max = buffer_len->text().toInt(); if ( out_str_valid->isChecked()) { out_string = ( SQLCHAR * ) NULL; } else if ( con_str_out_max < 300 ) { out_string = new SQLCHAR[ 300 ]; } else { out_string = new SQLCHAR[ con_str_out_max ]; } if ( out_string ) { txt.sprintf( " OutConnectionString: %p", out_string ); } else { txt.sprintf( " OutConnectionString: NULL_POINTER" ); } pOdbcTest->out_win->append( txt ); txt.sprintf( " Buffer Length %d", con_str_out_max ); pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked()) { ptr_con_str_out = NULL; txt.sprintf( " StringLengthPtr: NULL_POINTER" ); } else { ptr_con_str_out = &con_str_out; txt.sprintf( " StringLengthPtr: %p", ptr_con_str_out ); } pOdbcTest->out_win->append( txt ); con_str_out = -9999; SQLRETURN ret = SQLBrowseConnect( in_handle, conn_str_in, in_string_len, out_string, con_str_out_max, ptr_con_str_out ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) || (SQL_NEED_DATA == ret)) { if ( out_string ) { txt.sprintf( " OutConnectionString: %s", out_string ); pOdbcTest->out_win->append( txt ); } if ( ptr_con_str_out ) { if ( con_str_out == -9999 ) { txt.sprintf( " *StrLenPtr: " ); } else { txt.sprintf( " *StrLenPtr: %d", con_str_out ); } pOdbcTest->out_win->append( txt ); } } if ( out_string ) { delete out_string; } pOdbcTest->out_win->append( "" ); } dBrowseConnect::dBrowseConnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); in_str = new QComboBox( this ); in_str->setEditable( true ); in_str->setGeometry( 130, 50, 300, 20 ); l_in_str = new QLabel( "InConnectionString:", this ); l_in_str->setGeometry( 10, 50, 90, 20 ); in_str->insertItem( 0, "" ); in_str->insertItem( 1, "" ); str_len = new QComboBox( this ); str_len->setEditable( true ); str_len->setGeometry( 130, 80, 150, 20 ); l_str_len = new QLabel( "StringLength1:", this ); l_str_len->setGeometry( 10, 80, 90, 20 ); str_len->insertItem( 0, "SQL_NTS=-3" ); str_len->insertItem( 1, "0" ); out_str_valid = new QCheckBox( "OutConnectionString: VALID", this ); out_str_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLenPtr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 80, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 80, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( out_str_valid, SIGNAL( clicked()), this, SLOT( out_str_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dBrowseConnect::~dBrowseConnect() { delete ok; delete cancel; delete help; delete handles; delete in_str; delete str_len; delete l_handle; delete l_in_str; delete l_str_len; delete out_str_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dDisconnect::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLDisconnect():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLDisconnect( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( "" ); } dDisconnect::dDisconnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 110,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 190,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 270,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 140, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Connection Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dDisconnect::~dDisconnect() { delete ok; delete cancel; delete help; delete handles; delete l_handle; } void dFullConnect::set_dsn( const QString & s ) { dsn->setText( s ); } void dFullConnect::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLINTEGER odbc_ver, odbc_cur; SQLHANDLE henv, hdbc, hstmt; SQLRETURN ret; henv = SQL_NULL_HENV; /* * do we need to allocate a env handle ? */ if ( !hand ) { ret = SQLAllocHandle( SQL_HANDLE_ENV, SQL_NULL_HENV, &henv ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLAllocHandle( SQL_HANDLE_ENV ) failed" ); return; } /* * set the odbc version */ if ( ver_2->isChecked() ) odbc_ver = SQL_OV_ODBC2; else if ( ver_3->isChecked() ) odbc_ver = SQL_OV_ODBC3; else odbc_ver = SQL_OV_ODBC3; ret = SQLSetEnvAttr( henv, SQL_ATTR_ODBC_VERSION, ( SQLPOINTER ) odbc_ver, 0 ); pOdbcTest->dumpError( SQL_HANDLE_ENV, henv ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLSetEnvAttr( SQL_ATTR_ODBC_VERSION ) failed" ); return; } } else { henv = hand->getHandle(); } /* * allocate a dbc handle */ ret = SQLAllocHandle( SQL_HANDLE_DBC, henv, &hdbc ); pOdbcTest->dumpError( SQL_HANDLE_ENV, henv ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLAllocHandle( SQL_HANDLE_DBC ) failed" ); if ( !hand ) { SQLFreeHandle( SQL_HANDLE_ENV, henv ); } return; } /* * set the cursor lib setting */ if ( cur_ifneeded->isChecked() ) odbc_cur = SQL_CUR_USE_IF_NEEDED; else if ( cur_use->isChecked() ) odbc_cur = SQL_CUR_USE_ODBC; else if ( cur_driver->isChecked() ) odbc_cur = SQL_CUR_USE_DRIVER; else odbc_cur = SQL_CUR_DEFAULT; ret = SQLSetConnectAttr( hdbc, SQL_ODBC_CURSORS, ( SQLPOINTER ) odbc_cur, 0 ); pOdbcTest->dumpError( SQL_HANDLE_DBC, hdbc ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLSetConnectAttr( SQL_ODBC_CURSORS ) failed" ); SQLFreeHandle( SQL_HANDLE_DBC, hdbc ); if ( !hand ) { SQLFreeHandle( SQL_HANDLE_ENV, henv ); } return; } /* * connect */ char cstr[ 1024 ], tmp[ 1024 ]; QString qdsn = dsn->text(); QString quid = usr->text(); QString qpwd = pwd->text(); cstr[ 0 ] = '\0'; if ( qdsn.isEmpty()) strcpy( tmp, "DSN=" ); else if ( qdsn.isNull()) strcpy( tmp, "" ); else sprintf( tmp, "DSN=%s", qdsn.toAscii().constData()); strcpy( cstr, tmp ); if ( quid.isEmpty()) strcpy( tmp, "UID=" ); else if ( quid.isNull()) strcpy( tmp, "" ); else sprintf( tmp, "UID=%s", quid.toAscii().constData()); if ( strlen( tmp ) > 0 ) { if ( strlen( cstr ) > 0 ) { strcat( cstr, ";" ); strcat( cstr, tmp ); } else { strcpy( cstr, tmp ); } } if ( qpwd.isEmpty()) strcpy( tmp, "PWD=" ); else if ( qpwd.isNull()) strcpy( tmp, "" ); else sprintf( tmp, "PWD=%s", qpwd.toAscii().constData()); if ( strlen( tmp ) > 0 ) { if ( strlen( cstr ) > 0 ) { strcat( cstr, ";" ); strcat( cstr, tmp ); } else { strcpy( cstr, tmp ); } } SQLHWND hWnd = NULL; #ifdef WIN32 hWnd = (SQLHWND)(this->winId()); #else ODBCINSTWND Wnd; strcpy( Wnd.szUI, "odbcinstQ4" ); Wnd.hWnd = this; hWnd = (SQLHWND)(&Wnd); #endif ret = SQLDriverConnect( hdbc, hWnd, (SQLCHAR*)cstr, strlen( cstr ), NULL, 0, NULL, SQL_DRIVER_COMPLETE ); pOdbcTest->dumpError( SQL_HANDLE_DBC, hdbc ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLConnect() failed" ); SQLFreeHandle( SQL_HANDLE_DBC, hdbc ); if ( !hand ) { SQLFreeHandle( SQL_HANDLE_ENV, henv ); } return; } /* * allocate a statement handle */ ret = SQLAllocHandle( SQL_HANDLE_STMT, hdbc, &hstmt ); pOdbcTest->dumpError( SQL_HANDLE_DBC, hdbc ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLAllocHandle( SQL_HANDLE_STMT ) failed" ); SQLDisconnect( hdbc ); SQLFreeHandle( SQL_HANDLE_DBC, hdbc ); if ( !hand ) { SQLFreeHandle( SQL_HANDLE_ENV, henv ); } return; } /* * all done, record the handles */ if ( !hand ) { pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_ENV, henv )); } pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_DBC, hdbc )); pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_STMT, hstmt, pOdbcTest->listHandle )); pOdbcTest->out_win->append( "Full Connect Succeeded\n" ); } dFullConnect::dFullConnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 110,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 190,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 270,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 140, 50, 200, 20 ); OdbcHandle * hand = pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handle = new QLabel( "Envronment Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); dsn = new QLineEdit( this ); dsn->setGeometry( 80, 85, 120, 20 ); l_dsn = new QLabel( "DSN:", this ); l_dsn->setGeometry( 10, 85, 60, 20 ); dsn_list = new QListWidget( this ); dsn_list->setGeometry( 80, 106, 120, 100 ); /* * find a env handle, hand is set above */ SQLHANDLE henv; SQLRETURN ret; SQLCHAR dsn_txt[ 128 ]; /* * allocate a handle if required */ if ( !hand ) { ret = SQLAllocEnv( &henv ); if ( !SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( "SQLAllocHandle fails allocating a environment handle" ); return; } } else { henv = hand->getHandle(); } ret = SQLDataSources( henv, SQL_FETCH_FIRST, dsn_txt, sizeof( dsn_txt ), NULL, NULL, 0, NULL ); while ( SQL_SUCCEEDED( ret )) { dsn_list->addItem( (char *)dsn_txt ); ret = SQLDataSources( henv, SQL_FETCH_NEXT, dsn_txt, sizeof( dsn_txt ), NULL, NULL, 0, NULL ); } /* * remove the temp henv */ if ( !hand ) { SQLFreeEnv( henv ); } usr = new QLineEdit( this ); usr->setGeometry( 80, 215, 120, 20 ); usr->setMaxLength( 32 ); l_usr = new QLabel( "User:", this ); l_usr->setGeometry( 10, 215, 60, 20 ); pwd = new QLineEdit( this ); pwd->setGeometry( 80, 245, 120, 20 ); pwd->setEchoMode( QLineEdit::Password ); pwd->setMaxLength( 32 ); l_pwd = new QLabel( "Password:", this ); l_pwd->setGeometry( 10, 245, 60, 20 ); version = new QGroupBox( "ODBC Version", this ); version->setGeometry( 220, 80, 120, 100 ); ver_2 = new QRadioButton( "ODBC 2", version ); ver_2->setGeometry( 10, 20, 100, 20 ); ver_3 = new QRadioButton( "ODBC 3", version ); ver_3->setGeometry( 10, 45, 100, 20 ); ver_def = new QRadioButton( "Default", version ); ver_def->setGeometry( 10, 70, 100, 20 ); ver_def->setChecked( TRUE ); cursor = new QGroupBox( "ODBC Cursors", this ); cursor->setGeometry( 220, 180, 120, 130 ); cur_ifneeded = new QRadioButton( "Use If Needed", cursor ); cur_ifneeded->setGeometry( 10, 20, 100, 20 ); cur_use = new QRadioButton( "Use ODBC", cursor ); cur_use->setGeometry( 10, 45, 100, 20 ); cur_driver = new QRadioButton( "Use Driver", cursor ); cur_driver->setGeometry( 10, 70, 100, 20 ); cur_default = new QRadioButton( "Default", cursor ); cur_default->setGeometry( 10, 95, 100, 20 ); cur_default->setChecked( TRUE ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( dsn_list, SIGNAL(selected(const QString &)), SLOT(set_dsn( const QString &))); } dFullConnect::~dFullConnect() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete dsn; delete l_dsn; delete dsn_list; delete usr; delete l_usr; delete pwd; delete l_pwd; delete ver_2; delete ver_3; delete ver_def; delete version; delete cur_ifneeded; delete cur_use; delete cur_driver; delete cur_default; delete cursor; } void dGetInfo::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "InfoValuePtr: SQL_NULL_POINTER" ); else target_valid->setText( "InfoValuePtr: VALID" ); } void dGetInfo::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StrLenPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StrLenPtr: VALID" ); } void dGetInfo::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); int index; SQLHANDLE in_handle; SQLINTEGER b_len, info_type; SQLSMALLINT strlen, *strlen_ptr; char *buf = NULL; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetInfo():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = type->currentIndex(); info_type = info_options[ index ].attr; txt.sprintf( " Info Type: %s=%d (%s)", info_options[ index ].text, info_options[ index ].attr, info_options[ index ].version ); pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( b_len < 1 ) { b_len = 0; } if ( target_valid->isChecked()) { buf = NULL; } else if ( b_len < 300 ) { buf = new char[ 300 ]; } else { buf = new char[ b_len ]; } if ( buf ) { txt.sprintf( " Info Value Ptr: %p", buf ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Info Value Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } txt.sprintf( " Buffer Length: %d", b_len ); pOdbcTest->out_win->append( txt ); strlen = -9999; if ( strlen_valid->isChecked()) { strlen_ptr = NULL; } else { strlen_ptr = &strlen; } if ( strlen_ptr ) { txt.sprintf( " Strlen Ptr: %p", strlen_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Strlen Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetInfo( in_handle, info_type, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); pOdbcTest->out_win->append( " Out:" ); if ( strlen_ptr ) { if ( strlen == -9999 ) { txt.sprintf( " *Strlen Ptr: " ); } else { txt.sprintf( " *Strlen Ptr: %d", strlen ); } pOdbcTest->out_win->append( txt ); } if ( SQL_SUCCEEDED( ret )) { switch ( info_options[ index ].data_type ) { case SQL_CHAR: txt.sprintf( " *InfoValuePtr = \"%s\"", buf ); pOdbcTest->out_win->append( txt ); break; case SQL_INTEGER: SQLUINTEGER ival; memcpy( &ival, buf, sizeof( ival )); txt.sprintf( " *InfoValuePtr = %d (0x%08X)", ival, ival ); pOdbcTest->out_win->append( txt ); if ( info_options[ index ].values[ 0 ].text ) { if ( info_options[ index ].is_bitmap ) { int i; for ( i = 0; info_options[ index ].values[ i ].text; i ++ ) { if ( info_options[ index ].values[ i ].value & ival ) { txt.sprintf( " %s", info_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; info_options[ index ].values[ i ].text; i ++ ) { if ( (SQLUINTEGER)(info_options[ index ].values[ i ].value) == ival ) { txt.sprintf( " %s", info_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; case SQL_SMALLINT: SQLSMALLINT sval; memcpy( &sval, buf, sizeof( sval )); txt.sprintf( " *InfoValuePtr = %d (0x%04X)", sval, sval ); pOdbcTest->out_win->append( txt ); if ( info_options[ index ].values[ 0 ].text ) { if ( info_options[ index ].is_bitmap ) { int i; for ( i = 0; info_options[ index ].values[ i ].text; i ++ ) { if ( info_options[ index ].values[ i ].value & sval ) { txt.sprintf( " %s", info_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } else { int i; for ( i = 0; info_options[ index ].values[ i ].text; i ++ ) { if ( info_options[ index ].values[ i ].value == sval ) { txt.sprintf( " %s", info_options[ index ].values[ i ].text ); pOdbcTest->out_win->append( txt ); } } } } break; } } if ( buf ) delete buf; pOdbcTest->out_win->append( "" ); } dGetInfo::dGetInfo( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Connection Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); type = new QComboBox( this ); type->setGeometry( 130, 80, 340, 20 ); pOdbcTest->fill_list_box( info_options, type ); l_type = new QLabel( "Info Type:", this ); l_type->setGeometry( 10, 80, 120, 20 ); target_valid = new QCheckBox( "InfoValuePtr: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "StrLenPtr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 110, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 110, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dGetInfo::~dGetInfo() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete type; delete l_type; delete target_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dGetFunctions::target_clkd() { if ( target_valid->isChecked() ) target_valid->setText( "SupportedPtr: SQL_NULL_POINTER" ); else target_valid->setText( "SupportedPtr: VALID" ); } void dGetFunctions::Ok() { OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); int index; SQLHANDLE in_handle = NULL; SQLINTEGER func_type; SQLUSMALLINT single_value, odbc_3_all[ SQL_API_ODBC3_ALL_FUNCTIONS ], odbc_2_all[ 100 ]; SQLUSMALLINT *supported_ptr; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetFunctions():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); index = type->currentIndex(); func_type = gf_options[ index ].attr; txt.sprintf( " FunctionId: %s=%d (%s)", gf_options[ index ].text, gf_options[ index ].attr, gf_options[ index ].version ); pOdbcTest->out_win->append( txt ); if ( target_valid->isChecked()) { supported_ptr = NULL; } else { if ( func_type == SQL_API_ODBC3_ALL_FUNCTIONS ) { supported_ptr = odbc_3_all; } else if ( func_type == SQL_API_ALL_FUNCTIONS ) { supported_ptr = odbc_2_all; } else { supported_ptr = &single_value; } } if ( supported_ptr ) { txt.sprintf( " Supported Ptr: %p", supported_ptr ); pOdbcTest->out_win->append( txt ); } else { txt.sprintf( " Supported Ptr: SQL_NULL_POINTER" ); pOdbcTest->out_win->append( txt ); } SQLRETURN ret = SQLGetFunctions( in_handle, func_type, supported_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( func_type == SQL_API_ODBC3_ALL_FUNCTIONS ) { pOdbcTest->out_win->append( " Out:" ); for ( int i = 0; gf_options[ i ].text; i ++ ) { if ( gf_options[ i ].attr == SQL_API_ODBC3_ALL_FUNCTIONS || gf_options[ i ].attr == SQL_API_ALL_FUNCTIONS ) { continue; } if ( SQL_FUNC_EXISTS( odbc_3_all, gf_options[ i ].attr )) { txt.sprintf( " %s=%d SQL_TRUE", gf_options[ i ].text, gf_options[ i ].attr ); } else { txt.sprintf( " %s=%d SQL_FALSE", gf_options[ i ].text, gf_options[ i ].attr ); } pOdbcTest->out_win->append( txt ); } } else if ( func_type == SQL_API_ALL_FUNCTIONS ) { pOdbcTest->out_win->append( " Out:" ); for ( int i = 0; gf_options[ i ].text; i ++ ) { if ( gf_options[ i ].attr > 99 || gf_options[ i ].attr == SQL_API_ALL_FUNCTIONS ) { continue; } if ( odbc_2_all[ gf_options[ i ].attr ] ) { txt.sprintf( " %s=%d SQL_TRUE", gf_options[ i ].text, gf_options[ i ].attr ); } else { txt.sprintf( " %s=%d SQL_FALSE", gf_options[ index ].text, gf_options[ index ].attr ); } pOdbcTest->out_win->append( txt ); } } else { pOdbcTest->out_win->append( " Out:" ); if ( single_value ) { txt.sprintf( " *SupportedPtr: = SQL_TRUE" ); } else { txt.sprintf( " *SupportedPtr: = SQL_FALSE" ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dGetFunctions::dGetFunctions( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 240,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 320,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 400,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Connection Handle:", this ); l_handle->setGeometry( 10, 50, 120, 20 ); type = new QComboBox( this ); type->setGeometry( 130, 80, 340, 20 ); pOdbcTest->fill_list_box( gf_options, type ); l_type = new QLabel( "FunctionId:", this ); l_type->setGeometry( 10, 80, 120, 20 ); target_valid = new QCheckBox( "SupportedPtr: VALID", this ); target_valid->setGeometry( 10, 110, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( target_valid, SIGNAL( clicked()), this, SLOT( target_clkd())); } dGetFunctions::~dGetFunctions() { delete ok; delete cancel; delete help; delete handles; delete l_handle; delete type; delete l_type; delete target_valid; } void dNativeSQL::out_str_clkd() { if ( out_str_valid->isChecked() ) out_str_valid->setText( "OutStatementText: SQL_NULL_POINTER" ); else out_str_valid->setText( "OutStatementText: VALID" ); } void dNativeSQL::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "TextLength2Ptr: SQL_NULL_POINTER" ); else strlen_valid->setText( "TextLength2Ptr2: VALID" ); } void dNativeSQL::Ok() { const char *in_string, *string_len; SQLCHAR *conn_str_in; SQLCHAR *out_string; SQLINTEGER in_string_len, con_str_out_max; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle; SQLINTEGER con_str_out, *ptr_con_str_out; QString qstring_len, qin_string; if ( hand ) in_handle = hand->getHandle(); qstring_len = str_len->currentText(); string_len = qstring_len.toAscii().constData(); pOdbcTest->out_win->append( "SQLNativeSql():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Connection Handle: %p", in_handle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); qin_string = in_str->currentText(); in_string = qin_string.toAscii().constData(); if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = NULL; pOdbcTest->out_win->append( " InStatementTxt: " ); } else if ( strcmp( in_string, "" ) == 0 ) { conn_str_in = ( SQLCHAR * ) ""; pOdbcTest->out_win->append( " InStatementTxt: " ); } else if ( strcmp( in_string, "" ) == 0 ) { QString *s = new QString( pOdbcTest->in_win->toPlainText() ); if ( s->isEmpty()) in_string = ""; else if ( s->isNull()) in_string = NULL; else in_string = s->toLatin1(); txt.sprintf( " InStatementTxt: %s", in_string ); pOdbcTest->out_win->append( txt ); conn_str_in = ( SQLCHAR * ) in_string; } else { txt.sprintf( " InStatementTxt: %s", in_string ); conn_str_in = ( SQLCHAR * ) in_string; pOdbcTest->out_win->append( txt ); } if ( strncmp( string_len, "SQL_NTS", 7 ) == 0 ) { in_string_len = SQL_NTS; txt.sprintf( " TextLength1: SQL_NTS=-3" ); } else { in_string_len = atoi( string_len ); txt.sprintf( " TextLength1: %d", in_string_len ); } pOdbcTest->out_win->append( txt ); con_str_out_max = buffer_len ->text().toInt(); if ( out_str_valid->isChecked()) { out_string = ( SQLCHAR * ) NULL; } else if ( con_str_out_max < 300 ) { out_string = new SQLCHAR[ 300 ]; } else { out_string = new SQLCHAR[ con_str_out_max ]; } if ( out_string ) { txt.sprintf( " OutStatementText: %p", out_string ); } else { txt.sprintf( " OutStatementText: NULL_POINTER" ); } pOdbcTest->out_win->append( txt ); txt.sprintf( " Buffer Length %d", con_str_out_max ); pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked()) { ptr_con_str_out = NULL; txt.sprintf( " TextLength2Ptr: NULL_POINTER" ); } else { ptr_con_str_out = &con_str_out; txt.sprintf( " TextLength2Ptr: %p", ptr_con_str_out ); } pOdbcTest->out_win->append( txt ); con_str_out = -9999; SQLRETURN ret = SQLNativeSql( in_handle, conn_str_in, in_string_len, out_string, con_str_out_max, ptr_con_str_out ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { if ( out_string ) { txt.sprintf( " OutStatementText: %s", out_string ); pOdbcTest->out_win->append( txt ); } if ( ptr_con_str_out ) { if ( con_str_out == -9999 ) { txt.sprintf( " *TextLength2Ptr: " ); } else { txt.sprintf( " *TextLength2Ptr: %d", con_str_out ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); } dNativeSQL::dNativeSQL( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 290,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 370,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 450,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 15, 150, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handle = new QLabel( "Handle:", this ); l_handle->setGeometry( 10, 15, 80, 20 ); in_str = new QComboBox( this ); in_str->setEditable( true ); in_str->setGeometry( 130, 50, 300, 20 ); l_in_str = new QLabel( "InStatementText:", this ); l_in_str->setGeometry( 10, 50, 90, 20 ); in_str->insertItem( 0, "" ); in_str->insertItem( 1, "" ); in_str->insertItem( 2, "" ); str_len = new QComboBox( this ); str_len->setEditable( true ); str_len->setGeometry( 130, 80, 150, 20 ); l_str_len = new QLabel( "TextLength1:", this ); l_str_len->setGeometry( 10, 80, 90, 20 ); str_len->insertItem( 0, "SQL_NTS=-3" ); str_len->insertItem( 1, "0" ); out_str_valid = new QCheckBox( "OutStatementText: VALID", this ); out_str_valid->setGeometry( 10, 110, 300, 15 ); strlen_valid = new QCheckBox( "TextLength2Ptr: VALID", this ); strlen_valid->setGeometry( 10, 140, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 400, 80, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Len:", this ); l_buffer_len->setGeometry( 320, 80, 60, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( out_str_valid, SIGNAL( clicked()), this, SLOT( out_str_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); } dNativeSQL::~dNativeSQL() { delete ok; delete cancel; delete help; delete handles; delete in_str; delete str_len; delete l_handle; delete l_in_str; delete l_str_len; delete out_str_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; } void dAllocConnect::handle_clkd() { if ( handle_valid->isChecked() ) handle_valid->setText( "phdbc: SQL_NULL_POINTER" ); else handle_valid->setText( "phdbc: VALID" ); } void dAllocConnect::Ok() { SQLHDBC hdbc, *hdbc_ptr; OdbcHandle *hand = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, handles ); SQLHANDLE in_handle; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLAllocConnect():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " Environment Handle: %p", in_handle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); if ( handle_valid->isChecked()) { hdbc_ptr = NULL; txt.sprintf( " phdbc: SQL_NULL_HANDLE" ); } else { hdbc_ptr = &hdbc; txt.sprintf( " phdbc: %p", hdbc_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLAllocConnect( in_handle, hdbc_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && hdbc_ptr ) { txt.sprintf( " *phdbc: %p", hdbc ); pOdbcTest->out_win->append( txt ); pOdbcTest->listHandle.append( new OdbcHandle( SQL_HANDLE_DBC, hdbc ) ); } pOdbcTest->out_win->append( "" ); } dAllocConnect::dAllocConnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 100, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 50, 80, 20 ); handle_valid = new QCheckBox( "phdbc: VALID", this ); handle_valid->setGeometry( 10, 80, 300, 15 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( handle_valid, SIGNAL( clicked()), this, SLOT( handle_clkd())); } dAllocConnect::~dAllocConnect() { delete ok; delete cancel; delete help; delete handle_valid; delete handles; delete l_handles; } void dFreeConnect::Ok() { OdbcHandle *dbc = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; if ( dbc ) in_handle = dbc->getHandle(); pOdbcTest->out_win->append( "SQLFreeConnect():" ); pOdbcTest->out_win->append( " In:" ); if ( in_handle ) txt.sprintf( " hdbc: %p", in_handle ); else txt.sprintf( " hdbc: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLFreeConnect( in_handle ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret ) && in_handle ) { pOdbcTest->listHandle.removeAll( dbc ); delete dbc; } pOdbcTest->out_win->append( "" ); } dFreeConnect::dFreeConnect( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 90,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 170,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 250,10, 70,25 ); handles = new QComboBox( this ); handles->setGeometry( 120, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, handles ); l_handles = new QLabel( "hdbc:", this ); l_handles->setGeometry( 10, 50, 100, 20 ); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dFreeConnect::~dFreeConnect() { delete ok; delete cancel; delete help; delete handles; delete l_handles; } void OdbcTest::slotBrowseConnect() { dBrowseConnect *dlg = new dBrowseConnect( this, "SQLBrowseConnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotConnect() { DlgDbcConnect *dlg = new DlgDbcConnect( this, "SQLConnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotDriverConnect() { dDriverConnect *dlg = new dDriverConnect( this, "SQLDriverConnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotDisconnect() { dDisconnect *dlg = new dDisconnect( this, "SQLDisconnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetInfo() { dGetInfo *dlg = new dGetInfo( this, "GetInfo" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetFunctions() { dGetFunctions *dlg = new dGetFunctions( this, "GetFunctions" ); dlg->exec(); delete dlg; } void OdbcTest::slotNativeSql() { dNativeSQL *dlg = new dNativeSQL( this, "NativeSql" ); dlg->exec(); delete dlg; } void OdbcTest::slotFullConnect() { dFullConnect *dlg = new dFullConnect( this, "FullConnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotFullDisconnect() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } void OdbcTest::slotAllocConnect() { dAllocConnect *dlg = new dAllocConnect( this, "AllocConnect" ); dlg->exec(); delete dlg; } void OdbcTest::slotFreeConnect() { dFreeConnect *dlg = new dFreeConnect( this, "FreeConnect" ); dlg->exec(); delete dlg; } void OdbcTest::getInfoOdbc( SQLHANDLE hdbc ) { attr_options *opt = info_options; if ( !hdbc ) { return; } /* * go through each option, and report */ out_win->append( "SQLGetInfo All" ); while ( opt->text ) { char buf[ 300 ]; SQLSMALLINT str_len; SQLINTEGER info_type; QString txt; info_type = opt->attr; SQLRETURN ret = SQLGetInfo( hdbc, info_type, buf, sizeof( buf ), &str_len ); if ( SQL_SUCCEEDED( ret )) { switch ( opt->data_type ) { case SQL_CHAR: txt.sprintf( " %s=%d (%s) = \"%s\"", opt->text, opt->attr, opt->version, buf ); out_win->append( txt ); break; case SQL_INTEGER: SQLUINTEGER ival; memcpy( &ival, buf, sizeof( ival )); if ( opt->values[ 0 ].text ) { if ( opt->is_bitmap ) { int i; txt.sprintf( " %s=%d (%s) = 0x%08x", opt->text, opt->attr, opt->version, ival ); out_win->append( txt ); for ( i = 0; opt->values[ i ].text; i ++ ) { if ( opt->values[ i ].value & ival ) { txt.sprintf( " %s", opt->values[ i ].text ); out_win->append( txt ); } } } else { int i; txt.sprintf( " %s=%d (%s) = 0x%08x", opt->text, opt->attr, opt->version, ival ); out_win->append( txt ); for ( i = 0; opt->values[ i ].text; i ++ ) { if ( (SQLUINTEGER)(opt->values[ i ].value) == ival ) { txt.sprintf( " %s", opt->values[ i ].text ); out_win->append( txt ); } } } } break; case SQL_SMALLINT: SQLSMALLINT sval; memcpy( &sval, buf, sizeof( sval )); if ( opt->values[ 0 ].text ) { if ( opt->is_bitmap ) { int i; txt.sprintf( " %s=%d (%s) = 0x%04x", opt->text, opt->attr, opt->version, sval ); out_win->append( txt ); for ( i = 0; opt->values[ i ].text; i ++ ) { if ( opt->values[ i ].value & sval ) { txt.sprintf( " %s", opt->values[ i ].text ); out_win->append( txt ); } } } else { int i; txt.sprintf( " %s=%d (%s) = 0x%04x", opt->text, opt->attr, opt->version, sval ); out_win->append( txt ); for ( i = 0; opt->values[ i ].text; i ++ ) { if ( opt->values[ i ].value == sval ) { txt.sprintf( " %s", opt->values[ i ].text ); out_win->append( txt ); } } } } break; } } else { txt.sprintf( " %s=%d (%s) Not Supported", opt->text, opt->attr, opt->version ); out_win->append( txt ); } opt ++; } } void OdbcTest::slotGetInfoAll() { /* * look for a connection handle */ SQLHANDLE hdbc; int handle_count = 0; { QListIterator i( listHandle ); char txt[ 128 ]; while ( i.hasNext() ) { OdbcHandle *hand = i.next(); if ( hand ) hand->toStr( txt ); if ( hand && hand->getType() == SQL_HANDLE_DBC ) { handle_count ++; hdbc = hand->getHandle(); } } } if ( handle_count == 0 ) { QMessageBox::about( this, "Get Info All", "No connection handles avalable" ); } else if ( handle_count == 1 ) { getInfoOdbc( hdbc ); } else { getInfoOdbc(); } } void OdbcTest::slotGetFunctionsAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvEndTran.cpp0000644000175000001440000000464311506076452016555 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvEndTran.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvEndTran.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvEndTran.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvEndTran[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 20, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvEndTran[] = { "DlgEnvEndTran\0\0Ok()\0sel_handle(int)\0" }; const QMetaObject DlgEnvEndTran::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvEndTran, qt_meta_data_DlgEnvEndTran, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvEndTran::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvEndTran::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvEndTran::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvEndTran)) return static_cast(const_cast< DlgEnvEndTran*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvEndTran::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: sel_handle((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/main.cpp0000644000175000001440000000243711506076311014662 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "OdbcTest.h" int main( int argc, char ** argv ) { QApplication a( argc, argv ); OdbcTest m; m.show(); return a.exec(); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvFreeHandle.cpp0000644000175000001440000000452511506076452017216 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvFreeHandle.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvFreeHandle.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvFreeHandle.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvFreeHandle[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 18, 17, 17, 17, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvFreeHandle[] = { "DlgEnvFreeHandle\0\0Ok()\0" }; const QMetaObject DlgEnvFreeHandle::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvFreeHandle, qt_meta_data_DlgEnvFreeHandle, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvFreeHandle::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvFreeHandle::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvFreeHandle::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvFreeHandle)) return static_cast(const_cast< DlgEnvFreeHandle*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvFreeHandle::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsRunAutoTests.cpp0000644000175000001440000000547311506076452020214 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsRunAutoTests.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsRunAutoTests.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsRunAutoTests.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsRunAutoTests[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 22, 21, 21, 21, 0x09, 27, 21, 21, 21, 0x09, 33, 21, 21, 21, 0x09, 49, 21, 21, 21, 0x09, 68, 21, 21, 21, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsRunAutoTests[] = { "DlgToolsRunAutoTests\0\0Ok()\0Log()\0" "LogChanged(int)\0CursorChanged(int)\0" "TestsChanged()\0" }; const QMetaObject DlgToolsRunAutoTests::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsRunAutoTests, qt_meta_data_DlgToolsRunAutoTests, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsRunAutoTests::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsRunAutoTests::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsRunAutoTests::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsRunAutoTests)) return static_cast(const_cast< DlgToolsRunAutoTests*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsRunAutoTests::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: Log(); break; case 2: LogChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: CursorChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: TestsChanged(); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/diag.cpp0000644000175000001440000006365411506076311014652 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "diag.h" #include "OdbcTest.h" static attr_value handle_type_struct[] = { { "SQL_HANDLE_ENV", SQL_HANDLE_ENV, NULL, 0}, { "SQL_HANDLE_DBC", SQL_HANDLE_DBC, NULL, 0}, { "SQL_HANDLE_STMT", SQL_HANDLE_STMT, NULL, 0}, { "SQL_HANDLE_DESC", SQL_HANDLE_DESC, NULL, 0}, { NULL, 0, NULL, 0} }; static attr_options field_type_struct[] = { { "SQL_DIAG_CURSOR_ROW_COUNT", SQL_DIAG_CURSOR_ROW_COUNT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_DYNAMIC_FUNCTION", SQL_DIAG_DYNAMIC_FUNCTION, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_DYNAMIC_FUNCTION_CODE", SQL_DIAG_DYNAMIC_FUNCTION_CODE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_NUMBER", SQL_DIAG_NUMBER, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_RETURNCODE", SQL_DIAG_RETURNCODE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_ROW_COUNT", SQL_DIAG_ROW_COUNT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_CLASS_ORIGIN", SQL_DIAG_CLASS_ORIGIN, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_COLUMN_NUMBER", SQL_DIAG_COLUMN_NUMBER, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_CONNECTION_NAME", SQL_DIAG_CONNECTION_NAME, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_MESSAGE_TEXT", SQL_DIAG_MESSAGE_TEXT, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_NATIVE", SQL_DIAG_NATIVE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_ROW_NUMBER", SQL_DIAG_ROW_NUMBER, { { NULL, 0, NULL, 0 } }, "3.0", SQL_INTEGER, 0, 0 }, { "SQL_DIAG_SERVER_NAME", SQL_DIAG_SERVER_NAME, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_SQLSTATE", SQL_DIAG_SQLSTATE, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { "SQL_DIAG_SUBCLASS_ORIGIN", SQL_DIAG_SUBCLASS_ORIGIN, { { NULL, 0, NULL, 0 } }, "3.0", SQL_CHAR, 0, 0 }, { NULL, 0, { { NULL, 0, NULL, 0 } }, NULL, 0, 0, 0 } }; void dError::sqlstate_clkd() { if ( sqlstate_valid->isChecked() ) sqlstate_valid->setText( "szSqlState: SQL_NULL_POINTER" ); else sqlstate_valid->setText( "szSqlState: VALID" ); } void dError::native_clkd() { if ( native_valid->isChecked() ) native_valid->setText( "pfNativeError: SQL_NULL_POINTER" ); else native_valid->setText( "pfNativeError: VALID" ); } void dError::error_clkd() { if ( error_valid->isChecked() ) error_valid->setText( "szErrorMsg: SQL_NULL_POINTER" ); else error_valid->setText( "szErrorMsg: VALID" ); } void dError::perror_clkd() { if ( perror_valid->isChecked() ) perror_valid->setText( "pcbErrorMsg: SQL_NULL_POINTER" ); else perror_valid->setText( "pcbErrorMsg: VALID" ); } void dError::Ok() { OdbcHandle *stmt = pOdbcTest->extract_handle_list( SQL_HANDLE_STMT, shandles ); OdbcHandle *dbc = pOdbcTest->extract_handle_list( SQL_HANDLE_DBC, chandles ); OdbcHandle *env = pOdbcTest->extract_handle_list( SQL_HANDLE_ENV, ehandles ); SQLHANDLE in_shandle = SQL_NULL_HANDLE; SQLHANDLE in_dhandle = SQL_NULL_HANDLE; SQLHANDLE in_ehandle = SQL_NULL_HANDLE; SQLCHAR sqlstate[ 7 ], *psqlstate; SQLSMALLINT b_len, text_len, *ptext_len; SQLINTEGER native, *pnative; SQLCHAR *buf; if ( env ) in_ehandle = env->getHandle(); if ( dbc ) in_dhandle = dbc->getHandle(); if ( stmt ) in_shandle = stmt->getHandle(); pOdbcTest->out_win->append( "SQLError():" ); pOdbcTest->out_win->append( " In:" ); if ( in_ehandle ) txt.sprintf( " Environment Handle: %p", in_ehandle ); else txt.sprintf( " Environment Handle: SQL_NULL_HENV" ); pOdbcTest->out_win->append( txt ); if ( in_dhandle ) txt.sprintf( " Connection Handle: %p", in_dhandle ); else txt.sprintf( " Connection Handle: SQL_NULL_HDBC" ); pOdbcTest->out_win->append( txt ); if ( in_shandle ) txt.sprintf( " Statement Handle: %p", in_shandle ); else txt.sprintf( " Statement Handle: SQL_NULL_HSTMT" ); pOdbcTest->out_win->append( txt ); if ( sqlstate_valid->isChecked() ) { txt.sprintf( " szSqlState: " ); psqlstate = NULL; } else { psqlstate = sqlstate; strcpy(( char * ) sqlstate, "XYXYXZ" ); txt.sprintf( " szSqlState: %p", psqlstate ); } pOdbcTest->out_win->append( txt ); if ( native_valid->isChecked() ) { txt.sprintf( " pfNativeError: " ); pnative = NULL; } else { pnative = &native; native = -999999; txt.sprintf( " pfNativeError: %p", pnative ); } pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( error_valid->isChecked() ) { buf = NULL; txt.sprintf( " szErrorMsg: " ); } else { if ( b_len < 0 ) b_len = 300; buf = new SQLCHAR[ b_len ]; txt.sprintf( " szErrorMsg: %p", buf ); } pOdbcTest->out_win->append( txt ); txt.sprintf( " cbErrorMsgMax: %d", b_len ); pOdbcTest->out_win->append( txt ); if ( perror_valid->isChecked() ) { txt.sprintf( " pcbErrorMsg: " ); ptext_len = NULL; } else { ptext_len = &text_len; text_len = -9999; txt.sprintf( " pcbErrorMsg: %p", ptext_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLError( in_ehandle, in_dhandle, in_shandle, psqlstate, pnative, buf, b_len, ptext_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( psqlstate ) { if ( strcmp(( char * ) sqlstate, "XYXYXZ" ) == 0 ) { txt.sprintf( " *szSqlState: " ); } else { txt.sprintf( " *szSqlState: %6s", sqlstate ); } pOdbcTest->out_win->append( txt ); } if ( pnative ) { if ( native == -999999 ) { txt.sprintf( " *pfNativeError: " ); } else { txt.sprintf( " *pfNativeError: %d", native ); } pOdbcTest->out_win->append( txt ); } if ( buf ) { txt.sprintf( " *szErrorMsg: %s", buf ); pOdbcTest->out_win->append( txt ); } if ( ptext_len ) { if ( text_len == -9999 ) { txt.sprintf( " *pcbErrorMsg: " ); } else { txt.sprintf( " *pcbErrorMsg: %d", text_len ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( buf ) delete buf; } dError::dError( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); ehandles = new QComboBox( this ); ehandles->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, ehandles ); l_ehandle = new QLabel( "Environment Handle:", this ); l_ehandle->setGeometry( 10, 50, 120, 20 ); chandles = new QComboBox( this ); chandles->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_DBC, chandles ); l_chandle = new QLabel( "Connection Handle:", this ); l_chandle->setGeometry( 10, 80, 120, 20 ); shandles = new QComboBox( this ); shandles->setGeometry( 130, 110, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_STMT, shandles ); l_shandle = new QLabel( "Statement Handle:", this ); l_shandle->setGeometry( 10, 110, 120, 20 ); sqlstate_valid = new QCheckBox( "szSqlState: VALID", this ); sqlstate_valid->setGeometry( 10, 140, 300, 15 ); native_valid = new QCheckBox( "pfNativeError: VALID", this ); native_valid->setGeometry( 10, 170, 300, 15 ); error_valid = new QCheckBox( "szErrorMsg: VALID", this ); error_valid->setGeometry( 10, 200, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 350, 200, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "cbErrorMsgMax:", this ); l_buffer_len->setGeometry( 240, 200, 100, 20 ); perror_valid = new QCheckBox( "pcbErrorMsg: VALID", this ); perror_valid->setGeometry( 10, 230, 300, 15 ); connect( native_valid, SIGNAL( clicked()), this, SLOT( native_clkd())); connect( sqlstate_valid, SIGNAL( clicked()), this, SLOT( sqlstate_clkd())); connect( error_valid, SIGNAL( clicked()), this, SLOT( error_clkd())); connect( perror_valid, SIGNAL( clicked()), this, SLOT( perror_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); } dError::~dError() { delete ok; delete cancel; delete help; delete ehandles; delete chandles; delete shandles; delete l_ehandle; delete l_chandle; delete l_shandle; delete sqlstate_valid; delete native_valid; delete error_valid; delete perror_valid; delete buffer_len; delete l_buffer_len; } void dGetDiagRec::sel_handle( int /* index */ ) { int handle_t; handles->clear(); handle_t = handle_type_struct[ handle_type->currentIndex() ].value; pOdbcTest->fill_handle_list( handle_t, handles ); } void dGetDiagRec::sqlstate_clkd() { if ( sqlstate_valid->isChecked() ) sqlstate_valid->setText( "szSqlState: SQL_NULL_POINTER" ); else sqlstate_valid->setText( "szSqlState: VALID" ); } void dGetDiagRec::native_clkd() { if ( native_valid->isChecked() ) native_valid->setText( "pfNativeError: SQL_NULL_POINTER" ); else native_valid->setText( "pfNativeError: VALID" ); } void dGetDiagRec::error_clkd() { if ( error_valid->isChecked() ) error_valid->setText( "szErrorMsg: SQL_NULL_POINTER" ); else error_valid->setText( "szErrorMsg: VALID" ); } void dGetDiagRec::perror_clkd() { if ( perror_valid->isChecked() ) perror_valid->setText( "pcbErrorMsg: SQL_NULL_POINTER" ); else perror_valid->setText( "pcbErrorMsg: VALID" ); } void dGetDiagRec::Ok() { int htype = handle_type_struct[ handle_type->currentIndex() ].value; OdbcHandle *hand = pOdbcTest->extract_handle_list( htype, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLCHAR sqlstate[ 7 ], *psqlstate; SQLSMALLINT b_len, text_len, *ptext_len; SQLINTEGER native, *pnative, rec_number; SQLCHAR *buf; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetDiagRec():" ); pOdbcTest->out_win->append( " In:" ); txt.sprintf( " Handle Type: %s", handle_type_struct[ handle_type->currentIndex() ].text ); pOdbcTest->out_win->append( txt ); if ( in_handle ) txt.sprintf( " Handle: %p", in_handle ); else txt.sprintf( " Handle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); rec_number = rec_num->text().toInt(); txt.sprintf( " RecNumber: %d", rec_number ); if ( sqlstate_valid->isChecked() ) { txt.sprintf( " szSqlState: " ); psqlstate = NULL; } else { psqlstate = sqlstate; strcpy(( char * ) sqlstate, "XYXYXZ" ); txt.sprintf( " szSqlState: %p", psqlstate ); } pOdbcTest->out_win->append( txt ); if ( native_valid->isChecked() ) { txt.sprintf( " pfNativeError: " ); pnative = NULL; } else { pnative = &native; native = -999999; txt.sprintf( " pfNativeError: %p", pnative ); } pOdbcTest->out_win->append( txt ); b_len = buffer_len->text().toInt(); if ( error_valid->isChecked() ) { buf = NULL; txt.sprintf( " szErrorMsg: " ); } else { if ( b_len < 0 ) b_len = 300; buf = new SQLCHAR[ b_len ]; txt.sprintf( " szErrorMsg: %p", buf ); } pOdbcTest->out_win->append( txt ); txt.sprintf( " cbErrorMsgMax: %d", b_len ); pOdbcTest->out_win->append( txt ); if ( perror_valid->isChecked() ) { txt.sprintf( " pcbErrorMsg: " ); ptext_len = NULL; } else { ptext_len = &text_len; text_len = -9999; txt.sprintf( " pcbErrorMsg: %p", ptext_len ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLGetDiagRec( htype, in_handle, rec_number, psqlstate, pnative, buf, b_len, ptext_len ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( psqlstate ) { if ( strcmp(( char * ) sqlstate, "XYXYXZ" ) == 0 ) { txt.sprintf( " *szSqlState: " ); } else { txt.sprintf( " *szSqlState: %6s", sqlstate ); } pOdbcTest->out_win->append( txt ); } if ( pnative ) { if ( native == -999999 ) { txt.sprintf( " *pfNativeError: " ); } else { txt.sprintf( " *pfNativeError: %d", native ); } pOdbcTest->out_win->append( txt ); } if ( buf ) { txt.sprintf( " *szErrorMsg: %s", buf ); pOdbcTest->out_win->append( txt ); } if ( ptext_len ) { if ( text_len == -9999 ) { txt.sprintf( " *pcbErrorMsg: " ); } else { txt.sprintf( " *pcbErrorMsg: %d", text_len ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( buf ) delete buf; } dGetDiagRec::dGetDiagRec( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 190,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 270,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 350,10, 70,25 ); handle_type = new QComboBox( this ); handle_type->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_list_box( handle_type_struct, handle_type ); l_handle_type = new QLabel( "Handle Type:", this ); l_handle_type->setGeometry( 10, 50, 120, 20 ); handles = new QComboBox( this ); handles->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 80, 120, 20 ); rec_num = new QLineEdit( this ); rec_num->setGeometry( 130, 110, 70, 20 ); rec_num->setMaxLength( 6 ); rec_num->setText( "1" ); l_rec_num = new QLabel( "Rec Number:", this ); l_rec_num->setGeometry( 10, 110, 100, 20 ); sqlstate_valid = new QCheckBox( "szSqlState: VALID", this ); sqlstate_valid->setGeometry( 10, 140, 300, 15 ); native_valid = new QCheckBox( "pfNativeError: VALID", this ); native_valid->setGeometry( 10, 170, 300, 15 ); error_valid = new QCheckBox( "szErrorMsg: VALID", this ); error_valid->setGeometry( 10, 200, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 350, 200, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "cbErrorMsgMax:", this ); l_buffer_len->setGeometry( 240, 200, 100, 20 ); perror_valid = new QCheckBox( "pcbErrorMsg: VALID", this ); perror_valid->setGeometry( 10, 230, 300, 15 ); connect( native_valid, SIGNAL( clicked()), this, SLOT( native_clkd())); connect( sqlstate_valid, SIGNAL( clicked()), this, SLOT( sqlstate_clkd())); connect( error_valid, SIGNAL( clicked()), this, SLOT( error_clkd())); connect( perror_valid, SIGNAL( clicked()), this, SLOT( perror_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( handle_type, SIGNAL(activated(int)), this, SLOT( sel_handle(int))); } dGetDiagRec::~dGetDiagRec() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete handle_type; delete l_handle_type; delete sqlstate_valid; delete native_valid; delete error_valid; delete perror_valid; delete buffer_len; delete l_buffer_len; delete rec_num; delete l_rec_num; } void dGetDiagField::sel_handle( int /* index */ ) { int handle_t; handles->clear(); handle_t = handle_type_struct[ handle_type->currentIndex() ].value; pOdbcTest->fill_handle_list( handle_t, handles ); } void dGetDiagField::diag_ptr_clkd() { if ( diag_ptr_valid->isChecked() ) diag_ptr_valid->setText( "DiagInfoPtr: SQL_NULL_POINTER" ); else diag_ptr_valid->setText( "DiagInfoPtr: VALID" ); } void dGetDiagField::strlen_clkd() { if ( strlen_valid->isChecked() ) strlen_valid->setText( "StringLengthPtr: SQL_NULL_POINTER" ); else strlen_valid->setText( "StringLengthPtr: VALID" ); } void dGetDiagField::Ok() { int htype = handle_type_struct[ handle_type->currentIndex() ].value; OdbcHandle *hand = pOdbcTest->extract_handle_list( htype, handles ); SQLHANDLE in_handle = SQL_NULL_HANDLE; SQLSMALLINT b_len, *strlen_ptr, strlen_val, attribute; SQLINTEGER rec_number; SQLCHAR *buf; if ( hand ) in_handle = hand->getHandle(); pOdbcTest->out_win->append( "SQLGetDiagField():" ); pOdbcTest->out_win->append( " In:" ); txt.sprintf( " Handle Type: %s", handle_type_struct[ handle_type->currentIndex() ].text ); pOdbcTest->out_win->append( txt ); if ( in_handle ) txt.sprintf( " Handle: %p", in_handle ); else txt.sprintf( " Handle: SQL_NULL_HANDLE" ); pOdbcTest->out_win->append( txt ); rec_number = rec_num->text().toInt(); txt.sprintf( " RecNumber: %d", rec_number ); attribute = field_type_struct[ diag_info->currentIndex() ].attr; txt.sprintf( " DiagIdentifier: %s=%d", field_type_struct[ diag_info->currentIndex() ].text, field_type_struct[ diag_info->currentIndex() ].attr ); b_len = buffer_len->text().toInt(); if ( diag_ptr_valid->isChecked() ) { buf = NULL; txt.sprintf( " DiagInfo: " ); } else { if ( b_len < 0 ) b_len = 300; buf = new SQLCHAR[ b_len ]; txt.sprintf( " DiagInfo: %p", buf ); } pOdbcTest->out_win->append( txt ); if ( strlen_valid->isChecked() ) { txt.sprintf( " StringLengthPtr: " ); strlen_ptr = NULL; } else { strlen_ptr = &strlen_val; strlen_val = -9999; txt.sprintf( " StringLengthPtr: %p", strlen_ptr ); } pOdbcTest->out_win->append( txt ); SQLRETURN ret = SQLGetDiagField( htype, in_handle, rec_number, attribute, buf, b_len, strlen_ptr ); pOdbcTest->out_win->append( " Return:" ); txt.sprintf( " %s=%d", pOdbcTest->return_as_text( ret ), ret ); pOdbcTest->out_win->append( txt ); if ( SQL_SUCCEEDED( ret )) { pOdbcTest->out_win->append( " Out:" ); if ( field_type_struct[ diag_info->currentIndex() ].data_type == SQL_INTEGER ) { if ( buf ) { int lval; memcpy( &lval, buf, sizeof( lval )); txt.sprintf( " *DiagInfo: %d", lval ); pOdbcTest->out_win->append( txt ); } } else { if ( buf ) { txt.sprintf( " *DiagInfo: %s", buf ); pOdbcTest->out_win->append( txt ); } } if ( strlen_ptr ) { if ( strlen_val == -9999 ) { txt.sprintf( " *StringLengthPtr: " ); } else { txt.sprintf( " *StringLengthPtr: %d", strlen_val ); } pOdbcTest->out_win->append( txt ); } } pOdbcTest->out_win->append( "" ); if ( buf ) delete buf; } dGetDiagField::dGetDiagField( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); setModal( true ); this->pOdbcTest = pOdbcTest; ok = new QPushButton( "OK", this ); ok->setGeometry( 250,10, 70,25 ); cancel = new QPushButton( "Cancel", this ); cancel->setGeometry( 330,10, 70,25 ); help = new QPushButton( "Help", this ); help->setGeometry( 410,10, 70,25 ); handle_type = new QComboBox( this ); handle_type->setGeometry( 130, 50, 200, 20 ); pOdbcTest->fill_list_box( handle_type_struct, handle_type ); l_handle_type = new QLabel( "Handle Type:", this ); l_handle_type->setGeometry( 10, 50, 120, 20 ); handles = new QComboBox( this ); handles->setGeometry( 130, 80, 200, 20 ); pOdbcTest->fill_handle_list( SQL_HANDLE_ENV, handles ); l_handles = new QLabel( "Handle:", this ); l_handles->setGeometry( 10, 80, 120, 20 ); rec_num = new QLineEdit( this ); rec_num->setGeometry( 130, 110, 70, 20 ); rec_num->setMaxLength( 6 ); rec_num->setText( "1" ); l_rec_num = new QLabel( "Rec Number:", this ); l_rec_num->setGeometry( 10, 110, 100, 20 ); diag_info = new QComboBox( this ); diag_info->setGeometry( 130, 140, 350, 20 ); pOdbcTest->fill_list_box( field_type_struct, diag_info ); l_diag_info = new QLabel( "Diag Identifier::", this ); l_diag_info->setGeometry( 10, 140, 120, 20 ); diag_ptr_valid = new QCheckBox( "DiagInfoPtr: VALID", this ); diag_ptr_valid->setGeometry( 10, 170, 300, 15 ); buffer_len = new QLineEdit( this ); buffer_len->setGeometry( 130, 200, 70, 20 ); buffer_len->setMaxLength( 6 ); buffer_len->setText( "300" ); l_buffer_len = new QLabel( "Buffer Length:", this ); l_buffer_len->setGeometry( 10, 200, 100, 20 ); strlen_valid = new QCheckBox( "pcbErrorMsg: VALID", this ); strlen_valid->setGeometry( 10, 230, 300, 15 ); connect( diag_ptr_valid, SIGNAL( clicked()), this, SLOT( diag_ptr_clkd())); connect( strlen_valid, SIGNAL( clicked()), this, SLOT( strlen_clkd())); connect( cancel, SIGNAL(clicked()), SLOT(reject()) ); connect( ok, SIGNAL(clicked()), SLOT(Ok()) ); connect( ok, SIGNAL(clicked()), SLOT(accept()) ); connect( handle_type, SIGNAL(activated(int)), this, SLOT( sel_handle(int))); } dGetDiagField::~dGetDiagField() { delete ok; delete cancel; delete help; delete handles; delete l_handles; delete handle_type; delete l_handle_type; delete diag_ptr_valid; delete strlen_valid; delete buffer_len; delete l_buffer_len; delete rec_num; delete l_rec_num; } void OdbcTest::slotGetDiagRec() { dGetDiagRec *dlg = new dGetDiagRec( this, "SQLGetDiagRec" ); dlg->exec(); delete dlg; } void OdbcTest::slotGetDiagField() { dGetDiagField *dlg = new dGetDiagField( this, "SQLGetDiagField" ); dlg->exec(); delete dlg; } void OdbcTest::slotError() { dError *dlg = new dError( this, "SQLError" ); dlg->exec(); delete dlg; } void OdbcTest::slotErrorsAll() { QMessageBox::about( this, "ODBC Test", "Not yet implemented" ); } unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsRunAutoTests.h0000644000175000001440000000447511506076311017477 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsRunAutoTests : public QDialog { Q_OBJECT public: DlgToolsRunAutoTests( OdbcTest *pOdbcTest, QString name ); ~DlgToolsRunAutoTests(); protected: QPushButton *run_list, *ok, *cancel, *log_file; OdbcTest *pOdbcTest; QComboBox *rlist; QLabel *l_tests, *l_sources, *l_log; QGroupBox *output, *options; QListWidget *sources; QTreeWidget *tests; QCheckBox *b_log_file, *b_screen, *b_debug, *b_isolate, *b_cursor; void add_auto_test( const QString &stringTest, QTreeWidgetItem *top, QTreeWidgetItem **last_test ); protected slots: void Ok(); void Log(); void LogChanged(int); void CursorChanged(int); void TestsChanged(); private: int cursor_state; void runSources( SERVERINFO *pServerInfo ); void runGroups( SERVERINFO *pServerInfo, const QString &stringSource ); void runTests( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemGroup ); void runTest( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemTest ); void runTestCases( SERVERINFO *pServerInfo, QTreeWidgetItem *ptreewidgetitemTest, AUTOTESTFUNC pAutoTestFunc, UINT nTestCases ); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgToolsManageAutoTest.cpp0000644000175000001440000000544211506076452020451 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgToolsManageAutoTest.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgToolsManageAutoTest.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgToolsManageAutoTest.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgToolsManageAutoTest[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 24, 23, 23, 23, 0x09, 29, 23, 23, 23, 0x09, 36, 23, 23, 23, 0x09, 47, 42, 23, 23, 0x09, 67, 23, 23, 23, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgToolsManageAutoTest[] = { "DlgToolsManageAutoTest\0\0Ok()\0From()\0" "Add()\0name\0ListSelect(QString)\0Remove()\0" }; const QMetaObject DlgToolsManageAutoTest::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgToolsManageAutoTest, qt_meta_data_DlgToolsManageAutoTest, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgToolsManageAutoTest::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgToolsManageAutoTest::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgToolsManageAutoTest::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgToolsManageAutoTest)) return static_cast(const_cast< DlgToolsManageAutoTest*>(this)); return QDialog::qt_metacast(_clname); } int DlgToolsManageAutoTest::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; case 1: From(); break; case 2: Add(); break; case 3: ListSelect((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 4: Remove(); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvAllocHandle.cpp0000644000175000001440000000473611506076452017373 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvAllocHandle.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvAllocHandle.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvAllocHandle.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvAllocHandle[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 41, 18, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvAllocHandle[] = { "DlgEnvAllocHandle\0\0out_handle_ptr_clkd()\0" "slotDone()\0" }; const QMetaObject DlgEnvAllocHandle::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvAllocHandle, qt_meta_data_DlgEnvAllocHandle, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvAllocHandle::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvAllocHandle::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvAllocHandle::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvAllocHandle)) return static_cast(const_cast< DlgEnvAllocHandle*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvAllocHandle::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: out_handle_ptr_clkd(); break; case 1: slotDone(); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsNewGroup.h0000644000175000001440000000310011506076311016605 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgToolsManageTestGroup; class DlgToolsNewGroup : public QDialog { Q_OBJECT public: DlgToolsNewGroup( OdbcTest *pOdbcTest, QString name, DlgToolsManageTestGroup *ptest ); ~DlgToolsNewGroup(); protected: QPushButton *ok, *cancel; OdbcTest *pOdbcTest; QLineEdit *source; QLabel *l_dsn; DlgToolsManageTestGroup *parent_test; protected slots: void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgEnvEndTran.h0000644000175000001440000000317511506076311016036 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class DlgEnvEndTran : public QDialog { Q_OBJECT public: DlgEnvEndTran( OdbcTest *pOdbcTest, QString name ); ~DlgEnvEndTran(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *handle_type, *completion_type; QLabel *l_handles, *l_handle_type, *l_completion_type; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Ok(); void sel_handle( int ); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvFreeEnv.cpp0000644000175000001440000000445011506076452016550 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvFreeEnv.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvFreeEnv.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvFreeEnv.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvFreeEnv[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvFreeEnv[] = { "DlgEnvFreeEnv\0\0Ok()\0" }; const QMetaObject DlgEnvFreeEnv::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvFreeEnv, qt_meta_data_DlgEnvFreeEnv, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvFreeEnv::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvFreeEnv::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvFreeEnv::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvFreeEnv)) return static_cast(const_cast< DlgEnvFreeEnv*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvFreeEnv::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/mDlgEnvTransact.cpp0000644000175000001440000000446711506076452017005 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'DlgEnvTransact.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "DlgEnvTransact.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'DlgEnvTransact.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_DlgEnvTransact[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x09, 0 // eod }; static const char qt_meta_stringdata_DlgEnvTransact[] = { "DlgEnvTransact\0\0Ok()\0" }; const QMetaObject DlgEnvTransact::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_DlgEnvTransact, qt_meta_data_DlgEnvTransact, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &DlgEnvTransact::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *DlgEnvTransact::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *DlgEnvTransact::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_DlgEnvTransact)) return static_cast(const_cast< DlgEnvTransact*>(this)); return QDialog::qt_metacast(_clname); } int DlgEnvTransact::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: Ok(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/DlgToolsManageAutoTest.cpp0000644000175000001440000002261611506076311020270 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #include "DlgToolsManageAutoTest.h" #include "OdbcTest.h" DlgToolsManageAutoTest::DlgToolsManageAutoTest( OdbcTest *pOdbcTest, QString name ) : QDialog( pOdbcTest ) { setWindowTitle( name ); this->pOdbcTest = pOdbcTest; from = new QPushButton( "From", this ); from->setGeometry( 10,18, 70,25 ); s_from = new QLabel( "Path", this ); s_from->setGeometry( 100, 20, 300, 20 ); add = new QPushButton( "Add >", this ); add->setGeometry( 180,90, 70,25 ); remove = new QPushButton( "< Remove", this ); remove->setGeometry( 180,130, 70,25 ); close = new QPushButton( "Close", this ); close->setGeometry( 180,200, 70,25 ); lib_list = new QListWidget( this ); lib_list->setGeometry( 10, 80, 150, 160 ); test_list = new QListWidget( this ); test_list->setGeometry( 270, 80, 250, 160 ); l_avail = new QLabel( "Available Test Libs:", this ); l_avail->setGeometry( 10, 55, 200, 20 ); l_lib = new QLabel( "Installed Auto Tests:", this ); l_lib->setGeometry( 270, 55, 200, 20 ); l_name = new QLabel( "Name:", this ); l_name->setGeometry( 10, 255, 200, 20 ); l_so = new QLabel( "Lib:", this ); l_so->setGeometry( 10, 280, 200, 20 ); s_name = new QLabel( "NAME", this ); s_name->setGeometry( 70, 255, 200, 20 ); s_lib = new QLabel( "LIB", this ); s_lib->setGeometry( 70, 280, 300, 20 ); connect( close, SIGNAL(clicked()), SLOT(Ok()) ); connect( close, SIGNAL(clicked()), SLOT(accept()) ); connect( from, SIGNAL(clicked()), SLOT(From()) ); connect( add, SIGNAL(clicked()), SLOT(Add()) ); connect( remove, SIGNAL(clicked()), SLOT(Remove()) ); // load test list... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); test_list->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // // Setup the path, initially to the current directory // { QSettings settings( "unixODBC-GUI-Qt", "OdbcTestQ4" ); settings.beginGroup( "DlgToolsManageAutoTest" ); QString stringPath = settings.value( "From", QDir::currentPath() ).toString(); settings.endGroup(); setPath( stringPath ); } connect( test_list, SIGNAL(currentTextChanged(const QString &)), SLOT(ListSelect(const QString&)) ); test_list->setCurrentItem( 0 ); } DlgToolsManageAutoTest::~DlgToolsManageAutoTest() { // sync settings with disk (mostly means 'save changes') { pOdbcTest->pSettings->sync(); QSettings::Status nStatus = pOdbcTest->pSettings->status(); switch ( nStatus ) { case QSettings::AccessError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AccessError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::FormatError: QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("FormatError when sync() settings to %1") ).arg( pOdbcTest->pSettings->fileName() ) ); break; case QSettings::NoError: default: break; } } delete close; delete add; delete remove; delete from; delete s_from; delete lib_list; delete test_list; delete l_avail; delete l_lib; delete l_name; delete l_so; delete s_name; delete s_lib; } void DlgToolsManageAutoTest::Ok() { } void DlgToolsManageAutoTest::setPath( QString &stringPath ) { s_from->setText( stringPath ); // // extract any libs from the path // lib_list->clear(); QDir q_d( stringPath ); if ( q_d.exists()) { q_d.setFilter( QDir::Files | QDir::Hidden ); for ( uint i=0; i < q_d.count(); i++ ) { lib_list ->addItem( q_d[i] ); } } } void DlgToolsManageAutoTest::Add() { int index = lib_list ->currentRow(); if ( index < 0 ) return; QListWidgetItem *lbi = lib_list->item( index ); QDir q_d( s_from->text()); QString path = q_d.filePath ( lbi->text() ); QLibrary l( path ); if ( !l.load() ) { QMessageBox::critical( pOdbcTest, "OdbcTest", l.errorString() + tr("\nWhile trying to load;\n") + path ); return; } // // Try and extract the symbols // void *pfAutoTestDesc, *pfAutoTestFunc; BOOL (*pfAutoTestName)(LPSTR,UINT*); pfAutoTestName = (BOOL(*)(LPSTR,UINT*))l.resolve( "AutoTestName" ); pfAutoTestDesc = l.resolve( "AutoTestDesc" ); pfAutoTestFunc = l.resolve( "AutoTestFunc" ); if ( !pfAutoTestName && !pfAutoTestDesc && !pfAutoTestFunc ) { QMessageBox::critical( pOdbcTest, "OdbcTest", l.errorString() ); QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("Could not find one or more of AutoTestName, AutoTestDesc, or AutoTestFunc in auto test\n%1") ).arg( path ) ); return; } char szAutoTestName[ AUTO_MAX_TEST_NAME + 1 ]; // name of test as provided by test library UINT nTestCases = 0; // each test library may have 0-n test cases if ( pfAutoTestName ) { // get the test name... if ( !pfAutoTestName( szAutoTestName, &nTestCases ) ) { QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AutoTestName returned FALSE in %1") ).arg( path ) ); return; } } else { QMessageBox::critical( pOdbcTest, "OdbcTest", QString( tr("AutoTestName not exported from %1") ).arg( path ) ); return; } // does test already exist... if ( pOdbcTest->pSettings->contains( szAutoTestName ) ) { QMessageBox::information( pOdbcTest, "OdbcTest", QString( tr("Auto test '%1'already installed") ).arg( szAutoTestName ) ); return; } // add test to master list... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); pOdbcTest->pSettings->setValue( szAutoTestName, nTestCases ); pOdbcTest->pSettings->endGroup(); // add test section & entries... pOdbcTest->pSettings->beginGroup( szAutoTestName ); pOdbcTest->pSettings->setValue( "DLL", path ); /*! \todo escape slashs */ pOdbcTest->pSettings->endGroup(); // reload list... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); test_list->clear(); test_list->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); test_list->setCurrentItem( 0 ); ListSelect( szAutoTestName ); } void DlgToolsManageAutoTest::From() { QFileDialog FileDialog( this, "From..." ); FileDialog.setDirectory( s_from->text() ); FileDialog.setFileMode( QFileDialog::Directory ); if ( FileDialog.exec() == QDialog::Accepted ) { QString stringPath = FileDialog.directory().absolutePath(); setPath( stringPath ); QSettings settings( "unixODBC-GUI-Qt", "OdbcTestQ4" ); settings.beginGroup( "DlgToolsManageAutoTest" ); settings.setValue( "From", stringPath ); settings.endGroup(); } } void DlgToolsManageAutoTest::ListSelect( const QString &name ) { if ( pOdbcTest->pSettings->childGroups().contains( name ) ) { s_name->setText( name ); s_lib->setText( "" ); // get the DLL name... pOdbcTest->pSettings->beginGroup( name ); s_lib->setText( pOdbcTest->pSettings->value( "DLL" ).toString() ); pOdbcTest->pSettings->endGroup(); } else { s_name->setText( "" ); s_lib->setText( "" ); } } void DlgToolsManageAutoTest::Remove() { QListWidgetItem *pListWidgetItem = test_list->currentItem(); if ( !pListWidgetItem ) return; // remove from master list... pOdbcTest->pSettings->beginGroup( "Auto Tests" ); pOdbcTest->pSettings->remove( pListWidgetItem->text() ); pOdbcTest->pSettings->endGroup(); // remove section & entries... pOdbcTest->pSettings->remove( pListWidgetItem->text() ); // reload list... { pOdbcTest->pSettings->beginGroup( "Auto Tests" ); test_list->clear(); test_list->addItems( pOdbcTest->pSettings->allKeys() ); pOdbcTest->pSettings->endGroup(); // select first item... if ( test_list->count() ) { test_list->setCurrentItem( 0 ); ListSelect( test_list->currentItem()->text() ); } } } unixodbc-gui-qt-2.3.0/ODBCTestQ4/mOdbcTest.cpp0000644000175000001440000003627711506076452015641 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'OdbcTest.h' ** ** Created: Mon Dec 27 12:48:58 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "OdbcTest.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'OdbcTest.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_OdbcTest[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 129, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: signature, parameters, type, tag, flags 10, 9, 9, 9, 0x05, // slots: signature, parameters, type, tag, flags 27, 9, 9, 9, 0x0a, 38, 9, 9, 9, 0x0a, 55, 9, 9, 9, 0x0a, 74, 9, 9, 9, 0x0a, 86, 9, 9, 9, 0x0a, 102, 9, 9, 9, 0x0a, 117, 9, 9, 9, 0x0a, 135, 9, 9, 9, 0x0a, 153, 9, 9, 9, 0x0a, 167, 9, 9, 9, 0x0a, 181, 9, 9, 9, 0x0a, 198, 9, 9, 9, 0x0a, 212, 9, 9, 9, 0x0a, 227, 9, 9, 9, 0x0a, 248, 9, 9, 9, 0x0a, 265, 9, 9, 9, 0x0a, 284, 9, 9, 9, 0x0a, 304, 9, 9, 9, 0x0a, 318, 9, 9, 9, 0x0a, 338, 9, 9, 9, 0x0a, 355, 9, 9, 9, 0x0a, 373, 9, 9, 9, 0x0a, 392, 9, 9, 9, 0x0a, 406, 9, 9, 9, 0x0a, 422, 9, 9, 9, 0x0a, 440, 9, 9, 9, 0x0a, 461, 9, 9, 9, 0x0a, 478, 9, 9, 9, 0x0a, 500, 9, 9, 9, 0x0a, 515, 9, 9, 9, 0x0a, 534, 9, 9, 9, 0x0a, 551, 9, 9, 9, 0x0a, 570, 9, 9, 9, 0x0a, 587, 9, 9, 9, 0x0a, 604, 9, 9, 9, 0x0a, 620, 9, 9, 9, 0x0a, 636, 9, 9, 9, 0x0a, 656, 9, 9, 9, 0x0a, 669, 9, 9, 9, 0x0a, 687, 9, 9, 9, 0x0a, 707, 9, 9, 9, 0x0a, 721, 9, 9, 9, 0x0a, 738, 9, 9, 9, 0x0a, 753, 9, 9, 9, 0x0a, 773, 9, 9, 9, 0x0a, 789, 9, 9, 9, 0x0a, 805, 9, 9, 9, 0x0a, 824, 9, 9, 9, 0x0a, 838, 9, 9, 9, 0x0a, 852, 9, 9, 9, 0x0a, 872, 9, 9, 9, 0x0a, 888, 9, 9, 9, 0x0a, 904, 9, 9, 9, 0x0a, 929, 9, 9, 9, 0x0a, 947, 9, 9, 9, 0x0a, 965, 9, 9, 9, 0x0a, 985, 9, 9, 9, 0x0a, 1005, 9, 9, 9, 0x0a, 1026, 9, 9, 9, 0x0a, 1047, 9, 9, 9, 0x0a, 1070, 9, 9, 9, 0x0a, 1093, 9, 9, 9, 0x0a, 1110, 9, 9, 9, 0x0a, 1127, 9, 9, 9, 0x0a, 1153, 9, 9, 9, 0x0a, 1167, 9, 9, 9, 0x0a, 1188, 9, 9, 9, 0x0a, 1208, 9, 9, 9, 0x0a, 1227, 9, 9, 9, 0x0a, 1245, 9, 9, 9, 0x0a, 1265, 9, 9, 9, 0x0a, 1277, 9, 9, 9, 0x0a, 1295, 9, 9, 9, 0x0a, 1309, 9, 9, 9, 0x0a, 1327, 9, 9, 9, 0x0a, 1347, 9, 9, 9, 0x0a, 1362, 9, 9, 9, 0x0a, 1375, 9, 9, 9, 0x0a, 1398, 9, 9, 9, 0x0a, 1415, 9, 9, 9, 0x0a, 1436, 9, 9, 9, 0x0a, 1451, 9, 9, 9, 0x0a, 1468, 9, 9, 9, 0x0a, 1488, 9, 9, 9, 0x0a, 1508, 9, 9, 9, 0x0a, 1522, 9, 9, 9, 0x0a, 1545, 9, 9, 9, 0x0a, 1563, 9, 9, 9, 0x0a, 1581, 9, 9, 9, 0x0a, 1599, 9, 9, 9, 0x0a, 1616, 9, 9, 9, 0x0a, 1639, 9, 9, 9, 0x0a, 1660, 9, 9, 9, 0x0a, 1677, 9, 9, 9, 0x0a, 1690, 9, 9, 9, 0x0a, 1712, 9, 9, 9, 0x0a, 1736, 9, 9, 9, 0x0a, 1766, 9, 9, 9, 0x0a, 1789, 9, 9, 9, 0x0a, 1812, 9, 9, 9, 0x0a, 1827, 9, 9, 9, 0x0a, 1850, 9, 9, 9, 0x0a, 1870, 9, 9, 9, 0x0a, 1890, 9, 9, 9, 0x0a, 1910, 9, 9, 9, 0x0a, 1930, 9, 9, 9, 0x0a, 1952, 9, 9, 9, 0x0a, 1978, 9, 9, 9, 0x0a, 2004, 9, 9, 9, 0x0a, 2031, 9, 9, 9, 0x0a, 2049, 9, 9, 9, 0x0a, 2068, 9, 9, 9, 0x0a, 2100, 9, 9, 9, 0x0a, 2130, 9, 9, 9, 0x0a, 2154, 9, 9, 9, 0x0a, 2180, 9, 9, 9, 0x0a, 2203, 9, 9, 9, 0x0a, 2223, 9, 9, 9, 0x0a, 2243, 9, 9, 9, 0x0a, 2263, 9, 9, 9, 0x0a, 2277, 9, 9, 9, 0x0a, 2289, 9, 9, 9, 0x0a, 2313, 9, 9, 9, 0x0a, 2335, 9, 9, 9, 0x0a, 2358, 9, 9, 9, 0x0a, 2377, 9, 9, 9, 0x0a, 2392, 9, 9, 9, 0x0a, 2406, 9, 9, 9, 0x0a, 0 // eod }; static const char qt_meta_stringdata_OdbcTest[] = { "OdbcTest\0\0explain(QString)\0slotExit()\0" "slotGetDiagRec()\0slotGetDiagField()\0" "slotError()\0slotErrorsAll()\0slotAllocEnv()\0" "slotAllocHandle()\0slotDataSources()\0" "slotDrivers()\0slotFreeEnv()\0" "slotFreeHandle()\0slotEndTran()\0" "slotTransact()\0slotDataSourcesAll()\0" "slotDriversAll()\0slotAllocConnect()\0" "slotBrowseConnect()\0slotConnect()\0" "slotDriverConnect()\0slotDisconnect()\0" "slotFreeConnect()\0slotGetFunctions()\0" "slotGetInfo()\0slotNativeSql()\0" "slotFullConnect()\0slotFullDisconnect()\0" "slotGetInfoAll()\0slotGetFunctionsAll()\0" "slotCopyDesc()\0slotGetDescField()\0" "slotGetDescRec()\0slotSetDescField()\0" "slotSetDescRec()\0slotGetDescAll()\0" "slotAllocStmt()\0slotBindParam()\0" "slotBindParameter()\0slotCancel()\0" "slotCloseCursor()\0slotDescribeParam()\0" "slotExecute()\0slotExecDirect()\0" "slotFreeStmt()\0slotGetCursorName()\0" "slotNumParams()\0slotParamData()\0" "slotParamOptions()\0slotPrepare()\0" "slotPutData()\0slotSetCursorName()\0" "slotFillParam()\0slotShowParam()\0" "slotShowCursorSettings()\0slotSetStmtAttr()\0" "slotGetStmtAttr()\0slotSetStmtOption()\0" "slotGetStmtOption()\0slotSetConnectAttr()\0" "slotGetConnectAttr()\0slotSetConnectOption()\0" "slotGetConnectOption()\0slotSetEnvAttr()\0" "slotGetEnvAttr()\0slotSetCursorAttributes()\0" "slotBindCol()\0slotBulkOperations()\0" "slotColAttributes()\0slotColAttribute()\0" "slotDescribeCol()\0slotExtendedFetch()\0" "slotFetch()\0slotFetchScroll()\0" "slotGetData()\0slotMoreResults()\0" "slotNumResultCols()\0slotRowCount()\0" "slotSetPos()\0slotSetScrollOptions()\0" "slotBindColAll()\0slotDescribeColAll()\0" "slotFetchAll()\0slotGetDataAll()\0" "slotShowBoundCols()\0slotDisplayRowSet()\0" "slotColumns()\0slotColumnPrivileges()\0" "slotGetTypeInfo()\0slotForeignKeys()\0" "slotPrimaryKeys()\0slotProcedures()\0" "slotProcedureColumns()\0slotSpecialColumns()\0" "slotStatistics()\0slotTables()\0" "slotTablePrivileges()\0slotManageDataSources()\0" "slotRemoveDefaultDataSource()\0" "slotConfigDataSource()\0slotCreateDataSource()\0" "slotValidDSN()\0slotRemoveDSNFromIni()\0" "slotWriteDSNToIni()\0slotRemoveDrivers()\0" "slotConfigDrivers()\0slotInstallDriver()\0" "slotInstallDriverEx()\0slotGetInstalledDrivers()\0" "slotRemoveDriverManager()\0" "slotInstallDriverManager()\0slotReadFileDSN()\0" "slotWriteFileDSN()\0slotWritePrivateProfileString()\0" "slotGetPrivateProfileString()\0" "slotInstallTranslator()\0" "slotInstallTranslatorEx()\0" "slotRemoveTranslator()\0slotGetTranslator()\0" "slotSetConfigMode()\0slotGetConfigMode()\0" "slotOptions()\0slotTrace()\0" "slotManageTestSources()\0slotManageAutoTests()\0" "slotManageTestGroups()\0slotRunAutoTests()\0" "slotHelpTest()\0slotHelpApi()\0" "slotHelpAbout()\0" }; const QMetaObject OdbcTest::staticMetaObject = { { &QMainWindow::staticMetaObject, qt_meta_stringdata_OdbcTest, qt_meta_data_OdbcTest, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &OdbcTest::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *OdbcTest::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *OdbcTest::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_OdbcTest)) return static_cast(const_cast< OdbcTest*>(this)); return QMainWindow::qt_metacast(_clname); } int OdbcTest::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: explain((*reinterpret_cast< const QString(*)>(_a[1]))); break; case 1: slotExit(); break; case 2: slotGetDiagRec(); break; case 3: slotGetDiagField(); break; case 4: slotError(); break; case 5: slotErrorsAll(); break; case 6: slotAllocEnv(); break; case 7: slotAllocHandle(); break; case 8: slotDataSources(); break; case 9: slotDrivers(); break; case 10: slotFreeEnv(); break; case 11: slotFreeHandle(); break; case 12: slotEndTran(); break; case 13: slotTransact(); break; case 14: slotDataSourcesAll(); break; case 15: slotDriversAll(); break; case 16: slotAllocConnect(); break; case 17: slotBrowseConnect(); break; case 18: slotConnect(); break; case 19: slotDriverConnect(); break; case 20: slotDisconnect(); break; case 21: slotFreeConnect(); break; case 22: slotGetFunctions(); break; case 23: slotGetInfo(); break; case 24: slotNativeSql(); break; case 25: slotFullConnect(); break; case 26: slotFullDisconnect(); break; case 27: slotGetInfoAll(); break; case 28: slotGetFunctionsAll(); break; case 29: slotCopyDesc(); break; case 30: slotGetDescField(); break; case 31: slotGetDescRec(); break; case 32: slotSetDescField(); break; case 33: slotSetDescRec(); break; case 34: slotGetDescAll(); break; case 35: slotAllocStmt(); break; case 36: slotBindParam(); break; case 37: slotBindParameter(); break; case 38: slotCancel(); break; case 39: slotCloseCursor(); break; case 40: slotDescribeParam(); break; case 41: slotExecute(); break; case 42: slotExecDirect(); break; case 43: slotFreeStmt(); break; case 44: slotGetCursorName(); break; case 45: slotNumParams(); break; case 46: slotParamData(); break; case 47: slotParamOptions(); break; case 48: slotPrepare(); break; case 49: slotPutData(); break; case 50: slotSetCursorName(); break; case 51: slotFillParam(); break; case 52: slotShowParam(); break; case 53: slotShowCursorSettings(); break; case 54: slotSetStmtAttr(); break; case 55: slotGetStmtAttr(); break; case 56: slotSetStmtOption(); break; case 57: slotGetStmtOption(); break; case 58: slotSetConnectAttr(); break; case 59: slotGetConnectAttr(); break; case 60: slotSetConnectOption(); break; case 61: slotGetConnectOption(); break; case 62: slotSetEnvAttr(); break; case 63: slotGetEnvAttr(); break; case 64: slotSetCursorAttributes(); break; case 65: slotBindCol(); break; case 66: slotBulkOperations(); break; case 67: slotColAttributes(); break; case 68: slotColAttribute(); break; case 69: slotDescribeCol(); break; case 70: slotExtendedFetch(); break; case 71: slotFetch(); break; case 72: slotFetchScroll(); break; case 73: slotGetData(); break; case 74: slotMoreResults(); break; case 75: slotNumResultCols(); break; case 76: slotRowCount(); break; case 77: slotSetPos(); break; case 78: slotSetScrollOptions(); break; case 79: slotBindColAll(); break; case 80: slotDescribeColAll(); break; case 81: slotFetchAll(); break; case 82: slotGetDataAll(); break; case 83: slotShowBoundCols(); break; case 84: slotDisplayRowSet(); break; case 85: slotColumns(); break; case 86: slotColumnPrivileges(); break; case 87: slotGetTypeInfo(); break; case 88: slotForeignKeys(); break; case 89: slotPrimaryKeys(); break; case 90: slotProcedures(); break; case 91: slotProcedureColumns(); break; case 92: slotSpecialColumns(); break; case 93: slotStatistics(); break; case 94: slotTables(); break; case 95: slotTablePrivileges(); break; case 96: slotManageDataSources(); break; case 97: slotRemoveDefaultDataSource(); break; case 98: slotConfigDataSource(); break; case 99: slotCreateDataSource(); break; case 100: slotValidDSN(); break; case 101: slotRemoveDSNFromIni(); break; case 102: slotWriteDSNToIni(); break; case 103: slotRemoveDrivers(); break; case 104: slotConfigDrivers(); break; case 105: slotInstallDriver(); break; case 106: slotInstallDriverEx(); break; case 107: slotGetInstalledDrivers(); break; case 108: slotRemoveDriverManager(); break; case 109: slotInstallDriverManager(); break; case 110: slotReadFileDSN(); break; case 111: slotWriteFileDSN(); break; case 112: slotWritePrivateProfileString(); break; case 113: slotGetPrivateProfileString(); break; case 114: slotInstallTranslator(); break; case 115: slotInstallTranslatorEx(); break; case 116: slotRemoveTranslator(); break; case 117: slotGetTranslator(); break; case 118: slotSetConfigMode(); break; case 119: slotGetConfigMode(); break; case 120: slotOptions(); break; case 121: slotTrace(); break; case 122: slotManageTestSources(); break; case 123: slotManageAutoTests(); break; case 124: slotManageTestGroups(); break; case 125: slotRunAutoTests(); break; case 126: slotHelpTest(); break; case 127: slotHelpApi(); break; case 128: slotHelpAbout(); break; default: ; } _id -= 129; } return _id; } // SIGNAL 0 void OdbcTest::explain(const QString & _t1) { void *_a[] = { 0, const_cast(reinterpret_cast(&_t1)) }; QMetaObject::activate(this, &staticMetaObject, 0, _a); } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/ODBCTestQ4/attr.h0000644000175000001440000001340511506076311014352 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" class OdbcTest; class dSetStmtAttr : public QDialog { Q_OBJECT public: dSetStmtAttr( OdbcTest *pOdbcTest, QString name ); ~dSetStmtAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types, *value, *stringlen; QLabel *l_handle, *l_types, *l_value, *l_slen; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Activated( int index ); void Ok(); }; class dSetStmtOption : public QDialog { Q_OBJECT public: dSetStmtOption( OdbcTest *pOdbcTest, QString name ); ~dSetStmtOption(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types, *value; QLabel *l_handle, *l_types, *l_value; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Activated( int index ); void Ok(); }; class dGetStmtOption : public QDialog { Q_OBJECT public: dGetStmtOption( OdbcTest *pOdbcTest, QString name ); ~dGetStmtOption(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *target_valid; QLabel *l_handle, *l_types; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void Ok(); }; class dGetStmtAttr : public QDialog { Q_OBJECT public: dGetStmtAttr( OdbcTest *pOdbcTest, QString name ); ~dGetStmtAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_types, *l_buffer_len; QLineEdit *buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; class dSetConnAttr : public QDialog { Q_OBJECT public: dSetConnAttr( OdbcTest *pOdbcTest, QString name ); ~dSetConnAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types, *value, *stringlen; QLabel *l_handle, *l_types, *l_value, *l_slen; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Activated( int index ); void Ok(); }; class dGetConnAttr : public QDialog { Q_OBJECT public: dGetConnAttr( OdbcTest *pOdbcTest, QString name ); ~dGetConnAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_types, *l_buffer_len; QLineEdit *buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; class dSetConnectOption : public QDialog { Q_OBJECT public: dSetConnectOption( OdbcTest *pOdbcTest, QString name ); ~dSetConnectOption(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types, *value; QLabel *l_handle, *l_types, *l_value; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Activated( int index ); void Ok(); }; class dGetConnectOption : public QDialog { Q_OBJECT public: dGetConnectOption( OdbcTest *pOdbcTest, QString name ); ~dGetConnectOption(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *target_valid; QLabel *l_handle, *l_types; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void Ok(); }; class dSetEnvAttr : public QDialog { Q_OBJECT public: dSetEnvAttr( OdbcTest *pOdbcTest, QString name ); ~dSetEnvAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types, *value, *stringlen; QLabel *l_handle, *l_types, *l_value, *l_slen; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void Activated( int index ); void Ok(); }; class dGetEnvAttr : public QDialog { Q_OBJECT public: dGetEnvAttr( OdbcTest *pOdbcTest, QString name ); ~dGetEnvAttr(); protected: QPushButton *ok, *cancel, *help; QComboBox *handles, *types; QCheckBox *target_valid, *strlen_valid; QLabel *l_handle, *l_types, *l_buffer_len; QLineEdit *buffer_len; QTextEdit *in_win; QTextEdit *out_win; OdbcTest *pOdbcTest; QString txt; protected slots: void target_clkd(); void strlen_clkd(); void Ok(); }; unixodbc-gui-qt-2.3.0/ODBCTestQ4/OdbcTest.h0000644000175000001440000002662311506076311015115 00000000000000/********************************************************************* * * Written by Nick Gorham * (nick@lurcher.org). * * copyright (c) 1999 Nick Gorham * * 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ********************************************************************** * * 2008-12-10 Code adopted by unixODBC-GUI-Qt project. Heavily altered * pharvey to be Qt4 only code. * **********************************************************************/ #pragma once #include "OdbcHandle.h" /*! * \brief Main application class for ODBCTestQ4. * * This contains or invokes all of our functionality. This is * instantiated in main(). * */ class OdbcTest : public QMainWindow { Q_OBJECT public: OdbcTest( QWidget *parent=0 ); ~OdbcTest(); QSettings * pSettings; // an ini file usually called Gator.ini where we store configuration for our tests QSplitter *split; QTextEdit *in_win; QTextEdit *out_win; QList listHandle; // \todo free these up in a destructor const char *return_as_text( int ret ); void fill_list_box( attr_value *attr, QComboBox *lst ); void fill_list_box( attr_options *attr, QComboBox *lst ); void fill_dsn_list( QComboBox *box ); void set_dsn_list( QComboBox *box, const QString &stringItem ); void dumpError( int type, SQLHANDLE ); OdbcHandle *fill_handle_list( int type, QComboBox *lst ); OdbcHandle *extract_handle_list( int type, QComboBox *lst ); const char *int_type_as_string( SQLINTERVAL ); SQLHANDLE get_handle( int type ); void getInfoOdbc( SQLHANDLE dbc = SQL_NULL_HANDLE ); void getDataStmt( SQLHANDLE hstmt = SQL_NULL_HANDLE ); public slots: // slots for our actions... void slotExit(); void slotGetDiagRec(); void slotGetDiagField(); void slotError(); void slotErrorsAll(); void slotAllocEnv(); void slotAllocHandle(); void slotDataSources(); void slotDrivers(); void slotFreeEnv(); void slotFreeHandle(); void slotEndTran(); void slotTransact(); void slotDataSourcesAll(); void slotDriversAll(); void slotAllocConnect(); void slotBrowseConnect(); void slotConnect(); void slotDriverConnect(); void slotDisconnect(); void slotFreeConnect(); void slotGetFunctions(); void slotGetInfo(); void slotNativeSql(); void slotFullConnect(); void slotFullDisconnect(); void slotGetInfoAll(); void slotGetFunctionsAll(); void slotCopyDesc(); void slotGetDescField(); void slotGetDescRec(); void slotSetDescField(); void slotSetDescRec(); void slotGetDescAll(); void slotAllocStmt(); void slotBindParam(); void slotBindParameter(); void slotCancel(); void slotCloseCursor(); void slotDescribeParam(); void slotExecute(); void slotExecDirect(); void slotFreeStmt(); void slotGetCursorName(); void slotNumParams(); void slotParamData(); void slotParamOptions(); void slotPrepare(); void slotPutData(); void slotSetCursorName(); void slotFillParam(); void slotShowParam(); void slotShowCursorSettings(); void slotSetStmtAttr(); void slotGetStmtAttr(); void slotSetStmtOption(); void slotGetStmtOption(); void slotSetConnectAttr(); void slotGetConnectAttr(); void slotSetConnectOption(); void slotGetConnectOption(); void slotSetEnvAttr(); void slotGetEnvAttr(); void slotSetCursorAttributes(); void slotBindCol(); void slotBulkOperations(); void slotColAttributes(); void slotColAttribute(); void slotDescribeCol(); void slotExtendedFetch(); void slotFetch(); void slotFetchScroll(); void slotGetData(); void slotMoreResults(); void slotNumResultCols(); void slotRowCount(); void slotSetPos(); void slotSetScrollOptions(); void slotBindColAll(); void slotDescribeColAll(); void slotFetchAll(); void slotGetDataAll(); void slotShowBoundCols(); void slotDisplayRowSet(); void slotColumns(); void slotColumnPrivileges(); void slotGetTypeInfo(); void slotForeignKeys(); void slotPrimaryKeys(); void slotProcedures(); void slotProcedureColumns(); void slotSpecialColumns(); void slotStatistics(); void slotTables(); void slotTablePrivileges(); void slotManageDataSources(); void slotRemoveDefaultDataSource(); void slotConfigDataSource(); void slotCreateDataSource(); void slotValidDSN(); void slotRemoveDSNFromIni(); void slotWriteDSNToIni(); void slotRemoveDrivers(); void slotConfigDrivers(); void slotInstallDriver(); void slotInstallDriverEx(); void slotGetInstalledDrivers(); void slotRemoveDriverManager(); void slotInstallDriverManager(); void slotReadFileDSN(); void slotWriteFileDSN(); void slotWritePrivateProfileString(); void slotGetPrivateProfileString(); void slotInstallTranslator(); void slotInstallTranslatorEx(); void slotRemoveTranslator(); void slotGetTranslator(); void slotSetConfigMode(); void slotGetConfigMode(); void slotOptions(); void slotTrace(); void slotManageTestSources(); void slotManageAutoTests(); void slotManageTestGroups(); void slotRunAutoTests(); void slotHelpTest(); void slotHelpApi(); void slotHelpAbout(); protected: void resizeEvent( QResizeEvent * ); signals: void explain( const QString& ); private: QLabel *label; QMenu* pmenuFile; QMenu* pmenuDiagnostic; QMenu* pmenuEnvironment; QMenu* pmenuConnection; QMenu* pmenuDescriptor; QMenu* pmenuStatement; QMenu* pmenuAttributes; QMenu* pmenuResults; QMenu* pmenuCatalog; QMenu* pmenuDataSources; QMenu* pmenuDrivers; QMenu* pmenuDriverManager; QMenu* pmenuFileDataSourceName; QMenu* pmenuProfileStrings; QMenu* pmenuTranslator; QMenu* pmenuConfigMode; QMenu* pmenuInstaller; QMenu* pmenuTools; QMenu* pmenuHelp; QAction* pactionExit; QAction* pactionGetDiagRec; QAction* pactionGetDiagField; QAction* pactionError; QAction* pactionErrorsAll; QAction* pactionAllocEnv; QAction* pactionAllocHandle; QAction* pactionDataSources; QAction* pactionDrivers; QAction* pactionFreeEnv; QAction* pactionFreeHandle; QAction* pactionEndTran; QAction* pactionTransact; QAction* pactionDataSourcesAll; QAction* pactionDriversAll; QAction* pactionAllocConnect; QAction* pactionBrowseConnect; QAction* pactionConnect; QAction* pactionDriverConnect; QAction* pactionDisconnect; QAction* pactionFreeConnect; QAction* pactionGetFunctions; QAction* pactionGetInfo; QAction* pactionNativeSql; QAction* pactionFullConnect; QAction* pactionFullDisconnect; QAction* pactionGetInfoAll; QAction* pactionGetFunctionsAll; QAction* pactionCopyDesc; QAction* pactionGetDescField; QAction* pactionGetDescRec; QAction* pactionSetDescField; QAction* pactionSetDescRec; QAction* pactionGetDescAll; QAction* pactionAllocStmt; QAction* pactionBindParam; QAction* pactionBindParameter; QAction* pactionCancel; QAction* pactionCloseCursor; QAction* pactionDescribeParam; QAction* pactionExecute; QAction* pactionExecDirect; QAction* pactionFreeStmt; QAction* pactionGetCursorName; QAction* pactionNumParams; QAction* pactionParamData; QAction* pactionParamOptions; QAction* pactionPrepare; QAction* pactionPutData; QAction* pactionSetCursorName; QAction* pactionFillParam; QAction* pactionShowParam; QAction* pactionShowCursorSettings; QAction* pactionSetStmtAttr; QAction* pactionGetStmtAttr; QAction* pactionSetStmtOption; QAction* pactionGetStmtOption; QAction* pactionSetConnectAttr; QAction* pactionGetConnectAttr; QAction* pactionSetConnectOption; QAction* pactionGetConnectOption; QAction* pactionSetEnvAttr; QAction* pactionGetEnvAttr; QAction* pactionSetCursorAttributes; QAction* pactionBindCol; QAction* pactionBulkOperations; QAction* pactionColAttributes; QAction* pactionColAttribute; QAction* pactionDescribeCol; QAction* pactionExtendedFetch; QAction* pactionFetch; QAction* pactionFetchScroll; QAction* pactionGetData; QAction* pactionMoreResults; QAction* pactionNumResultCols; QAction* pactionRowCount; QAction* pactionSetPos; QAction* pactionSetScrollOptions; QAction* pactionBindColAll; QAction* pactionDescribeColAll; QAction* pactionFetchAll; QAction* pactionGetDataAll; QAction* pactionShowBoundCols; QAction* pactionDisplayRowSet; QAction* pactionColumns; QAction* pactionColumnPrivileges; QAction* pactionGetTypeInfo; QAction* pactionForeignKeys; QAction* pactionPrimaryKeys; QAction* pactionProcedures; QAction* pactionProcedureColumns; QAction* pactionSpecialColumns; QAction* pactionStatistics; QAction* pactionTables; QAction* pactionTablePrivileges; QAction* pactionManageDataSources; QAction* pactionRemoveDefaultDataSource; QAction* pactionConfigDataSource; QAction* pactionCreateDataSource; QAction* pactionValidDSN; QAction* pactionRemoveDSNFromIni; QAction* pactionWriteDSNToIni; QAction* pactionRemoveDrivers; QAction* pactionConfigDrivers; QAction* pactionInstallDriver; QAction* pactionInstallDriverEx; QAction* pactionGetInstalledDrivers; QAction* pactionRemoveDriverManager; QAction* pactionInstallDriverManager; QAction* pactionReadFileDSN; QAction* pactionWriteFileDSN; QAction* pactionWritePrivateProfileString; QAction* pactionGetPrivateProfileString; QAction* pactionInstallTranslator; QAction* pactionInstallTranslatorEx; QAction* pactionRemoveTranslator; QAction* pactionGetTranslator; QAction* pactionSetConfigMode; QAction* pactionGetConfigMode; QAction* pactionOptions; QAction* pactionTrace; QAction* pactionManageTestSources; QAction* pactionManageAutoTests; QAction* pactionManageTestGroups; QAction* pactionRunAutoTests; QAction* pactionHelpTest; QAction* pactionHelpApi; QAction* pactionHelpAbout; void createActions(); void createMenus(); void readApplicationState(); void writeApplicationState(); }; unixodbc-gui-qt-2.3.0/odbcinstQ4/0000755000175000001440000000000011506076451013547 500000000000000unixodbc-gui-qt-2.3.0/odbcinstQ4/mCPropertiesDialog.cpp0000644000175000001440000000415611506076451017735 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CPropertiesDialog.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CPropertiesDialog.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CPropertiesDialog.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CPropertiesDialog[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CPropertiesDialog[] = { "CPropertiesDialog\0" }; const QMetaObject CPropertiesDialog::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_CPropertiesDialog, qt_meta_data_CPropertiesDialog, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CPropertiesDialog::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CPropertiesDialog::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CPropertiesDialog::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CPropertiesDialog)) return static_cast(const_cast< CPropertiesDialog*>(this)); return QDialog::qt_metacast(_clname); } int CPropertiesDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/About48.xpm0000644000175000001440000003103411506076310015436 00000000000000/* XPM */ static const char * xpmAbout48[] = { "48 48 498 2", " c None", ". c #4C4C4C", "+ c #A3A3A3", "@ c #C7C7C7", "# c #DADADA", "$ c #ECECEC", "% c #F9F9F9", "& c #B5B5B5", "* c #EDEDED", "= c #FFFFFF", "- c #FCFCFC", "; c #F6F6F6", "> c #F3F3F3", ", c #F2F2F2", "' c #F5F5F5", ") c #F7F7F7", "! c #FAFAFA", "~ c #FEFEFE", "{ c #393939", "] c #C3C3C3", "^ c #EEEEEE", "/ c #EBEBEB", "( c #EAEAEA", "_ c #E8E8E8", ": c #E7E7E7", "< c #E5E5E5", "[ c #E3E3E3", "} c #E2E2E2", "| c #E0E0E0", "1 c #F4F4F4", "2 c #B1B1B1", "3 c #F0F0F0", "4 c #EFEFEF", "5 c #DEDEDE", "6 c #DDDDDD", "7 c #FDFDFD", "8 c #C8D2DF", "9 c #94AEC8", "0 c #789ABC", "a c #668DB3", "b c #658DB3", "c c #7898BA", "d c #91ABC5", "e c #C0CCD7", "f c #DBDBDB", "g c #505050", "h c #F8F8F8", "i c #BFCEDD", "j c #5F89B2", "k c #36679B", "l c #285B91", "m c #35689C", "n c #4173A5", "o c #4D7CAC", "p c #527EAD", "q c #4C7BAB", "r c #4172A3", "s c #32669A", "t c #36679A", "u c #5B84AD", "v c #AEBECD", "w c #E4E4E4", "x c #CBD9E5", "y c #4675A6", "z c #1F568E", "A c #31679F", "B c #5282B4", "C c #739FCC", "D c #8DB4DB", "E c #BED5EA", "F c #EBF2F8", "G c #EEF3F9", "H c #C3D8EC", "I c #93B7DC", "J c #83ADD8", "K c #709FCD", "L c #5081B2", "M c #31659C", "N c #4574A3", "O c #B4C2CF", "P c #DFDFDF", "Q c #658EB7", "R c #1C538D", "S c #29629C", "T c #4E83B8", "U c #6D9ED0", "V c #7CA9D5", "W c #8BB3DA", "X c #C1D5E9", "Y c #FBFBFB", "Z c #CBDCEF", "` c #92B7DC", " . c #76A5D3", ".. c #689BCF", "+. c #4B80B6", "@. c #2B6299", "#. c #5C84AC", "$. c #DCDCDC", "%. c #EFF3F6", "&. c #4071A5", "*. c #18528E", "=. c #326CA6", "-. c #538AC3", ";. c #679BCF", ">. c #75A4D3", ",. c #E7ECF1", "'. c #F2F6FA", "). c #99BCDF", "!. c #8AB2DA", "~. c #7DA9D5", "{. c #6FA0D2", "]. c #6297CD", "^. c #538CC8", "/. c #3068A2", "(. c #406FA1", "_. c #D3D7DA", ":. c #ECF0F3", "<. c #2C629A", "[. c #185391", "}. c #326EAA", "|. c #4D88C6", "1. c #5D94CC", "2. c #6B9DD0", "3. c #78A6D4", "4. c #85AFD8", "5. c #E4E8ED", "6. c #F1F1F1", "7. c #F1F4F8", "8. c #99BCDE", "9. c #8CB3DA", "0. c #80ABD6", "a. c #72A2D2", "b. c #6599CE", "c. c #5891CA", "d. c #4B89C6", "e. c #306DA8", "f. c #31679B", "g. c #3C6EA3", "h. c #14508E", "i. c #2B6AA9", "j. c #4181C1", "k. c #508CC7", "l. c #77A5D4", "m. c #8EB5DB", "n. c #BCCFE3", "o. c #C7D9EA", "p. c #93B8DD", "q. c #89B1DA", "r. c #7EAAD6", "s. c #669ACE", "t. c #5A92CB", "u. c #4D8AC7", "v. c #4082C2", "w. c #2A68A7", "x. c #40709F", "y. c #5E89B1", "z. c #0F4C89", "A. c #2162A1", "B. c #3578BC", "C. c #4282C3", "D. c #4F8BC7", "E. c #5B93CB", "F. c #689CCF", "G. c #73A3D3", "H. c #87B0D9", "I. c #BDCFE2", "J. c #E0E4E7", "K. c #E3E7EA", "L. c #C3D4E6", "M. c #97BADD", "N. c #7AA7D4", "O. c #6E9FD1", "P. c #6398CD", "Q. c #4182C3", "R. c #357ABF", "S. c #1E5E9F", "T. c #5D85AE", "U. c #E9E9E9", "V. c #C5D1DD", "W. c #0D4988", "X. c #175797", "Y. c #296FB5", "Z. c #4081C2", "`. c #4C89C6", " + c #6D9FD1", ".+ c #7FABD6", "++ c #8FB5DC", "@+ c #88B1D9", "#+ c #82ADD7", "$+ c #7BA8D5", "%+ c #73A3D2", "&+ c #699CD0", "*+ c #6096CC", "=+ c #558FC9", "-+ c #4A88C6", ";+ c #4081C3", ">+ c #2970B8", ",+ c #155898", "'+ c #BDC8D2", ")+ c #B4B4B4", "!+ c #4A79A6", "~+ c #0D4D8D", "{+ c #1D63AA", "]+ c #2A73BB", "^+ c #3177BE", "/+ c #3C7FC1", "(+ c #4886C5", "_+ c #538EC8", ":+ c #5C94CB", "<+ c #659ACE", "[+ c #81ACD7", "}+ c #80ABD7", "|+ c #7DA9D6", "1+ c #6298CD", "2+ c #5A92CA", "3+ c #508CC8", "4+ c #4786C4", "5+ c #3D7FC2", "6+ c #3278BE", "7+ c #2972BA", "8+ c #0F5BA8", "9+ c #4A7BAA", "0+ c #E6E6E6", "a+ c #BECBD8", "b+ c #0D4986", "c+ c #0F579E", "d+ c #1E69B2", "e+ c #256FBA", "f+ c #2D75BC", "g+ c #387CC0", "h+ c #669ACF", "i+ c #7AA6D4", "j+ c #8BB1D8", "k+ c #9CBCDC", "l+ c #AAC4DF", "m+ c #B5CAE0", "n+ c #C0D1E2", "o+ c #CBD7E2", "p+ c #4283C3", "q+ c #2F77BD", "r+ c #1C69B7", "s+ c #0B5EB1", "t+ c #0A539B", "u+ c #B7C5D1", "v+ c #638AB2", "w+ c #0C4D8F", "x+ c #105DAA", "y+ c #1363B3", "z+ c #206CB9", "A+ c #2771BA", "B+ c #3B7EC1", "C+ c #4484C4", "D+ c #AAC6E2", "E+ c #528DC8", "F+ c #3379BE", "G+ c #1E6BB7", "H+ c #0D60B2", "I+ c #0A5EB1", "J+ c #0755A3", "K+ c #668DB5", "L+ c #E1E1E1", "M+ c #245B94", "N+ c #0D5197", "O+ c #1162B3", "P+ c #0A5DB2", "Q+ c #1B69B7", "R+ c #4383C3", "S+ c #A7C5E2", "T+ c #5890CA", "U+ c #548EC8", "V+ c #4E8AC7", "W+ c #4987C5", "X+ c #4383C4", "Y+ c #3D80C1", "Z+ c #3579BF", "`+ c #1867B6", " @ c #0C5FB2", ".@ c #095DB1", "+@ c #0759AA", "@@ c #2965A2", "#@ c #C4CDD6", "$@ c #044383", "%@ c #0C569E", "&@ c #1364B4", "*@ c #065BB0", "=@ c #0158AE", "-@ c #1263B4", ";@ c #2670BA", ">@ c #3A7DC0", ",@ c #A2C1E1", "'@ c #4D89C6", ")@ c #4987C6", "!@ c #397CC0", "~@ c #236FB9", "{@ c #044E98", "]@ c #C7D0D9", "^@ c #98AFC4", "/@ c #024587", "(@ c #0B57A1", "_@ c #1464B4", ":@ c #0E60B2", "<@ c #075CB0", "[@ c #0057AE", "}@ c #3077BD", "|@ c #3F81C2", "1@ c #A0C0E0", "2@ c #4282C2", "3@ c #3C7EC1", "4@ c #1866B6", "5@ c #085CB1", "6@ c #055AB0", "7@ c #024F9D", "8@ c #9EB4CC", "9@ c #D8D8D8", "0@ c #7B99B8", "a@ c #01468A", "b@ c #0A56A4", "c@ c #0F61B3", "d@ c #0359AF", "e@ c #0258AF", "f@ c #89B1D9", "g@ c #045AAF", "h@ c #024F9F", "i@ c #85A3C1", "j@ c #D7D7D7", "k@ c #6289AF", "l@ c #00468C", "m@ c #0655A3", "n@ c #7DA8D4", "o@ c #01509E", "p@ c #6C92B9", "q@ c #D5D5D5", "r@ c #6187AD", "s@ c #0453A2", "t@ c #7CA7D3", "u@ c #004F9E", "v@ c #6E94BB", "w@ c #D3D3D3", "x@ c #7897B5", "y@ c #00458B", "z@ c #00509F", "A@ c #7AA5D1", "B@ c #004E9C", "C@ c #88A6C5", "D@ c #D1D1D1", "E@ c #91A8BE", "F@ c #004489", "G@ c #78A4CF", "H@ c #0B5FB1", "I@ c #0055AB", "J@ c #004D9A", "K@ c #A4BBD1", "L@ c #CFCFCF", "M@ c #B8C1CB", "N@ c #014386", "O@ c #004C98", "P@ c #0055AA", "Q@ c #77A2CD", "R@ c #0053A7", "S@ c #014C96", "T@ c #D1DAE3", "U@ c #D2D2D2", "V@ c #1F5790", "W@ c #004993", "X@ c #0052A5", "Y@ c #1062B3", "Z@ c #77A2CC", "`@ c #0050A1", " # c #2966A3", ".# c #CDCDCD", "+# c #5981A8", "@# c #00478D", "## c #004E9E", "$# c #1565B5", "%# c #76A0CB", "&# c #1162B4", "*# c #6E96BF", "=# c #CBCBCB", "-# c #A9B7C3", ";# c #034688", "># c #024C97", ",# c #0254A7", "'# c #1766B5", ")# c #759FC9", "!# c #0052A4", "~# c #034D97", "{# c #C9D7E3", "]# c #3D6D9D", "^# c #014890", "/# c #03519E", "(# c #0558AC", "_# c #1A68B6", ":# c #1666B5", "<# c #1262B4", "[# c #0E60B3", "}# c #749EC7", "|# c #0054A8", "1# c #5081B3", "2# c #C9C9C9", "3# c #AFBAC3", "4# c #05478A", "5# c #014B95", "6# c #0554A3", "7# c #1061B3", "8# c #1968B6", "9# c #739DC6", "0# c #0A5EB0", "a# c #0050A0", "b# c #074E97", "c# c #D7E1EC", "d# c #CECECE", "e# c #5C82A8", "f# c #0354A4", "g# c #095DB0", "h# c #1D6AB7", "i# c #739CC5", "j# c #065BAF", "k# c #0056AC", "l# c #0051A2", "m# c #004C97", "n# c #779DC4", "o# c #3A6B9C", "p# c #00478E", "q# c #004D99", "r# c #0052A3", "s# c #0359AD", "t# c #447FBB", "u# c #739AC2", "v# c #739BC3", "w# c #A4B8CC", "x# c #D9D9D9", "y# c #749FC9", "z# c #729DC9", "A# c #749FCB", "B# c #4E80B2", "C# c #C4C7C9", "D# c #255D95", "E# c #00478F", "F# c #004C99", "G# c #0055A9", "H# c #0259AE", "I# c #6791BC", "J# c #D0D0D0", "K# c #D6D6D6", "L# c #004B97", "M# c #326BA5", "N# c #F2F5F7", "O# c #3B6B9D", "P# c #004B96", "Q# c #638EBA", "R# c #CACACA", "S# c #4B7DB0", "T# c #EFF2F4", "U# c #CCCCCC", "V# c #5C83A9", "W# c #05488D", "X# c #004892", "Y# c #2A6AAB", "Z# c #5584B4", "`# c #5484B5", " $ c #5486B8", ".$ c #5487BA", "+$ c #5488BB", "@$ c #5488BC", "#$ c #5387BA", "$$ c #5486BA", "%$ c #5386B8", "&$ c #004E9D", "*$ c #064D94", "=$ c #7197BE", "-$ c #3F70A0", ";$ c #02488D", ">$ c #004C96", ",$ c #004E9A", "'$ c #004F9F", ")$ c #004D9B", "!$ c #034B92", "~$ c #4B7DAE", "{$ c #CCD5E0", "]$ c #5B83AB", "^$ c #225C98", "/$ c #01488E", "($ c #004891", "_$ c #004992", ":$ c #004994", "<$ c #004A94", "[$ c #014991", "}$ c #25619D", "|$ c #668EB6", "1$ c #BFCCD9", "2$ c #93A9C0", "3$ c #7A99B8", "4$ c #6389B1", "5$ c #658BB1", "6$ c #7D9BBB", "7$ c #9AB0C7", "8$ c #C4CDD5", "9$ c #000000", " ", " ", " ", " . + @ # $ % % $ # @ + . ", " . & * = = - % ; > , ' ) ! ~ = * & . ", " { ] ~ = ! ' ^ / ( _ : < [ } | | ( 1 ~ ~ ] { ", " 2 - = ! 1 , 3 4 * / ( _ : < [ } | 5 6 6 * 7 - 2 ", " 6 = 7 % ) ' > , 3 8 9 0 a b c d e } | 5 6 f 5 4 = 6 ", " g 3 = ~ - ! h ) i j k l m n o p q r s t u v 5 6 f # w 7 3 g ", " g % ~ 7 ~ 7 - x y z A B C D E F G H I J K L M N O 6 f # P ! % g ", " 3 ~ % ! - 7 Q R S T U V W X Y 7 ~ ~ Z ` J ...+.@.#.$.f # $.! 3 ", " 6 = ) ) h %.&.*.=.-.;.>.J ` ,.; h ! 7 '.).!.~.{.].^./.(._.f # P 7 6 ", " 2 = ; > ' :.<.[.}.|.1.2.3.4.` 5.6.> ' h 7.8.9.0.a.b.c.d.e.f._.f # < = 2 ", " { - h 4 6., g.h.i.j.k.1.2.l.J m.n.$ ^ 3 > o.p.q.r.a.s.t.u.v.w.x.$.f # 3 - { ", " ] ~ * * 4 y.z.A.B.C.D.E.F.G.r.H.I I.J.K.L.M.W J N.O.P.c.u.Q.R.S.T.6 f 5 ~ ] ", " . ~ 1 U./ V.W.X.Y.R.Z.`.c.P. + ..+4.!.m.++9.@+#+$+%+&+*+=+-+;+R.>+,+'+6 f * ~ . ", " )+~ : _ U.!+~+{+]+^+/+(+_+:+<+O.>.$+.+[+#+}+|+3.a.2.1+2+3+4+5+6+7+8+9+5 6 6 ~ )+ ", " * ; w 0+a+b+c+d+e+f+g+C.`.=+1.h+i+j+k+l+m+n+o+ +F.1+E._+-+p+g+q+r+s+t+u+5 6 1 * ", " . = $ } w v+w+x+y+z+A+^+B+C+`._+D+h ' > 6.^ $ ( 1+1.c.E+`.C+/+F+G+H+I+J+K+| 5 ( = . ", " + = L+| } M+N+O+s+P+Q+]+F+B+R+-+S+Y h ; 1 6.4 * T+U+V+W+X+Y+Z+`+s+ @.@+@@@} | L+= + ", " @ ! $.5 #@$@%@&@ @*@=@-@;@F+>@Z.,@~ Y % ) 1 , 3 '@)@C+Z.!@~@O+I+s+s+.@*@{@]@} | ! @ ", " # ; # $.^@/@(@_@:@<@=@[@[@.@r+}@B+|@C.1@! ) ' > 2@3@f+4@.@5@.@s+ @I+<@6@7@8@[ } h # ", " $ 6.9@# 0@a@b@_@c@.@d@[@[@[@[@[@e@5@c@f@7 ! h ; 5@d@6@*@<@.@I+ @I+5@*@g@h@i@< [ ' $ ", " % $ j@9@k@l@m@O+O+s+6@[@[@[@[@[@[@[@[@n@7 7 Y % 6@g@*@<@5@I+s+s+.@<@6@d@o@p@: < , % ", " % / q@j@r@l@s@H+_@:@<@=@[@[@[@[@[@[@[@t@! - ~ - <@6@<@5@I+s+ @I+5@*@d@=@u@v@_ : > % ", " $ 4 w@q@x@y@z@.@-@O+s+g@[@[@[@[@[@[@[@A@; % - ~ 5@<@5@.@s+ @I+5@*@g@e@[@B@C@( _ ) $ ", " # 1 D@w@E@F@B@g@H+_@:@5@e@[@[@[@[@[@[@G@> ' h Y H@5@.@s+ @I+5@*@g@e@[@I@J@K@/ ( % # ", " @ h L@D@M@N@O@P@5@O+-@ @*@[@[@[@[@[@=@Q@4 , ' ) @I+s+ @I+5@*@g@e@[@[@R@S@T@* / - @ ", " + = U@L@D@V@W@X@e@s+_@Y@I+6@[@[@=@e@d@Z@$ ^ 6.1 c@s+s+I+5@*@g@e@[@[@[@`@ #3 4 4 = + ", " . = | .#L@+#@###[@6@H+$#c@I+*@d@d@g@6@%#_ / * 3 &#s+.@<@6@g@e@[@[@[@P@B@*#, 3 ' = . ", " * 4 =#.#-#;#>#,#e@5@O+'#&@H+P+*@<@5@)#< : ( * Y@5@*@6@d@=@[@[@[@[@!#~#{#> , Y * ", " )+7 .#=#.#]#^#/#(#6@ @$#_#:#<#[#I+I+}#L+w 0+U.H+6@d@e@[@[@[@[@[@|#B@1#) ' 1 = )+ ", " . ~ 0+2#=#3#4#5#6#5@5@7#'#G+8#:#y+Y@9#5 | [ 0+0#e@=@[@[@[@[@[@I@a#b#c#h ) ! ~ . ", " ] 7 d#2#=#e#l@O@f#g# @-@'#h#Q+'#<#i## 6 P } j#[@[@[@[@[@[@k#l#m#n#- ! % = ] ", " { - / @ 2#=#o#p#q#r#s#*@H@O+t#u#v#w#j@x#$.P y#z#A#[@[@[@I@l#O@B#~ 7 - 7 - { ", " 2 = # @ 2#C#D#E#F#`@G#[@H#I#=#d#J#w@K#x#f 5 L+[ e@[@|#a#L#M#N#- ~ ~ = 2 ", " 6 7 U@@ 2#C#O#@#P###X@G#Q#@ R#.#J#U@q@9@# 6 | G#r#B@P#S#T#h ! 7 = 6 ", " 3 % U#@ 2#=#V#W#X#F#u@Y#Z#`# $.$+$@$@$#$$$%$&$O@*$=$> ' ) % ~ 3 ", " g % % D@@ 2#=#3#-$;$X#>$,$&$z@a#`@a#'$B@)$P#!$~${$4 6.> ) ~ % g ", " g 3 7 x#@ 2#=#.#-#]$^$/$($_$:$<$:$_$[$}$|$1$U./ * 4 ; = 3 g ", " 6 = ( .#2#=#.#L@D@M@2$3$4$5$6$7$8$} w 0+_ U.* h = 6 ", " 2 - 7 w U#=#.#L@D@w@q@j@9@# $.5 | } w : 1 ~ - 2 ", " { ] ~ 7 ^ P D@L@D@w@q@j@9@# $.L+$ ; ~ ~ ] { ", " . & * = = h 1 4 / $ 6.; ! = = * & . ", " . + @ # $ % % $ # @ + . ", " 9$9$9$9$ ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverList.h0000644000175000001440000000314411506076310016026 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDRIVERLIST_H #define CDRIVERLIST_H #include "CODBCInst.h" #include /*! * \brief A simple table widget listing the installed drivers. * * You can use this widget to present a list of installed drivers to the User * so that one can simply be selected. Simply instantiating the widget is * enough to display the installed drivers. Then one can get the selected * driver by calling the getter functions; * * \li getFriendlyName * \li getDriver * \li getSetup * \li getDescription * * This widget can also be used as the core widget for managing drivers by * connecting to the following slots; * * \li slotAdd * \li slotEdit * \li slotDelete * * \note Typically; anyone can view installed drivers but managing drivers will require * elevated system privileges such as 'root' access. * * \sa CDataSourceNameList */ class CDriverList : public QTableWidget { Q_OBJECT public: CDriverList( QWidget* pwidgetParent = NULL ); virtual ~CDriverList(); QString getFriendlyName(); QString getDescription(); QString getDriver(); QString getSetup(); signals: void signalChanged(); public slots: void slotAdd(); void slotEdit(); void slotDelete(); void slotLoad(); void slotDoubleClick( QTableWidgetItem *pItem ); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/Tracing48.xpm0000644000175000001440000000750311506076310015757 00000000000000/* XPM */ static const char * xpmTracing48[] = { "48 48 90 1", " c None", ". c #000000", "+ c #010101", "@ c #020202", "# c #030303", "$ c #040404", "% c #060606", "& c #070707", "* c #090909", "= c #0B0B0B", "- c #0C0C0C", "; c #0A0A0A", "> c #080808", ", c #0D0D0D", "' c #0F0F0F", ") c #101010", "! c #0E0E0E", "~ c #111111", "{ c #141414", "] c #151515", "^ c #121212", "/ c #181818", "( c #1A1A1A", "_ c #171717", ": c #161616", "< c #1C1C1C", "[ c #1E1E1E", "} c #050505", "| c #212121", "1 c #222222", "2 c #232323", "3 c #1F1F1F", "4 c #282828", "5 c #252525", "6 c #1B1B1B", "7 c #1D1D1D", "8 c #272727", "9 c #2C2C2C", "0 c #2A2A2A", "a c #131313", "b c #303030", "c c #333333", "d c #343434", "e c #383838", "f c #3A3A3A", "g c #393939", "h c #373737", "i c #313131", "j c #434343", "k c #414141", "l c #404040", "m c #3F3F3F", "n c #3E3E3E", "o c #323232", "p c #454545", "q c #4B4B4B", "r c #494949", "s c #424242", "t c #4E4E4E", "u c #4A4A4A", "v c #3C3C3C", "w c #191919", "x c #292929", "y c #2B2B2B", "z c #2E2E2E", "A c #262626", "B c #3B3B3B", "C c #464646", "D c #484848", "E c #3D3D3D", "F c #545454", "G c #585858", "H c #595959", "I c #565656", "J c #5A5A5A", "K c #646464", "L c #626262", "M c #474747", "N c #525252", "O c #606060", "P c #5C5C5C", "Q c #2D2D2D", "R c #202020", "S c #363636", "T c #242424", "U c #2F2F2F", "V c #4C4C4C", "W c #4D4D4D", "X c #5D5D5D", "Y c #5E5E5E", " ...+++. ", " ...+++. ", " .++@@@@@@++ ", " +++@@@@@@@@+ ", " +@@#########@+. ", " +$%&&&&&&&&&%$@ ", " $&*=---------;%# ", " $>,'))))))))))!&$ ", " #,~{]]]]]]]]]]]^&# ", " &-]/(((((((((((_^% ", " @,:<[[[[[[[[[[[[_'} ", " >]|122222222221|{& ", " %{344444444444456~$ ", " %789999999999905a= ", " +%64bbbbbbbbbbb47; ", " $!79cdddddddc9[) ", " +)1cefffgghi1^. ", " +. >^9fjklmnd5!% ", " &*=> =[opqrsb1]% ", " ']_~> )8mtuv3! ", " %wxy5(> w8vz_- ", " {AeBei1] /57 ", " |cCrqDf5= ..+. ", " 8EFGHHIlA ..+++@++. ", " (fJKLHMo( .+++@@@@@+. ", " &bNOPtbw ..++@@@@@@@+. ", " _w6 ++@@@@@@@@@@++ ", " @@@@@@@@@@@@@@. ", " @$$$$$$$$$$$$$@. ", " .$&>***********&$. ", " %;,!!!!!!!!!!!,*} ", " },~aaaaaaaaaaaa~>} ", " >,:/wwwwwwwwwww_a% ", " @!_7[[[[[[[[[[[[_!} ", " }{1222222222222|{& ", " $!<44444444444456~ ", " @>:5yQQQQQQQQQ4R^= ", " .+!79iccooooob5/& ", " .$-2iggeeeeSQ<* ", " $ +%:0BkklnSy6~ ", " };* #;3SCrCnz<& ", " ;'<_! #^2kqp8_> ", " :R90T: ;{yUyw ", " |dBnB8( %{)> ", " .4prVWrd< ", " .QtIJPXCx= ", " zqHXYPqi= ", " /TBneA7 "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/Driver48.xpm0000644000175000001440000002241111506076310015616 00000000000000/* XPM */ static const char *xpmDriver48[] = { /* columns rows colors chars-per-pixel */ "48 48 254 2", " c none", ". c #00040C00", "X c #00051100", "o c #030D1C00", "O c #01081500", "+ c #010A2400", "@ c #000C2B00", "# c #00072000", "$ c #000C3500", "% c #000D3A00", "& c #04112900", "* c #05122600", "= c #06193C00", "- c #05163900", "; c #000E4500", ": c #01134A00", "> c #051B4B00", ", c #081E4200", "< c #04194100", "1 c #00125300", "2 c #02195900", "3 c #00166400", "4 c #031B6500", "5 c #001E7200", "6 c #001A7B00", "7 c #0A234500", "8 c #06225B00", "9 c #08255B00", "0 c #0E2C5D00", "q c #12315D00", "w c #07276700", "e c #00217600", "r c #092D7A00", "t c #09337D00", "y c #13356800", "u c #133C7D00", "i c #001D8A00", "p c #001E8600", "a c #001F9500", "s c #00218600", "d c #00248B00", "f c #032B8600", "g c #00209500", "h c #00229B00", "j c #032E9B00", "k c #0C398700", "l c #00309D00", "z c #1A3F9200", "x c #0023A300", "c c #0026AD00", "v c #002BAD00", "b c #0026B300", "n c #002AB400", "m c #002CBA00", "M c #0234A500", "N c #0034AD00", "B c #013BA900", "V c #0034B500", "C c #0134BD00", "Z c #003EBA00", "A c #053AB700", "S c #0036C100", "D c #023DC300", "F c #0A409D00", "G c #17448A00", "H c #14429500", "J c #1C449700", "K c #1C469A00", "L c #1D4C9D00", "P c #15439C00", "I c #1A529900", "U c #0843AA00", "Y c #0046B600", "T c #0342BB00", "R c #014CBB00", "E c #0B42BA00", "W c #084CB500", "Q c #0056BE00", "! c #0259BF00", "~ c #0951BB00", "^ c #1F4BA100", "/ c #174CA800", "( c #1A54AC00", ") c #1455B200", "_ c #1D56B200", "` c #1459BB00", "' c #1C62BF00", "] c #21549C00", "[ c #204EA200", "{ c #2253A800", "} c #2556A900", "| c #255BB200", " . c #235EBB00", ".. c #2256B000", "X. c #28649E00", "o. c #2861AC00", "O. c #2563BC00", "+. c #2863BA00", "@. c #266BB800", "#. c #367BBE00", "$. c #044BC300", "%. c #034BCC00", "&. c #0745C500", "*. c #024DD100", "=. c #0253C100", "-. c #035AC100", ";. c #015CC800", ":. c #085CC300", ">. c #0A56CC00", ",. c #0D5BDA00", "<. c #0955D300", "1. c #165BCC00", "2. c #005FE400", "3. c #0964CC00", "4. c #0963C700", "5. c #0A6CD400", "6. c #0866DB00", "7. c #0D75DF00", "8. c #146ACA00", "9. c #1B6CC900", "0. c #1765C600", "q. c #1769D500", "w. c #1E70C900", "e. c #1775D700", "r. c #036AE800", "t. c #0B76E900", "y. c #0675F100", "u. c #166AE100", "i. c #1778E400", "p. c #2969C600", "a. c #256BDB00", "s. c #2F72CC00", "d. c #2877CC00", "f. c #2174D200", "g. c #2B7BD200", "h. c #2878D500", "j. c #3779CB00", "k. c #327FDD00", "l. c #337BD400", "z. c #257AE600", "x. c #367FE300", "c. c #4775BA00", "v. c #4178C100", "b. c #0887FC00", "n. c #1D80E500", "m. c #128EFC00", "M. c #1687F500", "N. c #1692FD00", "B. c #1B95FD00", "V. c #2682DE00", "C. c #2881DA00", "Z. c #3581CF00", "A. c #3783D000", "S. c #3C85D300", "D. c #3E88D400", "F. c #3683DD00", "G. c #2382E000", "H. c #2C83EB00", "J. c #2A8CEC00", "K. c #2688E800", "L. c #2C8DF000", "P. c #2E90E900", "I. c #2399FD00", "U. c #2C9EFD00", "Y. c #2994F500", "T. c #328BE400", "R. c #348BED00", "E. c #398BE700", "W. c #3785E200", "Q. c #3A93E600", "!. c #359FFA00", "~. c #3D94F200", "^. c #3899F500", "/. c #2FA0FE00", "(. c #33A2FE00", "). c #3DA0F700", "_. c #3BA5FD00", "`. c #3FA8FD00", "'. c #458BCD00", "]. c #438BD400", "[. c #4C8CDB00", "{. c #4688D600", "}. c #4B91D600", "|. c #4A95DB00", " X c #578ED500", ".X c #5294D700", "XX c #5696D900", "oX c #5B9ADB00", "OX c #459CED00", "+X c #4898E900", "@X c #419DFA00", "#X c #439AF100", "$X c #579FE800", "%X c #4EA1E900", "&X c #43A1FD00", "*X c #44AAFE00", "=X c #4CA6F400", "-X c #4BACFC00", ";X c #49A4F500", ":X c #4EB0FE00", ">X c #59A6E900", ",X c #53ACF700", "XMXsX#X,.g PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXm C n i PXx Z =.i.mXSXSXmXwX#XH.z.xXVXVXmXW.5 PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXn *.z.a.S c c $.3.K.xXSXZXZXCXVXMXnXMXMXmXmX+XN p ; PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXb &.R.VXVX0Xa.,.R.tXMXZXCXCXVXMXmXmXnXnXnXmXnXgXR.<.n i x m m a PXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXa C 6.sXSXSXSXmXzXVXCXVXVXVXxXwXOXE.W.T.Q.1XeXzXxXgX;Xu.Z S <.,.V 6 PXPXPXPXPXPXPXPXPXPXPXPX", "PXPXa V ;.K.gXZXZXCXCXVXVXVXcX1Xh.) ^ z H H K / ` h.#XtXgXeXH.H.,X2Xu.V 6 PXPXPXPXPXPXPXPXPXPXPX", "PXPXg A Q -.7. . @ w P .p.p.@.p.p.p.p.i.m.m.y.T 3 PXPXPXPXPXPXPXPXPX", "PX%.^.X}.X.PXPXPXPXPXPXPXPXPXPXPXo.~.).*X-X-X*X*X`.!.z.&.M : PXPXPX", "PX @ B Q 8.=XgXgXhXxXxXxXcXhXyX>X'.PXPXPXPXPXPXPXPXPXPX@.~.*X2X2X2X:X-X*X*X_.H.1.M @ PXPX", "PXPXPXPXPX j 1.=XfXgXgXhXhXxXxXcXcXgXtXwX9X>X'.PXPXPXPXPXPX#X+X;X3X4X3X2X2X:X-X*X*X_.L.B O PXPX", "PXPXPXPXPXS 1.OXfXgXgXgXxXxXxXxXhXfXfXfXfXfXaXaXyXyXwX9XeXeXeXeXtXdXrX4X4X3X2X-X-X*X*XL.k PXPX", "PXPXPXPXPX&.3.1XfXgXgXgXgXgXgXfXfXfXfXgXgXhXxXxXgXgXgXgXgXgXfXfXfXdXtXrXrX4X,XC.P.*X*XH.r PXPX", "PXPXPXPXf &.Q e. U =.! Q Q Q Q =.Q ! -.! ! 8.w.pXCXCXZXZXZXCXCXVXMXMXnXnXcXcXzXgX$X>.Q ~ w X PXPXPX", "PXPXPXPX > U ! Q Q Q =.W U :.4.0.8.9.d.lXZXFXFXSXFXZXpX8X>X>XXXpXmXnXxXxXaXs.l t X PXPXPXPX", "PXPXPXPXPX 9 W =.Q ! z = @ k ` 0.9.d.d.lXFXFXFXFXGXAX}.Z.Z.j.d.S.vXmXcXxXgX$Xu X PXPXPXPXPX", "PXPXPXPXPXPX. w ~ ~ t + X 9 / 9.d.Z.kXGXHXHXHXHXBX}.'.'.S.A.Z.XXcXnXcXhXwXp.= PXPXPXPXPXPX", "PXPXPXPXPXPXPX w 9 . PX & H g.].bXHXKXJXJXKXBXXX}.}.'.].S.A.pXmXhX>Xd.G O PXPXPXPXPXPX", "PXPXPXPXPXPXPX PXPXPXPX / A.}.kXDXKXLXLXLXkXj.j.{..X}.].D.}.8XD.d.G O PXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPX PXPXPXPXPXPXPX1.{..XoX6XjXkXbXBXc.= = ] [.XX.X}.].S.g./ * PXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX0.{.oX5X6X7X7X7XoXG 0 j.oXoXXX}.S.O.= PXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXp.[.8XiXuX7XjX7X} o PXO K [.5XoXj.] 7 PXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXp.|.6XuXjXkXkXv.- PX - +.{.| 0 O PXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXH ] o.v. X6X Xy PXPXPX y y o PXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX . * 7 y q . PXPXPXPXPX PXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX", "PXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPXPX" }; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizardProperties.cpp0000644000175000001440000000424711506076451020344 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizardProperties.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizardProperties.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizardProperties.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizardProperties[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CDSNWizardProperties[] = { "CDSNWizardProperties\0" }; const QMetaObject CDSNWizardProperties::staticMetaObject = { { &QWizardPage::staticMetaObject, qt_meta_stringdata_CDSNWizardProperties, qt_meta_data_CDSNWizardProperties, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizardProperties::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizardProperties::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizardProperties::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizardProperties)) return static_cast(const_cast< CDSNWizardProperties*>(this)); return QWizardPage::qt_metacast(_clname); } int CDSNWizardProperties::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizardPage::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/DataSourceNameFile48.xpm0000644000175000001440000003727111506076310020030 00000000000000/* XPM */ static const char * xpmDataSourceNameFile48[] = { "48 48 699 2", " c None", ". c #5482C5", "+ c #90ADD8", "@ c #8FB1DE", "# c #769ACF", "$ c #3D6CB6", "% c #7298CE", "& c #D7E5F4", "* c #F3F8FC", "= c #E5F0FA", "- c #9DB4D8", "; c #92B7E2", "> c #DAEBF8", ", c #DAEAF8", "' c #B6CFEB", ") c #3368B7", "! c #5A97D8", "~ c #C1DCF3", "{ c #C4DCF3", "] c #C7DDF4", "^ c #C9DDF4", "/ c #C5DDF4", "( c #97BDE5", "_ c #1B65BE", ": c #80B5E8", "< c #ADCDF0", "[ c #B4D0F0", "} c #B7D2F1", "| c #B9D4F2", "1 c #BBD6F4", "2 c #ADCFF0", "3 c #A7CBEF", "4 c #A6CBEF", "5 c #347ACA", "6 c #2058AB", "7 c #0F6DD3", "8 c #99C1EC", "9 c #A6C7EE", "0 c #AACCF0", "a c #AED0F2", "b c #AFD1F3", "c c #9CC4EE", "d c #8BB8E9", "e c #90BBEA", "f c #8CB9EA", "g c #2C7FD8", "h c #215EB5", "i c #1962C0", "j c #2379D9", "k c #7DAFE7", "l c #A2CBF1", "m c #A5CDF2", "n c #83B3EA", "o c #6FA5E5", "p c #156DD5", "q c #1B65C4", "r c #226DCB", "s c #2376D9", "t c #5A99E1", "u c #97C5F0", "v c #9CC9F1", "w c #9FCBF2", "x c #76ACE8", "y c #5291E0", "z c #357EDB", "A c #035ED2", "B c #0E61CC", "C c #0A5AC9", "D c #0058D1", "E c #2B76D9", "F c #93C3EF", "G c #9CCCF3", "H c #9FCEF3", "I c #67A1E6", "J c #508FE0", "K c #3C80DC", "L c #357ADB", "M c #2A73D9", "N c #1064D4", "O c #2072D9", "P c #065CD3", "Q c #0957C8", "R c #105FD2", "S c #0054CF", "T c #236ED6", "U c #8CC1EF", "V c #A0D2F5", "W c #A3D4F6", "X c #A4D5F6", "Y c #5D9CE4", "Z c #1965D4", "` c #1764D3", " . c #0C5CD1", ".. c #2D78D9", "+. c #2471D7", "@. c #2F7CDB", "#. c #0955C7", "$. c #407CD9", "%. c #0050CD", "&. c #1B66D4", "*. c #90C7F1", "=. c #A9DAF8", "-. c #B4E0F9", ";. c #B7E1FA", ">. c #90C1F0", ",. c #286CD5", "'. c #145ED1", "). c #1360D2", "!. c #87BFEE", "~. c #206BD5", "{. c #6CA5E6", "]. c #6EADE6", "^. c #0D55C5", "/. c #487ED9", "(. c #0851CC", "_. c #004CCA", ":. c #6DA7E7", "<. c #B6E2FA", "[. c #C3E9FC", "}. c #C5EBFC", "|. c #C6ECFC", "1. c #AAD4F5", "2. c #336FD5", "3. c #2969D3", "4. c #75AFEA", "5. c #92C7F1", "6. c #1A62D1", "7. c #588BDD", "8. c #2D71CE", "9. c #195EC1", "0. c #3069D2", "a. c #5B8CDD", "b. c #97CAF2", "c. c #B8E5FB", "d. c #C8EDFD", "e. c #CBEFFD", "f. c #CDF0FE", "g. c #CEF1FE", "h. c #598DDE", "i. c #336CD3", "j. c #7EADE8", "k. c #B5E0F9", "l. c #78B0EA", "m. c #5E91DF", "n. c #386FD4", "o. c #3475C5", "p. c #0B4FC5", "q. c #9BBCEB", "r. c #BAE1F9", "s. c #C4EDFD", "t. c #D0F2FE", "u. c #D1F3FF", "v. c #D2F3FF", "w. c #BEE2F9", "x. c #B3D9F6", "y. c #A3CDF2", "z. c #6E9EE3", "A. c #C9E5F9", "B. c #5E97DF", "C. c #235DA0", "D. c #3878CB", "E. c #376BD0", "F. c #DEF4FE", "G. c #DAF4FE", "H. c #D3F3FF", "I. c #D4F4FF", "J. c #D6F4FF", "K. c #D7F4FF", "L. c #D7F5FF", "M. c #D9F4FE", "N. c #DFF5FE", "O. c #C9ECFC", "P. c #5F99D2", "Q. c #6299DA", "R. c #E3F8FF", "S. c #EAF9FF", "T. c #E6F8FF", "U. c #E5F8FF", "V. c #E2F7FF", "W. c #E4F7FF", "X. c #E9F9FF", "Y. c #D6F4FE", "Z. c #77ACDD", "`. c #7DADDD", " + c #C4E7F9", ".+ c #E2F0FB", "++ c #F1FBFF", "@+ c #F2FCFF", "#+ c #EFFBFF", "$+ c #E8F9FF", "%+ c #CDEEFC", "&+ c #86B5E1", "*+ c #6C95D6", "=+ c #2753C6", "-+ c #5678D2", ";+ c #829DDE", ">+ c #869FDF", ",+ c #6988D8", "'+ c #7495DD", ")+ c #A8CBEB", "!+ c #668BB8", "~+ c #687AA8", "{+ c #879CCC", "]+ c #7C91C0", "^+ c #586DA1", "/+ c #435580", "(+ c #898989", "_+ c #B4B4B4", ":+ c #B3B3B3", "<+ c #808080", "[+ c #8A8A96", "}+ c #D5D5D5", "|+ c #BDBDBD", "1+ c #71717B", "2+ c #828282", "3+ c #8C8C8C", "4+ c #696969", "5+ c #F5F5F5", "6+ c #E3E3E3", "7+ c #D4E0EF", "8+ c #D2E3F6", "9+ c #D6E7F8", "0+ c #D9EAFA", "a+ c #DDEEFC", "b+ c #DEEFFD", "c+ c #DBECFB", "d+ c #D8E8F9", "e+ c #D4E4F6", "f+ c #CFE0F3", "g+ c #D7DFEA", "h+ c #F6F6F6", "i+ c #CDCDCD", "j+ c #A0A0AD", "k+ c #FBFBFB", "l+ c #DFDFDF", "m+ c #858591", "n+ c #ECECEC", "o+ c #EAEAEA", "p+ c #D2E2F5", "q+ c #D5E6F8", "r+ c #DCEDFC", "s+ c #D8E9F9", "t+ c #D4E5F7", "u+ c #D0E0F4", "v+ c #D2DEEE", "w+ c #EEEEEE", "x+ c #535353", "y+ c #FFFFFF", "z+ c #5878A8", "A+ c #3D7ED0", "B+ c #4B8DD9", "C+ c #599BE2", "D+ c #66A9EA", "E+ c #70B4F1", "F+ c #73B7F3", "G+ c #6BAFEE", "H+ c #60A2E7", "I+ c #5294DE", "J+ c #4486D5", "K+ c #3373CA", "L+ c #C3D2EB", "M+ c #D3D3D3", "N+ c #91A1B9", "O+ c #3B7CCF", "P+ c #498BD8", "Q+ c #5799E1", "R+ c #64A7EA", "S+ c #6FB3F1", "T+ c #6DB0EF", "U+ c #61A4E8", "V+ c #5496DF", "W+ c #4688D6", "X+ c #3879CD", "Y+ c #C3D3EB", "Z+ c #F2F2F2", "`+ c #575757", " @ c #6787B3", ".@ c #3878CD", "+@ c #5092DD", "@@ c #5A9DE3", "#@ c #63A6E9", "$@ c #5EA1E6", "%@ c #5698E0", "&@ c #4B8CD9", "*@ c #3E7FD1", "=@ c #3171C9", "-@ c #C5D5EC", ";@ c #C9C9C9", ">@ c #42425B", ",@ c #AAAAB4", "'@ c #F8F8F8", ")@ c #9595A0", "!@ c #7E9ECA", "~@ c #3676CC", "{@ c #4384D4", "]@ c #4F91DC", "^@ c #599CE2", "/@ c #61A3E7", "(@ c #5FA2E6", "_@ c #4C8EDA", ":@ c #4081D2", "<@ c #90B0DD", "[@ c #E7E7E7", "}@ c #6383B3", "|@ c #2F6FC7", "1@ c #3A7BCF", "2@ c #4586D5", "3@ c #5193DD", "4@ c #5295DE", "5@ c #498AD8", "6@ c #3575CB", "7@ c #2A69C4", "8@ c #BBCBE4", "9@ c #BFBFBF", "0@ c #63636C", "a@ c #7A7A8A", "b@ c #5D5D72", "c@ c #CFCFCF", "d@ c #E6E6E6", "e@ c #525266", "f@ c #676774", "g@ c #797985", "h@ c #94A7C5", "i@ c #2E6EC6", "j@ c #397ACE", "k@ c #4C8DDA", "l@ c #5092DC", "m@ c #4A8BD9", "n@ c #4182D3", "o@ c #3777CC", "p@ c #2B6BC5", "q@ c #B0C4E2", "r@ c #DDDDDD", "s@ c #5A78AE", "t@ c #1755B7", "u@ c #2E6EC7", "v@ c #4283D3", "w@ c #3B7BCF", "x@ c #2867C3", "y@ c #0E4CB1", "z@ c #B6C5E0", "A@ c #BCBCBC", "B@ c #AEAEAE", "C@ c #9C9CA9", "D@ c #C4C4C4", "E@ c #D7D7D7", "F@ c #DADADA", "G@ c #838390", "H@ c #C5C5C5", "I@ c #99A9C3", "J@ c #0F4DB2", "K@ c #2D6DC6", "L@ c #3D7DD0", "M@ c #4283D4", "N@ c #3474CB", "O@ c #1250B4", "P@ c #D9D9D9", "Q@ c #5F7DB3", "R@ c #0643AD", "S@ c #2463C0", "T@ c #2C6BC5", "U@ c #3272C9", "V@ c #2968C4", "W@ c #1C5BBB", "X@ c #0B49B0", "Y@ c #013EA9", "Z@ c #B5C4DF", "`@ c #B9B9B9", " # c #969696", ".# c #888894", "+# c #BABABA", "@# c #CECECE", "## c #737380", "$# c #A5A5A5", "%# c #B5B5B5", "&# c #9EADC8", "*# c #0542AC", "=# c #114FB4", "-# c #2362BF", ";# c #3070C8", "># c #2F6FC8", ",# c #205FBE", "'# c #0C4AB1", ")# c #023FA9", "!# c #6887BB", "~# c #1351B5", "{# c #2464C0", "]# c #2A6AC4", "^# c #2B6AC5", "/# c #2565C1", "(# c #1E5DBC", "_# c #1453B6", ":# c #0947AF", "<# c #B5C4DE", "[# c #B6B6B6", "}# c #7B7B7B", "|# c #9A9A9A", "1# c #787883", "2# c #AFAFAF", "3# c #B1B1B1", "4# c #C1C1C1", "5# c #676773", "6# c #949494", "7# c #A5B4CE", "8# c #1B5ABA", "9# c #2665C2", "0# c #1F5EBD", "a# c #1654B7", "b# c #D1D1D1", "c# c #7190C1", "d# c #3A7ACE", "e# c #3E7ED1", "f# c #2160BE", "g# c #1553B6", "h# c #B6C5DF", "i# c #53535C", "j# c #666679", "k# c #6E6E81", "l# c #9E9E9E", "m# c #676779", "n# c #565666", "o# c #6A6A76", "p# c #ABBAD3", "q# c #1D5CBC", "r# c #2968C3", "s# c #2D6CC6", "t# c #2261BF", "u# c #B7C6E0", "v# c #FEFEFE", "w# c #7695C4", "x# c #4E90DB", "y# c #4F90DC", "z# c #4A8CD9", "A# c #4284D4", "B# c #B7C7DF", "C# c #B0B0B0", "D# c #89899A", "E# c #7B7B8D", "F# c #7B7B89", "G# c #909098", "H# c #84848C", "I# c #6D6D7A", "J# c #ADBDD4", "K# c #488AD8", "L# c #4485D5", "M# c #205FBD", "N# c #B8C7E0", "O# c #FCFCFC", "P# c #F9F9F9", "Q# c #F7F7F7", "R# c #F3F3F3", "S# c #F1F1F1", "T# c #EFEFEF", "U# c #EDEDED", "V# c #EBEBEB", "W# c #E9E9E9", "X# c #E5E5E5", "Y# c #DCDCDC", "Z# c #ADADAD", "`# c #919191", " $ c #7A7A7A", ".$ c #4F4F59", "+$ c #CBCBCB", "@$ c #DBDBDB", "#$ c #E8E8E8", "$$ c #E2E2E2", "%$ c #C0C0C0", "&$ c #7F7F7F", "*$ c #7C7C88", "=$ c #ACACAC", "-$ c #909090", ";$ c #5F5F6B", ">$ c #999999", ",$ c #D2D2D2", "'$ c #CCCCCC", ")$ c #8B8B8B", "!$ c #BEBEBE", "~$ c #D4D4D4", "{$ c #A4A4A4", "]$ c #707070", "^$ c #A2A2A2", "/$ c #F0F0F0", "($ c #F4F4F4", "_$ c #787878", ":$ c #DEE2E7", "<$ c #D0E1F4", "[$ c #D4E4F7", "}$ c #D7E8F9", "|$ c #DDEEFD", "1$ c #DAEBFA", "2$ c #D6E6F8", "3$ c #CEDEF2", "4$ c #989898", "5$ c #939393", "6$ c #ABABAB", "7$ c #E4E4E4", "8$ c #E0E0E0", "9$ c #E1E1E1", "0$ c #777777", "a$ c #5FA1E6", "b$ c #6BAEEE", "c$ c #71B4F2", "d$ c #67AAEB", "e$ c #5A9CE3", "f$ c #5C8CD1", "g$ c #868686", "h$ c #A8A2A2", "i$ c #A28B8B", "j$ c #94807F", "k$ c #7D7D7D", "l$ c #C2C2C2", "m$ c #BBBBBB", "n$ c #979797", "o$ c #686868", "p$ c #4A8BD8", "q$ c #5597E0", "r$ c #5EA1E5", "s$ c #62A5E8", "t$ c #5B9EE4", "u$ c #4687D6", "v$ c #3979CE", "w$ c #3975C9", "x$ c #C04943", "y$ c #B55552", "z$ c #C7706D", "A$ c #B24844", "B$ c #776766", "C$ c #676767", "D$ c #3F80D2", "E$ c #4D8FDB", "F$ c #4586D6", "G$ c #5A89CF", "H$ c #AAAAAA", "I$ c #AB4945", "J$ c #D23932", "K$ c #D08E8B", "L$ c #DC9895", "M$ c #B78786", "N$ c #E5DDDD", "O$ c #B3B1B1", "P$ c #4A4A4A", "Q$ c #0745AD", "R$ c #3273C9", "S$ c #3778CD", "T$ c #4270BF", "U$ c #A7A7A7", "V$ c #D8322E", "W$ c #E6534C", "X$ c #D28784", "Y$ c #D29593", "Z$ c #CBBDBD", "`$ c #B2AEAE", " % c #B26B6A", ".% c #612826", "+% c #656565", "@% c #023FAA", "#% c #2868C3", "$% c #2F6EC7", "%% c #2C6CC6", "&% c #1756B8", "*% c #0441AB", "=% c #406EBE", "-% c #983F3D", ";% c #DF2620", ">% c #F5ABA7", ",% c #E25754", "'% c #D8A09D", ")% c #BB8B88", "!% c #956A69", "~% c #DF9998", "{% c #D16865", "]% c #705A59", "^% c #929292", "/% c #0D4AB1", "(% c #1755B8", "_% c #2766C2", ":% c #1A58B9", "<% c #104EB3", "[% c #4472C1", "}% c #A22E2C", "|% c #EB5651", "1% c #FAD7D3", "2% c #F76C69", "3% c #DF8D8A", "4% c #DAA3A0", "5% c #CA928F", "6% c #C38887", "7% c #C0A1A1", "8% c #E1E0E0", "9% c #797878", "0% c #1856B8", "a% c #3677CC", "b% c #3C7DD0", "c% c #3170C8", "d% c #1C5ABB", "e% c #4C7BC6", "f% c #A0A0A0", "g% c #982926", "h% c #F17971", "i% c #F7756F", "j% c #F85D58", "k% c #F54744", "l% c #DC9E9B", "m% c #D89F9C", "n% c #B38583", "o% c #A99494", "p% c #5A0E0B", "q% c #4788D7", "r% c #2665C1", "s% c #5382CB", "t% c #9D9D9D", "u% c #972F2C", "v% c #F2756A", "w% c #F11A15", "x% c #F51612", "y% c #F54D45", "z% c #EA3D39", "A% c #D49592", "B% c #D49895", "C% c #B08381", "D% c #AA7473", "E% c #AC3D39", "F% c #C4D4EA", "G% c #C6D6EB", "H% c #C7D7EB", "I% c #C8D8EB", "J% c #C8D8EA", "K% c #C7D7E9", "L% c #C4D5E7", "M% c #C0D1E4", "N% c #BCCCE0", "O% c #B7C7DC", "P% c #B1C1D8", "Q% c #BAC6D8", "R% c #8D8D8D", "S% c #863330", "T% c #E63B33", "U% c #EB1510", "V% c #EE1410", "W% c #EA120E", "X% c #E21E16", "Y% c #D93530", "Z% c #CD8380", "`% c #CB8B88", " & c #C58381", ".& c #BD6E6B", "+& c #2A0200", "@& c #797979", "#& c #CACACA", "$& c #D0D0D0", "%& c #B2B2B2", "&& c #A1A1A1", "*& c #636363", "=& c #54211E", "-& c #DA3530", ";& c #E0140C", ">& c #DF120C", ",& c #D90F0A", "'& c #D20D08", ")& c #C50B06", "!& c #BF1E19", "~& c #C05652", "{& c #C3706D", "]& c #B54844", "^& c #200200", "/& c #D6D6D6", "(& c #B7B7B7", "_& c #616161", ":& c #AC3C38", "<& c #C60E07", "[& c #C30C06", "}& c #BC0A05", "|& c #B50904", "1& c #AB0803", "2& c #A00B06", "3& c #9C0D09", "4& c #920D0A", "5& c #620C08", "6& c #FDFDFD", "7& c #DEDEDE", "8& c #5C5C5C", "9& c #1D1919", "0& c #6F221F", "a& c #9D120D", "b& c #A10703", "c& c #9E0703", "d& c #960603", "e& c #8E0804", "f& c #850E0B", "g& c #470806", "h& c #272121", "i& c #343434", "j& c #4C4A4A", "k& c #503938", "l& c #552E2C", "m& c #522B29", "n& c #4A302E", "o& c #383636", "p& c #888888", " . + @ @ + # $ ", " % & * * * * * * = - ", " ; > > > > , > > > > > ' ) ", " ! ~ ~ { ] ^ / ~ ~ ~ ~ ~ ~ ( ", " _ : < [ } | 1 2 3 4 4 4 4 4 4 5 ", " 6 7 8 9 0 a b c d d d e f d d d g h ", " i j k c l m n o o o o o o o o o p q ", " r s t u v w x y y y y y y y y z A B ", " C D D E F G H I J K L L L L M N O P ", " Q R S S T U V W X Y Z Z ` ...+.R @. ", " #.$.%.%.&.*.=.-.;.>.,.'.%.).!.~.{.]. ", " ^./.(._.:.<.[.}.|.1.2.2.3.4.5.6.7.8. ", " 9.0.a.b.c.d.e.f.g.g.h.i.j.k.l.m.n.o. ", " p.q.r.s.g.t.u.v.v.w.x.g.y.z.A.B.C. ", " D.E.F.G.H.I.J.K.L.J.I.H.M.N.O.P. ", " Q.g.R.S.T.U.V.V.W.U.X.U.Y.Z. ", " `. +T..+++@+@+++#+$+%+&+ ", " *+=+-+;+>+,+'+)+!+ ", " ~+{+]+^+/+ ", " (+_+_+_+_+_+_+_+_+_+_+:+:+:+<+ [+}+|+1+ 2+_+_+_+_+_+_+_+_+_+_+:+:+:+3+ ", "4+5+6+7+8+9+0+a+b+c+d+e+f+g+h+i+ j+k+l+m+ n+o+7+p+q+0+r+b+r+s+t+u+v+h+w+x+", "4+y+z+A+B+C+D+E+F+G+H+I+J+K+L+M+ j+k+l+m+ y+N+O+P+Q+R+S+F+T+U+V+W+X+Y+Z+`+", "4+y+ @.@J++@@@U+#@$@%@&@*@=@-@;@ >@>@>@,@'@6+)@>@>@>@ y+!@~@{@]@^@/@#@(@Q+_@:@K+<@[@`+", "4+y+}@|@1@2@_@3@4@]@5@:@6@7@8@9@0@a@b@c@o+o+o+o+o+o+o+o+d@e@f@g@y+h@i@j@{@k@3@4@l@m@n@o@p@q@r@`+", "4+y+s@t@u@o@A+n@v@:@w@K+x@y@z@A@B@o+C@D@E@E@E@E@E@E@E@E@F@G@H@M+y+I@J@K@~@L@n@M@:@O+N@p@O@z@P@`+", "4+y+Q@R@O@S@T@=@U@|@V@W@X@Y@Z@`@ #D@.#+#D@D@D@D@D@D@D@D@@###$#%#y+&#*#=#-#p@;#U@>#7@,#'#)#Z@}+`+", "4+y+!#~#W@{#]#K@K@^#/#(#_#:#<#[#}#|#1#2#3#3#3#3#3#3#3#3#4#5#2+6#y+7#=#8#S@7@K@K@p@9#0#a#X@Z@b#`+", "4+y+c#0#7@K+d#e#*@w@N@p@f#g#h#:+i#j#k#$#l#l#l#l#l#l#l#l#%#m#n#o#y+p#q#r#U@j@e#*@O+6@s#t#a#u#i+`+", "4+v#w#7@~@n@P+x#y#z#A#.@p@(#B#C# D#D#E#F#G#H#I#E#D#D# v#J#x@6@:@K#x#y#B+L#j@K@M#N#;@`+", "4+O#k+P#Q#5+R#S#T#U#V#W#[@X#Y#Z# o#`# $.$ R#k+P#Q#5+R#S#T#U#V#W#[@X#Y#9@`+", " l#b#@#+$@$V##$X#$$l+%$:+C#Z#&$ *$=$-$;$ >$,$c@'$Y#V##$X#$$l+%$_+3#B@)$ ", " }#!$E@~$b#@#'${$]$ 2#_+_+_+_+_+_+_+_+_+:+:+:+{$ $2#E@~$b#c@'$^$}# ", " |#v#Z+V#/$Q#[@@#T#($_$ 2#'@:$<$[$}$c+b+|$1$2$p+3$#$O#4$ 5$($($X#W#Q#U#6$X#($>$ ", " #T#w+#$7$8$Y#9$n+[@0$ _+X#r#{@3@a$b$F+c$d$e$_@*@f$P#%# g$h$i$j$Z#8$+#D@-$[@3+ ", " k$l#l$l$;@l$m$n$o$ _+[@;#A+p$q$r$#@s$t$3@u$v$w$S#2# x$y$z$A$B$Y#'$C$o$ ", " _+W#M#N@D$K#]@I+I+E$F$O+;#G$d@H$ I$J$K$L$M$N$O$P$ ", " _+n+Q$-#R$d#D$M@n@*@S$>#M#T$6+U$ V$W$X$Y$Z$`$ %.% +%%$ ", " _+w+@%:#W@#%$%U@=@%%/#&%*%=%8$$# -%;%>%,%'%)%!%~%{%]%9$^% ", " _+/$/%(%M#_%T@K@%%r#t#:%<%[%r@^$ }%|%1%2%3%4%5%6%7%8%9% ", " _+Z+0%S@u@a%b%*@A+X+c%_%d%e%F@f% g%h%i%j%k%l%m%n%@$o%p% ", " _+S#t#|@w@2@_@]@E$q%*@K+r%s%E@t% u%v%w%x%y%z%A%B%C%D%E% ", " :+Q#F%G%H%I%J%K%L%M%N%O%P%Q%i+R% S%T%U%V%W%X%Y%Z%`% &.&+& ", " @&#&$&i+#&U#o+[@7$9$}+%#%&2#&&*& =&-&;&>&,&'&)&!&~&{&]&^& ", " *&>$,$/&M+$&i+(&n$_& :&<&[&}&|&1&2&3&4&5& ", " 9$6&#$U#h+/$7&c@v#H@ 8&9&0&a&b&c&d&e&f&g&h& ", " c@/$n+d@$$l+7&[@/$!$ _&i& j&k&l&m&n&o& ", " ^%_+l$$&;@l$=$p& ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCMonitor.cpp0000644000175000001440000000376011506076451016110 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CMonitor.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CMonitor.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CMonitor.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CMonitor[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CMonitor[] = { "CMonitor\0" }; const QMetaObject CMonitor::staticMetaObject = { { &QTabWidget::staticMetaObject, qt_meta_stringdata_CMonitor, qt_meta_data_CMonitor, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CMonitor::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CMonitor::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CMonitor::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CMonitor)) return static_cast(const_cast< CMonitor*>(this)); return QTabWidget::qt_metacast(_clname); } int CMonitor::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTabWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CTracing.cpp0000644000175000001440000001377411506076310015673 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CTracing.h" #include "CFileSelector.h" #include "Tracing48.xpm" CTracing::CTracing( QWidget *pwidgetParent ) : QWidget( pwidgetParent ) { QGridLayout *playout = new QGridLayout; pcheckboxEnable = new QCheckBox; pcheckboxEnable->setToolTip( tr( "check to enable/disable tracing" ) ); pcheckboxEnable->setWhatsThis( tr( "Check this to tell the Driver Manager to log all ODBC calls to a trace file. Used for debugging. This will reduce performance and use up disk space - turn it off after each debugging session." ) ); pcheckboxForce = new QCheckBox; pcheckboxForce->setToolTip( tr( "check this to force tracing" ) ); pcheckboxForce->setWhatsThis( tr( "Check this to tell the Driver Manager that it should log all ODBC calls even if otherwise told not to (by app). This is only relevant if tracing is generally enabled." ) ); pfileselectorTraceFile = new CFileSelector( CFileSelector::TraceFile ); pfileselectorTraceFile->setToolTip( tr( "select a Trace File" ) ); pfileselectorTraceFile->setWhatsThis( tr( "Select a file to hold the trace output." ) ); pfileselectorTraceLibrary = new CFileSelector( CFileSelector::TraceLibrary ); pfileselectorTraceLibrary->setToolTip( tr( "select a Trace Library" ) ); pfileselectorTraceLibrary->setWhatsThis( tr( "The Trace Library is used, by the Driver Manager and/or Driver, to create the trace output. unixODBC has a standard one but a custom one can be used." ) ); playout->addWidget( new QLabel( tr( "Enable" ) ), 0, 0 ); playout->addWidget( new QLabel( tr( "Force" ) ), 1, 0 ); playout->addWidget( new QLabel( tr( "Output File" ) ), 2, 0 ); playout->addWidget( new QLabel( tr( "Library" ) ), 3, 0 ); playout->addWidget( pcheckboxEnable, 0, 1 ); playout->addWidget( pcheckboxForce, 1, 1 ); playout->addWidget( pfileselectorTraceFile, 2, 1 ); playout->addWidget( pfileselectorTraceLibrary, 3, 1 ); QPushButton *ppushbuttonSetDefault = new QPushButton( "De&fault", this ); ppushbuttonSetDefault->setToolTip( tr( "click this to restore the default values" ) ); ppushbuttonSetDefault->setWhatsThis( tr( "Click this to restore the default values - the values used when unixODBC was first installed." ) ); QPushButton *ppushbuttonApply = new QPushButton( "A&pply", this ); ppushbuttonApply->setToolTip( tr( "click this to apply the current values" ) ); ppushbuttonApply->setWhatsThis( tr( "Click this to save the current values. The values will be immediately effective for newly allocated environments and will remain in effect until different values are applied." ) ); playout->addWidget( ppushbuttonSetDefault, 0, 2 ); playout->addWidget( ppushbuttonApply, 1, 2 ); connect( ppushbuttonSetDefault, SIGNAL(clicked()), SLOT(slotDefault()) ); connect( ppushbuttonApply, SIGNAL(clicked()), SLOT(slotApply()) ); playout->setRowStretch( 3, 10 ); setLayout( playout ); setWindowIcon( QPixmap( xpmTracing48 ) ); setWindowTitle( tr( "Tracing" ) ); loadData(); } CTracing::~CTracing() { } bool CTracing::saveData() { if ( slotApply() ) return true; int n = QMessageBox::question( this, tr( "Save..." ), tr( "Some data could not be saved. Click Discard if its ok to lose changes." ), QMessageBox::Cancel | QMessageBox::Discard, QMessageBox::Discard ); if ( n == QMessageBox::Discard ) return true; return false; } bool CTracing::loadData() { slotDefault(); char szTracing[10]; char szForce[10]; char szTracingFile[FILENAME_MAX]; char szTracingLibrary[FILENAME_MAX]; char szTracingLibraryDefault[FILENAME_MAX]; SQLGetPrivateProfileString( "ODBC", "Trace", "No", szTracing, sizeof(szTracing), "odbcinst.ini" ); if ( szTracing[0] == '1' || toupper( szTracing[0] ) == 'Y' || toupper( szTracing[0] ) == 'O' ) pcheckboxEnable->setChecked( true ); SQLGetPrivateProfileString( "ODBC", "ForceTrace", "No", szForce, sizeof(szForce), "odbcinst.ini" ); if ( szForce[0] == '1' || toupper( szForce[0] ) == 'Y' || toupper( szForce[0] ) == 'O' ) pcheckboxForce->setChecked( true ); SQLGetPrivateProfileString( "ODBC", "TraceFile", "/tmp/Trace.txt", szTracingFile, sizeof(szTracingFile)-1, "odbcinst.ini" ); pfileselectorTraceFile->setText( szTracingFile ); if ( strlen( SHLIBEXT ) > 0 ) sprintf( szTracingLibraryDefault, "libodbctrac%s", SHLIBEXT ); else sprintf( szTracingLibraryDefault, "libodbctrac.so" ); SQLGetPrivateProfileString( "ODBC", "TraceLibrary", szTracingLibraryDefault, szTracingLibrary, sizeof(szTracingLibrary)-1, "odbcinst.ini" ); pfileselectorTraceLibrary->setText( szTracingLibrary ); return true; } bool CTracing::slotApply() { if ( !SQLWritePrivateProfileString( "ODBC", "Trace", ( pcheckboxEnable->isChecked() ? "1" : "0" ), "odbcinst.ini" ) ) { CODBCInst::showErrors( this, tr( "Could not save options. You may not have the privileges to write odbcinst.ini." ) ); return false; } SQLWritePrivateProfileString( "ODBC", "ForceTrace", ( pcheckboxForce->isChecked() ? "1" : "0" ), "odbcinst.ini" ); SQLWritePrivateProfileString( "ODBC", "TraceFile", pfileselectorTraceFile->getText().toAscii().data(), "odbcinst.ini" ); SQLWritePrivateProfileString( "ODBC", "TraceLibrary", pfileselectorTraceLibrary->getText().toAscii().data(), "odbcinst.ini" ); return true; } bool CTracing::slotDefault() { char szTracingLibraryDefault[FILENAME_MAX]; if ( strlen( SHLIBEXT ) > 0 ) sprintf( szTracingLibraryDefault, "libodbctrac%s", SHLIBEXT ); else sprintf( szTracingLibraryDefault, "libodbctrac.so" ); pcheckboxEnable->setChecked( false ); pcheckboxForce->setChecked( false ); pfileselectorTraceFile->setText( "/tmp/Trace.txt" ); pfileselectorTraceLibrary->setText( szTracingLibraryDefault ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizard.h0000644000175000001440000000235311506076310015545 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARD_h #define CDSNWIZARD_h #include "CODBCInst.h" #include /*! * \class CDSNWizard * \brief Data Source Name creation wizard. * * This dialog is used to guide a User through creating a; user, system, or file DSN. This * is used to support a SQLCreateDataSource call when neither driver, nor drivers setup, is * supplying a ConfigDSN to the Driver Manager. * * This will try to find the unixODBC generic attributes call in the Driver and/or Setup * (ODBCINSTGetProperties). Failing that it will simply allow free-form editing of keyword/value * pairs. * * \sa CODBCConfig */ class CDSNWizard : public QWizard { Q_OBJECT public: enum { PageType, PageEntre, PageDriver, PageProperties, PageFini }; CDSNWizard( CDSNWizardData *pWizardData, QWidget* pwidgetParent = 0 ); virtual ~CDSNWizard(); protected slots: void slotHelp(); protected: CDSNWizardData *pWizardData; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNamesFileModel.h0000644000175000001440000000343411506076310020540 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDATASOURCENAMESFILEMODEL_H #define CDATASOURCENAMESFILEMODEL_H #include "CODBCInst.h" #include /*! * \class CDataSourceNamesFileModel * * \brief Presents file-based Data Source Names. * * This model can be used to display file-based Data Source Names in a given * directory. * * This model extends QDirModel by; * * \li using default filter (*.dsn) * \li other, more appropriate, defaults (QDir::Files, QDir::Name) * \li methods to; add, edit, and delete a file-based Data Source Name * * The usefullness of this being a model instead of being a widget (QListView * derived perhaps) or some other implementation is debatable. But this is a * nice experiment with using a model in this special way - if nothing else. * * \code { pDataSourceNamesFileModel = new CDataSourceNamesFileModel; pListView = new QListView; pListView->setViewMode( QListView::IconMode ); pListView->setModel( pDataSourceNamesFileModel ); pListView->setRootIndex( pDataSourceNamesFileModel->index( stringDirectory ) ); playout->addWidget( pListView, 1, 0 ); } * \endcode * * \sa */ class CDataSourceNamesFileModel : public QDirModel { Q_OBJECT public: CDataSourceNamesFileModel( QObject* pobjectParent = NULL ); virtual ~CDataSourceNamesFileModel(); public slots: bool addDataSourceName( const QString &stringDirectory ); bool editDataSourceName( const QModelIndex &modelindex ); bool deleteDataSourceName( const QModelIndex &modelindex ); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardType.cpp0000644000175000001440000000375611506076310016752 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CDSNWizardType.h" #include "CDSNWizard.h" CDSNWizardType::CDSNWizardType( CDSNWizardData *pWizardData, QWidget *pwidgetParent ) : QWizardPage( pwidgetParent ) { this->pWizardData = pWizardData; QVBoxLayout * pLayout = new QVBoxLayout( this ); // group of radio buttons... { QGroupBox * pGroupBox = new QGroupBox; // buttons... { QVBoxLayout *pLayout = new QVBoxLayout; pradiobuttonUser = new QRadioButton( tr( "&User" ) ); pradiobuttonSystem = new QRadioButton( tr( "&System" ) ); pradiobuttonFile = new QRadioButton( tr( "&File" ) ); pradiobuttonUser->setChecked( true ); pLayout->addWidget( pradiobuttonUser ); pLayout->addWidget( pradiobuttonSystem ); pLayout->addWidget( pradiobuttonFile ); pLayout->addStretch( 1 ); pGroupBox->setLayout( pLayout ); } pLayout->addWidget( pGroupBox ); } setTitle( tr( "Type" ) ); } int CDSNWizardType::nextId() const { if ( pradiobuttonSystem->isChecked() ) pWizardData->nType = CDSNWizardData::TypeSystem; else if ( pradiobuttonFile->isChecked() ) pWizardData->nType = CDSNWizardData::TypeFile; else pWizardData->nType = CDSNWizardData::TypeUser; return CDSNWizard::PageDriver; } void CDSNWizardType::initializePage() { if ( pWizardData->nType == CDSNWizardData::TypeSystem ) pradiobuttonSystem->setChecked( true ); else if ( pWizardData->nType == CDSNWizardData::TypeFile ) pradiobuttonFile->setChecked( true ); else pradiobuttonUser->setChecked( true ); } void CDSNWizardType::cleanupPage() { pWizardData->nType = CDSNWizardData::TypeUser; } unixodbc-gui-qt-2.3.0/odbcinstQ4/CThreading.cpp0000644000175000001440000000757011506076310016206 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CThreading.h" #include "Threading48.xpm" const char *ODBC_HELP_THREADING = "Threading options are the means with which the DM handles concurrency (different bits of code trying to access the same internal data at the same time). " \ "If compiled with thread support the DM allows four different thread strategies.\n" \ "Level 0 - Only the DM internal structures are protected the driver is assumed to take care of it's self.\n" \ "Level 1 - The driver is protected down to the statement level each statement will be protected, and the same for the connect level for connect functions, note that descriptors are considered equal to statements when it comes to thread protection.\n" \ "Level 2 - The driver is protected at the connection level. only one thread can be in a particular driver at one time.\n" \ "Level 3 - The driver is protected at the env level, only one thing at a time."; CThreading::CThreading( QWidget *pwidgetParent ) : QWidget( pwidgetParent ) { QGridLayout *playout = new QGridLayout; pspinboxLevel = new QSpinBox; pspinboxLevel->setMinimum( 0 ); pspinboxLevel->setMaximum( 3 ); pspinboxLevel->setToolTip( tr( "set threading level" ) ); pspinboxLevel->setWhatsThis( tr( "Select the threading level. Higher numbers are safer while lower numbers allow more concurrency." ) ); playout->addWidget( new QLabel( tr( "Level" ) ), 0, 0 ); playout->addWidget( pspinboxLevel, 0, 1 ); QPushButton *ppushbuttonSetDefault = new QPushButton( "De&fault", this ); ppushbuttonSetDefault->setToolTip( tr( "click to set values to default" ) ); ppushbuttonSetDefault->setWhatsThis( tr( "Click to restore the default values." ) ); QPushButton *ppushbuttonApply = new QPushButton( "A&pply", this ); ppushbuttonApply->setToolTip( tr( "click to apply the current settings" ) ); ppushbuttonApply->setWhatsThis( tr( "Click this to save the current values." ) ); playout->addWidget( ppushbuttonSetDefault, 0, 2 ); playout->addWidget( ppushbuttonApply, 1, 2 ); connect( ppushbuttonSetDefault, SIGNAL(clicked()), SLOT(slotDefault()) ); connect( ppushbuttonApply, SIGNAL(clicked()), SLOT(slotApply()) ); playout->setRowStretch( 3, 10 ); playout->setColumnStretch( 1, 10 ); setLayout( playout ); setWindowIcon( QPixmap( xpmThreading48 ) ); setWindowTitle( tr( "Threading" ) ); loadData(); } CThreading::~CThreading() { } QString CThreading::windowHelp() { return QString( tr( ODBC_HELP_THREADING ) ); } bool CThreading::loadData() { slotDefault(); char szThreading[100]; SQLGetPrivateProfileString( "ODBC", "Threading", "3", szThreading, sizeof(szThreading), "odbcinst.ini" ); pspinboxLevel->setValue( atoi( szThreading ) ); return true; } bool CThreading::saveData() { if ( slotApply() ) return true; int n = QMessageBox::question( this, tr( "Save..." ), tr( "Some data could not be saved. Click Discard if its ok to lose changes." ), QMessageBox::Cancel | QMessageBox::Discard, QMessageBox::Discard ); if ( n == QMessageBox::Discard ) return true; return false; } bool CThreading::slotApply() { char szThreading[2]; sprintf( szThreading, "%d", pspinboxLevel->value() ); if ( !SQLWritePrivateProfileString( "ODBC", "Threading", szThreading, "odbcinst.ini" ) ) { CODBCInst::showErrors( this, tr( "Could not save options. You may not have the privileges to write odbcinst.ini." ) ); return false; } return true; } bool CThreading::slotDefault() { pspinboxLevel->setValue( 3 ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNamesFile.cpp0000644000175000001440000001417111506076310020112 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include "CDataSourceNamesFile.h" #include "CDataSourceNamesFileModel.h" #include "CFileSelector.h" #include "DataSourceNameFile48.xpm" #include "Set.xpm" CDataSourceNamesFile::CDataSourceNamesFile( QWidget* pwidgetParent ) : QWidget( pwidgetParent ) { QGridLayout *playout = new QGridLayout; // create the 'Default' and the 'Current' directory widgets... { QGridLayout * playoutDirectories = new QGridLayout; QToolButton * ptoolbuttonDefault = new QToolButton; QToolButton * ptoolbuttonCurrent = new QToolButton; plabelDefault = new QLabel; pFileSelector = new CFileSelector( CFileSelector::FileDSNDirectory, QString::null, false, false ); plabelDefault->setWhatsThis( tr( "used system-wide to determine where to find file based data source names" ) ); pFileSelector->setWhatsThis( tr( "current directory being shown" ) ); ptoolbuttonDefault->setIcon( QIcon( xpmSet ) ); ptoolbuttonCurrent->setIcon( QIcon( xpmSet ) ); ptoolbuttonDefault->setToolTip( tr( "use the Current directory as the Default" ) ); ptoolbuttonCurrent->setToolTip( tr( "change the Current directory" ) ); playoutDirectories->addWidget( new QLabel( tr( "Default:" ) ), 0, 0 ); playoutDirectories->addWidget( plabelDefault, 0, 1 ); playoutDirectories->addWidget( ptoolbuttonDefault, 0, 2 ); playoutDirectories->addWidget( new QLabel( tr( "Current:" ) ), 1, 0 ); playoutDirectories->addWidget( pFileSelector, 1, 1 ); playoutDirectories->addWidget( ptoolbuttonCurrent, 1, 2 ); playout->addLayout( playoutDirectories, 0, 0 ); // start with the default directory... { QString stringDefault = getDefault(); pFileSelector->setText( stringDefault ); plabelDefault->setText( stringDefault ); } connect( ptoolbuttonDefault, SIGNAL(clicked()), this, SLOT(slotSetDefault()) ); connect( ptoolbuttonCurrent, SIGNAL(clicked()), pFileSelector, SLOT(slotInvokeDialog()) ); connect( pFileSelector, SIGNAL(signalChanged()), this, SLOT(slotLoad()) ); } // create the model & view for the file data source names... { pDataSourceNamesFileModel = new CDataSourceNamesFileModel; pListView = new QListView; pListView->setToolTip( tr( "list of file-based data source names" ) ); pListView->setWhatsThis( tr( "This is a list of file-based data source names. File-based data source names are *.dsn files which exist on the file system. These files are read from a default directory at connect time." ) ); pListView->setViewMode( QListView::IconMode ); pListView->setModel( pDataSourceNamesFileModel ); slotLoad(); playout->addWidget( pListView, 1, 0 ); } // create the push buttons to invoke add, edit, and delete of a selected file data source name... { QVBoxLayout *playoutButtons = new QVBoxLayout; QPushButton *ppushbuttonAdd = new QPushButton( tr( "A&dd..." ) ); QPushButton *ppushbuttonConfigure = new QPushButton( tr( "&Configure..." ) ); QPushButton *ppushbuttonRemove = new QPushButton( tr( "&Remove" ) ); playoutButtons->addWidget( ppushbuttonAdd ); playoutButtons->addWidget( ppushbuttonConfigure ); playoutButtons->addWidget( ppushbuttonRemove ); playoutButtons->addStretch( 10 ); playout->addLayout( playoutButtons, 1, 1 ); connect( ppushbuttonAdd, SIGNAL(clicked()), this, SLOT(slotAdd()) ); connect( ppushbuttonConfigure, SIGNAL(clicked()), this, SLOT(slotEdit()) ); connect( ppushbuttonRemove, SIGNAL(clicked()), this, SLOT(slotDelete()) ); } setLayout( playout ); setWindowIcon( QPixmap( xpmDataSourceNameFile48 ) ); setWindowTitle( tr( "File Data Source Names" ) ); } CDataSourceNamesFile::~CDataSourceNamesFile() { delete pDataSourceNamesFileModel; } QString CDataSourceNamesFile::getDataSourceName() { QModelIndexList listSelectedIndexes = pListView->selectionModel()->selectedIndexes(); if ( !listSelectedIndexes.count() ) return QString(); return pDataSourceNamesFileModel->fileInfo( listSelectedIndexes.at( 0 ) ).absoluteFilePath(); } void CDataSourceNamesFile::slotLoad() { pListView->setRootIndex( pDataSourceNamesFileModel->index( pFileSelector->getText() ) ); } void CDataSourceNamesFile::slotAdd() { pDataSourceNamesFileModel->addDataSourceName( pFileSelector->getText() ); } void CDataSourceNamesFile::slotEdit() { QModelIndexList listSelectedIndexes = pListView->selectionModel()->selectedIndexes(); if ( !listSelectedIndexes.count() ) { QMessageBox::warning( this, tr( "ODBC Administrator" ), tr( "Please select a Data Source Name from the list" ) ); return; } pDataSourceNamesFileModel->editDataSourceName( listSelectedIndexes.at( 0 ) ); } void CDataSourceNamesFile::slotDelete() { QModelIndexList listSelectedIndexes = pListView->selectionModel()->selectedIndexes(); if ( !listSelectedIndexes.count() ) { QMessageBox::warning( this, tr( "ODBC Administrator" ), tr( "Please select a Data Source Name from the list" ) ); return; } pDataSourceNamesFileModel->deleteDataSourceName( listSelectedIndexes.at( 0 ) ); } void CDataSourceNamesFile::slotSetDefault() { if ( SQLWritePrivateProfileString( "ODBC", "FileDSNPath", pFileSelector->getText().toAscii().constData(), "odbcinst.ini" ) == SQL_FALSE ) { CODBCInst::showErrors( this, tr( "Failed to set default. You may lack the elevated privileges usually required to do this." ) ); return; } plabelDefault->setText( getDefault() ); } QString CDataSourceNamesFile::getDefault() { char szDirectory[FILENAME_MAX]; szDirectory[0] = '\0'; _odbcinst_FileINI( szDirectory ); return QString( szDirectory ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardDriver.h0000644000175000001440000000151711506076310016722 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARDDRIVER_H #define CDSNWIZARDDRIVER_H #include "CODBCInst.h" #include class CDriverList; /*! * \class CDSNWizardDriver * \brief A page for create data source name wizard. * * This page allows a driver to be selected. * * \sa CDSNWizard */ class CDSNWizardDriver : public QWizardPage { Q_OBJECT public: CDSNWizardDriver( CDSNWizardData *pWizardData, QWidget *pwidgetParent = 0 ); int nextId() const; void initializePage(); void cleanupPage(); bool validatePage(); protected: CDSNWizardData * pWizardData; CDriverList * pDriverList; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverConnectPrompt.cpp0000644000175000001440000000716711506076310020252 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 1 * \date 2009 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDriverConnectPrompt.h" #include "CDataSourceNames.h" #include "CDataSourceNamesFile.h" #include "CPage.h" CDriverConnectPrompt::CDriverConnectPrompt( SQLCHAR *pszDataSourceName, SQLSMALLINT nMaxChars, QWidget *pwidgetParent ) : QDialog( pwidgetParent ) { this->pszDataSourceName = pszDataSourceName; this->nMaxChars = nMaxChars; QVBoxLayout *playout00 = new QVBoxLayout; // pManageDataSourceNames = new CManageDataSourceNames; playout00->addWidget( pManageDataSourceNames ); // init dialog buttons... { QDialogButtonBox * pdialogbuttonbox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help ); connect( pdialogbuttonbox, SIGNAL(accepted()), this, SLOT(slotAccept()) ); connect( pdialogbuttonbox, SIGNAL(rejected()), this, SLOT(reject()) ); // connect( pdialogbuttonbox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); playout00->addWidget( pdialogbuttonbox ); } // setLayout( playout00 ); setWindowTitle( tr( "Select Data Source..." ) ); setWindowIcon( pManageDataSourceNames->windowIcon() ); // restore last state... loadState(); } CDriverConnectPrompt::~CDriverConnectPrompt() { saveState(); } void CDriverConnectPrompt::slotAccept() { QString stringDataSourceName; QWidget *pwidgetPage = pManageDataSourceNames->currentWidget(); // sanity checks... if ( !pwidgetPage ) return; if ( pwidgetPage->inherits( "CPage" ) ) return; // get data source name... QWidget *pwidgetContent = ((CPage*)pwidgetPage)->getContent(); if ( pwidgetContent->inherits( "CDataSourceNames" ) ) { CDataSourceNames *pDataSourceNames = (CDataSourceNames*)pwidgetContent; stringDataSourceName = pDataSourceNames->getDataSourceName(); if ( !stringDataSourceName.isEmpty() ) stringDataSourceName = "DSN=" + stringDataSourceName; } else if ( pwidgetContent->inherits( "CDataSourceNamesFile" ) ) { CDataSourceNamesFile *pDataSourceNamesFile = (CDataSourceNamesFile*)pwidgetContent; stringDataSourceName = pDataSourceNamesFile->getDataSourceName(); if ( !stringDataSourceName.isEmpty() ) stringDataSourceName = "FILEDSN=" + stringDataSourceName; } else return; // must select a data source name... if ( stringDataSourceName.isEmpty() ) { QMessageBox::warning( this, "Select a data source name...", "Please select a data source name or Cancel." ); return; } if ( stringDataSourceName.length() >= nMaxChars ) { QMessageBox::warning( this, "Select a data source name...", "Buffer provided is too small. Select a Data Source Name with less characters or Cancel." ); return; } // cool - we have it... strncpy( (char*)pszDataSourceName, stringDataSourceName.toAscii().constData(), nMaxChars ); pszDataSourceName[nMaxChars - 1] = '\0'; accept(); } void CDriverConnectPrompt::loadState() { QSettings settings; int nW = settings.value( "CDriverConnectPrompt/w", geometry().width() ).toInt(); int nH = settings.value( "CDriverConnectPrompt/h", geometry().height() ).toInt(); resize( nW, nH ); } void CDriverConnectPrompt::saveState() { QSettings settings; settings.setValue( "CDriverConnectPrompt/w", width() ); settings.setValue( "CDriverConnectPrompt/h", height() ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDriverConnectPrompt.cpp0000644000175000001440000000464111506076451020427 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDriverConnectPrompt.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDriverConnectPrompt.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDriverConnectPrompt.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDriverConnectPrompt[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 22, 21, 21, 21, 0x09, 0 // eod }; static const char qt_meta_stringdata_CDriverConnectPrompt[] = { "CDriverConnectPrompt\0\0slotAccept()\0" }; const QMetaObject CDriverConnectPrompt::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_CDriverConnectPrompt, qt_meta_data_CDriverConnectPrompt, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDriverConnectPrompt::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDriverConnectPrompt::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDriverConnectPrompt::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDriverConnectPrompt)) return static_cast(const_cast< CDriverConnectPrompt*>(this)); return QDialog::qt_metacast(_clname); } int CDriverConnectPrompt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotAccept(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/SQLManageDataSources.cpp0000644000175000001440000000717111506076310020101 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include "CODBCConfig.h" #include "CDSNWizard.h" /*! * \brief Manage Data Sources * * SQLManageDataSources done using Qt4. Here is where we enter into Qt4 'world'. * * \param hWnd * * \return BOOL */ static BOOL QT4ManageDataSources( HWND hWnd ) { /* * Here, we handle case where a non QT app has called us. Our approach here is a bit different * than what we used for Qt3 because we were getting segfault upon app exit. Here; we instantiate * with a 'new' and NOT 'delete' it. Its a work around. */ if ( !qApp ) { int argc = 1; char *argv[] = { "odbcinstQ4", NULL }; QApplication *pApplication = new QApplication( argc, argv ); QCoreApplication::setOrganizationName("unixODBC"); QCoreApplication::setOrganizationDomain("unixodbc.org"); QCoreApplication::setApplicationName("ODBC Administrator"); } // missing parent widget? Use desktop... QWidget *pWidget = (QWidget*)hWnd; if ( !pWidget ) pWidget = qApp->desktop(); // show dialog... CODBCConfig odbcconfig( pWidget ); if ( odbcconfig.exec() == QDialog::Accepted ) return true; return false; } /*! * \brief Create Data Source * * SQLCreateDataSource done using Qt4. Here is where we enter into Qt4 'world'. * * \param hWnd * * \return BOOL */ static BOOL QT4CreateDataSource( HWND hWnd, LPCSTR pszDataSourceName ) { /* * Here, we handle case where a non QT app has called us. Our approach here is a bit different * than what we used for Qt3 because we were getting segfault upon app exit. Here; we instantiate * with a 'new' and NOT 'delete' it. Its a work around. */ if ( !qApp ) { int argc = 1; char *argv[] = { "odbcinstQ4", NULL }; QApplication *pApplication = new QApplication( argc, argv ); QCoreApplication::setOrganizationName("unixODBC"); QCoreApplication::setOrganizationDomain("unixodbc.org"); QCoreApplication::setApplicationName("ODBC Administrator"); } // missing parent widget? Use desktop... QWidget *pWidget = (QWidget*)hWnd; if ( !pWidget ) pWidget = qApp->desktop(); // show dialog... CDSNWizardData WizardData( pszDataSourceName ); CDSNWizard odbccreate( &WizardData, pWidget ); int nReturn = odbccreate.exec(); // sucks to have to do this after wizard is on its way out - no fail and Back :( if ( nReturn == QDialog::Accepted ) return CODBCInst::saveDataSourceName( pWidget, WizardData.hFirstProperty, WizardData.nType ); return false; } #ifdef __cplusplus extern "C" { #endif /*! * \brief Plugin in entry point. * * This entry point is called to implement the SQLManageDataSources call. * * This plugin does it using Qt4. * * The typical way to get to here is to call into odbcinst via SQLManageDataSource. */ BOOL ODBCManageDataSources( HWND hWnd ) { return QT4ManageDataSources( hWnd ); } /*! * \brief Plugin in entry point. * * This entry point is called to implement the SQLCreateDataSource call. * * This plugin does it using Qt4. * * The typical way to get to here is to call into odbcinst via SQLCreateDataSource. */ BOOL ODBCCreateDataSource( HWND hWnd, LPCSTR lpszDS ) { return QT4CreateDataSource( hWnd, lpszDS ); } #ifdef __cplusplus }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/ODBCManageDataSources64.xpm0000644000175000001440000010421511506076310020342 00000000000000/* XPM */ static const char * xpmODBCManageDataSources64[] = { "64 64 1652 2", " c None", ". c #E7E7F5", "+ c #B7B7C8", "@ c #B8B8C6", "# c #C3C3CF", "$ c #C7C7D2", "% c #BDBDC9", "& c #B2B2BF", "* c #D7D7E5", "= c #FCFCFE", "- c #FDFDFF", "; c #A6A6B8", "> c #B3B3C1", ", c #EBEBEF", "' c #FFFFFF", ") c #F0F0F3", "! c #D1D1DA", "~ c #A9A9B8", "{ c #9797A5", "] c #D0D0E0", "^ c #E6E6EE", "/ c #F9F9FF", "( c #9393A7", "_ c #757582", ": c #BDBDD0", "< c #B4B4C9", "[ c #7C7C8C", "} c #B1B1BE", "| c #F1F1F4", "1 c #E9E9ED", "2 c #ADADBB", "3 c #80808F", "4 c #C8C8D9", "5 c #E6E6ED", "6 c #FEFEFF", "7 c #D1D1DE", "8 c #C0C0D2", "9 c #EFEFF5", "0 c #D8D8E2", "a c #ADADC3", "b c #9090A7", "c c #ABABBA", "d c #EFEFF2", "e c #FEFEFE", "f c #E5E5EA", "g c #9898A9", "h c #707082", "i c #BDBDCF", "j c #C9C9D7", "k c #BEBECC", "l c #F9F9FD", "m c #EDEDF3", "n c #B4B4C6", "o c #9393AE", "p c #65657A", "q c #A5A5B6", "r c #ECECEF", "s c #FBFBFC", "t c #9E9EB1", "u c #C2C2D1", "v c #C8C8D5", "w c #9393AF", "x c #757593", "y c #A09FB1", "z c #E2E2E8", "A c #858597", "B c #BEBED0", "C c #F2F2F7", "D c #E2E2EB", "E c #A2A2B8", "F c #777799", "G c #50506A", "H c #9E9CA9", "I c #B9B4C0", "J c #A28D82", "K c #B0AFBC", "L c #AC7C3B", "M c #D68200", "N c #DD8700", "O c #DA8300", "P c #D67E00", "Q c #A5856C", "R c #BABAC8", "S c #F5F5F7", "T c #FCFCFC", "U c #EDEDF1", "V c #9595A7", "W c #BCBCCF", "X c #E2E2EA", "Y c #F5F5F9", "Z c #BFBFCF", "` c #7A7A9A", " . c #6C6B8A", ".. c #9A99A7", "+. c #D2CCD5", "@. c #E4D6CF", "#. c #E1C7B1", "$. c #A0681E", "%. c #DE8B00", "&. c #E29700", "*. c #E4A300", "=. c #AB9E84", "-. c #AFADB7", ";. c #C3A82D", ">. c #EAC303", ",. c #EEC204", "'. c #E9B903", "). c #BE9E46", "!. c #B4B3C2", "~. c #F6F6F8", "{. c #9D9CAE", "]. c #8F8FA0", "^. c #B8B8CB", "/. c #F5F5FA", "(. c #B7B6C6", "_. c #BEBAC5", ":. c #E2D6D1", "<. c #EFD4B5", "[. c #EDC17E", "}. c #EAB448", "|. c #DEA70F", "1. c #ECC105", "2. c #F4D609", "3. c #F7E40E", "4. c #AEAC88", "5. c #EEEEF1", "6. c #ECECF0", "7. c #A8A8B3", "8. c #CCCA44", "9. c #F8F425", "0. c #CAC654", "a. c #ADADBD", "b. c #EAEAEE", "c. c #F0F0F4", "d. c #E1E1E7", "e. c #9392A4", "f. c #A5A5BD", "g. c #C7C7D5", "h. c #CCCAD5", "i. c #D1C9CB", "j. c #EED9C1", "k. c #EFC88B", "l. c #EBB74B", "m. c #EAB81F", "n. c #EFCF10", "o. c #F8E715", "p. c #FCF626", "q. c #FDFB3C", "r. c #FDFC53", "s. c #A6A68E", "t. c #A1A1B0", "u. c #ABAA8E", "v. c #A7A7B8", "w. c #E4E4E9", "x. c #D3D3DC", "y. c #837A7E", "z. c #636373", "A. c #A4A4BD", "B. c #DEDEE7", "C. c #F3F3F8", "D. c #C6C3CD", "E. c #D9CEC9", "F. c #F3D8B1", "G. c #ECBF69", "H. c #EAB729", "I. c #EECB11", "J. c #F8E918", "K. c #FEFA33", "L. c #FEFE57", "M. c #FFFF7D", "N. c #FEFEA0", "O. c #FCFBBA", "P. c #B9B8AE", "Q. c #C5C5D0", "R. c #E5E5EB", "S. c #E6E6EC", "T. c #DEDEE5", "U. c #B3B3C2", "V. c #DEDEE4", "W. c #E6E6EB", "X. c #E6E6EA", "Y. c #BCBCCA", "Z. c #8B7B58", "`. c #B87A00", " + c #8888A1", ".+ c #ACACC0", "++ c #F4F4F8", "@+ c #C5C2CC", "#+ c #E0D2C9", "$+ c #F2D1A2", "%+ c #EDBD57", "&+ c #E8BC1D", "*+ c #F3DA12", "=+ c #FDF52B", "-+ c #FEFE55", ";+ c #FFFF84", ">+ c #FFFFAD", ",+ c #FFFEC8", "'+ c #FCFBD5", ")+ c #F8F5DB", "!+ c #DFDBCD", "~+ c #9696AB", "{+ c #D8D8E0", "]+ c #E0E0E7", "^+ c #E0E0E6", "/+ c #CACAD5", "(+ c #9797AA", "_+ c #A99139", ":+ c #D19203", "<+ c #CF8515", "[+ c #8C8CAA", "}+ c #F7F7FC", "|+ c #C5C2CE", "1+ c #E1D4CC", "2+ c #F2D09E", "3+ c #ECBC4E", "4+ c #E8C219", "5+ c #F5E318", "6+ c #FEF93B", "7+ c #FFFE71", "8+ c #FFFFA2", "9+ c #FFFFC1", "0+ c #FFFFD0", "a+ c #FEFDD4", "b+ c #FAF7D4", "c+ c #F5F0D6", "d+ c #F2ECD9", "e+ c #A8A6AB", "f+ c #ACACBD", "g+ c #D5D5DD", "h+ c #DCDCE2", "i+ c #DBDBE2", "j+ c #C9C9D4", "k+ c #B9B9C7", "l+ c #BDBDCA", "m+ c #D1D1DB", "n+ c #9492A1", "o+ c #CC922C", "p+ c #DDA12E", "q+ c #C27E1A", "r+ c #66667F", "s+ c #9292AE", "t+ c #E3E3EC", "u+ c #C9C7D3", "v+ c #DFD5D2", "w+ c #F2D3A5", "x+ c #EDBC4F", "y+ c #E9C316", "z+ c #F6E71A", "A+ c #FDF945", "B+ c #FFFE82", "C+ c #FFFFB0", "D+ c #FFFFC6", "E+ c #FFFFCC", "F+ c #FFFFCD", "G+ c #FCFBCD", "H+ c #F7F3CE", "I+ c #F4EED4", "J+ c #F7F3DB", "K+ c #F0EED4", "L+ c #90909D", "M+ c #A3A3B6", "N+ c #C8C8D3", "O+ c #D6D6DE", "P+ c #CCCCD6", "Q+ c #C1C1CE", "R+ c #C5C5D1", "S+ c #CCCAD0", "T+ c #D3A058", "U+ c #EAC635", "V+ c #FAEC3A", "W+ c #DEAA30", "X+ c #BC7A1A", "Y+ c #777798", "Z+ c #A6A6BC", "`+ c #CBCAD7", " @ c #D7D1D3", ".@ c #F4DAB6", "+@ c #ECBC58", "@@ c #E8C217", "#@ c #F7E81A", "$@ c #FEFB47", "%@ c #FFFE87", "&@ c #FFFFB4", "*@ c #FFFFC3", "=@ c #FFFFC7", "-@ c #FEFEC7", ";@ c #FBF8C7", ">@ c #F5EFCA", ",@ c #F3EDD1", "'@ c #F9F6D9", ")@ c #FDFCDD", "!@ c #EDEDD0", "~@ c #9A9A9E", "{@ c #7F7F99", "]@ c #A1A1B4", "^@ c #B7B7C5", "/@ c #BBBBC8", "(@ c #AEAEBE", "_@ c #B8B8C7", ":@ c #CDCDD7", "<@ c #D4D1D6", "[@ c #CF9D58", "}@ c #E8C133", "|@ c #EAA91D", "1@ c #E59012", "2@ c #FAE336", "3@ c #DBA52E", "4@ c #B8771B", "5@ c #3A3A4F", "6@ c #9090AB", "7@ c #CFCBD4", "8@ c #F5E2CD", "9@ c #ECBE6E", "0@ c #E7BA1A", "a@ c #F7E517", "b@ c #FEFB43", "c@ c #FFFE83", "d@ c #FFFFB1", "e@ c #FFFFBE", "f@ c #FFFFC0", "g@ c #FEFDC0", "h@ c #F8F5C1", "i@ c #F3ECC6", "j@ c #F4EDD0", "k@ c #FAF7D9", "l@ c #FFFEDC", "m@ c #FEFEDC", "n@ c #F4F4D3", "o@ c #CDCDB8", "p@ c #939397", "q@ c #7B7A8C", "r@ c #76768D", "s@ c #74748A", "t@ c #787685", "u@ c #747384", "v@ c #A9A9BA", "w@ c #CFCFD9", "x@ c #DAD8DB", "y@ c #CD9C5A", "z@ c #E6BB31", "A@ c #ECAC1D", "B@ c #EF8D0C", "C@ c #FC940B", "D@ c #EB9813", "E@ c #FADE33", "F@ c #D7A12D", "G@ c #B2731D", "H@ c #C0BECF", "I@ c #EBE1DB", "J@ c #EFC992", "K@ c #E6B32D", "L@ c #F3DA11", "M@ c #FEFA37", "N@ c #FFFE77", "O@ c #FFFFA8", "P@ c #FFFFB7", "Q@ c #FFFFB9", "R@ c #FCFBB9", "S@ c #F7F1BC", "T@ c #F1E9C4", "U@ c #F5EFD1", "V@ c #FCFADA", "W@ c #FFFFDC", "X@ c #FFFFDD", "Y@ c #FCFCDA", "Z@ c #F2F2D1", "`@ c #E4E2C4", " # c #D5D1B6", ".# c #CEC7AB", "+# c #D3CCA6", "@# c #D9D6A4", "## c #818186", "$# c #A3A1B0", "%# c #C69657", "&# c #E3B62F", "*# c #EEAE1D", "=# c #F19611", "-# c #FF9F11", ";# c #FD9E11", "># c #ED9E16", ",# c #FAD830", "'# c #D39C2C", ")# c #AC6E1F", "!# c #7C7C87", "~# c #E0DCE2", "{# c #F4DBBD", "]# c #EAB551", "^# c #EBC811", "/# c #FCF524", "(# c #FFFF61", "_# c #FFFF9B", ":# c #FFFFB2", "<# c #FEFEB2", "[# c #FBF9B3", "}# c #F4EDB8", "|# c #F1E7C4", "1# c #F6F1D3", "2# c #FDFCDB", "3# c #FEFDDB", "4# c #F8F4D4", "5# c #F0E7C7", "6# c #EEE4BA", "7# c #F4EFB3", "8# c #FBF9B1", "9# c #E9E6A0", "0# c #AA7B3F", "a# c #E1B12D", "b# c #F1B11D", "c# c #F39F15", "d# c #FFA917", "e# c #FDA817", "f# c #F0A518", "g# c #FAD42D", "h# c #D0972B", "i# c #A66C21", "j# c #C7C6D5", "k# c #EFE4DC", "l# c #EDC386", "m# c #E3B320", "n# c #F6E513", "o# c #FEFE45", "p# c #FFFF87", "q# c #FFFFA7", "r# c #FFFFAB", "s# c #FEFDAC", "t# c #F9F5AE", "u# c #F1E8B5", "v# c #F0E7C6", "w# c #F8F4D6", "x# c #FBF9D8", "y# c #F4ECCC", "z# c #EEE2BC", "A# c #F1E8B1", "B# c #F9F5AD", "C# c #FDFBAC", "D# c #E8D786", "E# c #C3882A", "F# c #FBCF2B", "G# c #F6AE1B", "H# c #FFB31D", "I# c #FDB11D", "J# c #F2AB1A", "K# c #FACE2A", "L# c #CC922A", "M# c #A26922", "N# c #DDDBE5", "O# c #F4DEC4", "P# c #E8B24C", "Q# c #ECC90E", "R# c #FFFF69", "S# c #FFFFA5", "T# c #FDFBA5", "U# c #F6F0A9", "V# c #EFE4B5", "W# c #F2E8CA", "X# c #FAF8D9", "Y# c #FFFFDE", "Z# c #FFFFDF", "`# c #FEFDDD", " $ c #F8F2D4", ".$ c #EEE1C2", "+$ c #EBDCB1", "@$ c #F1E7AA", "#$ c #F7F1A8", "$$ c #F9F4A7", "%$ c #F6F3A3", "&$ c #D0B568", "*$ c #C88E29", "=$ c #FCCA28", "-$ c #FFBF24", ";$ c #FFBD24", ">$ c #FEBB23", ",$ c #F5B21C", "'$ c #FBC928", ")$ c #9E6723", "!$ c #B1B1C1", "~$ c #EAE5E7", "{$ c #EEC999", "]$ c #E3AB1E", "^$ c #F7E30E", "/$ c #FEFD3F", "($ c #FFFF83", "_$ c #FFFF9E", ":$ c #FFFF9F", "<$ c #FFFE9E", "[$ c #FBF99F", "}$ c #F3EBA6", "|$ c #EDE1B7", "1$ c #F4EBCF", "2$ c #FCFBDD", "3$ c #FFFFE0", "4$ c #FFFFE1", "5$ c #FDFCDE", "6$ c #F5EED3", "7$ c #EBDDC0", "8$ c #E9D9B3", "9$ c #EEE1AF", "0$ c #F0E5AE", "a$ c #F0E4A9", "b$ c #F2E9A3", "c$ c #F1EC9A", "d$ c #CDB364", "e$ c #C48928", "f$ c #FCC526", "g$ c #FFC728", "h$ c #FFC72A", "i$ c #FEC428", "j$ c #F8B81E", "k$ c #FBC425", "l$ c #9A6424", "m$ c #61616F", "n$ c #C8C8D7", "o$ c #F8EDE4", "p$ c #E8B56B", "q$ c #E9B90B", "r$ c #FCF219", "s$ c #FFFD59", "t$ c #FFFE8F", "u$ c #FFFE98", "v$ c #FEFD98", "w$ c #F9F59A", "x$ c #F0E5A4", "y$ c #EDE0BC", "z$ c #F6EFD6", "A$ c #FEFCE1", "B$ c #FFFFE2", "C$ c #FFFFE3", "D$ c #FEFDE1", "E$ c #F8F3D9", "F$ c #F1E6CD", "G$ c #EEE2C6", "H$ c #EFE4C4", "I$ c #EDE0BF", "J$ c #E9D9B2", "K$ c #ECDDA2", "L$ c #F5ED9A", "M$ c #F4F293", "N$ c #CCB360", "O$ c #C08427", "P$ c #FCC023", "Q$ c #FFCE2D", "R$ c #FFD130", "S$ c #FFD02E", "T$ c #FFC125", "U$ c #FFBB22", "V$ c #FFBA22", "W$ c #FCBC22", "X$ c #C18427", "Y$ c #945F23", "Z$ c #868699", "`$ c #8B8BA1", " % c #9393AC", ".% c #9C9CB7", "+% c #A8A8BF", "@% c #D3D3E0", "#% c #F6E4D2", "$% c #E2A23D", "%% c #F2CC06", "&% c #FEF828", "*% c #FFFC6C", "=% c #FFFD90", "-% c #FFFD91", ";% c #FEFA92", ">% c #F7F095", ",% c #EDDFA3", "'% c #ECDEBF", ")% c #F7F0D8", "!% c #FCF9E0", "~% c #FDFAE0", "{% c #FDFCE1", "]% c #FEFDE3", "^% c #FFFFE5", "/% c #FFFEE5", "(% c #FDFBE3", "_% c #FAF6DF", ":% c #F8F4DD", "<% c #F7F1D9", "[% c #F1E6CC", "}% c #EADAB3", "|% c #ECDD9D", "1% c #F6ED93", "2% c #FDF991", "3% c #F7F48C", "4% c #CAB15C", "5% c #BD8026", "6% c #FBBB20", "7% c #FFD632", "8% c #FFDC36", "9% c #FFC025", "0% c #FFB41E", "a% c #FFA715", "b% c #FFAC18", "c% c #FFB51E", "d% c #FCB61E", "e% c #B67A26", "f% c #9494A3", "g% c #A0A0B0", "h% c #A2A2B5", "i% c #B3B3C8", "j% c #B3B3C9", "k% c #B1B1C5", "l% c #BABACC", "m% c #D2D2DD", "n% c #C6C6D3", "o% c #DDDDE6", "p% c #F0D5B8", "q% c #DE9B1B", "r% c #F8DD0A", "s% c #FEF838", "t% c #FFFB77", "u% c #FFFB8B", "v% c #FFFB8A", "w% c #FDF88B", "x% c #F6EC8F", "y% c #EBD99D", "z% c #EAD7B6", "A% c #F2E6C9", "B% c #F4EBCD", "C% c #F4EBCE", "D% c #F6EED4", "E% c #FEFDE6", "F% c #FFFFE9", "G% c #FFFEE8", "H% c #FDFCE6", "I% c #F9F4DC", "J% c #F0E4C4", "K% c #ECDBA6", "L% c #F2E592", "M% c #FAF38B", "N% c #FEF98A", "O% c #F7F385", "P% c #C5A955", "Q% c #B97B25", "R% c #FBB61E", "S% c #FFDE37", "T% c #FFE038", "U% c #FFAF1B", "V% c #FFAE1A", "W% c #FFA012", "X% c #FF960B", "Y% c #FF9209", "Z% c #FF9C0F", "`% c #FFB01A", " & c #E19B1F", ".& c #8D5B23", "+& c #C6C6D7", "@& c #C1C1D2", "#& c #CBCBD9", "$& c #EBEBF2", "%& c #F3F3F7", "&& c #FCFCFF", "*& c #EBEBF0", "=& c #E9C398", "-& c #E19E0A", ";& c #FBE70F", ">& c #FFF644", ",& c #FFF97B", "'& c #FFF984", ")& c #FDF784", "!& c #F8EC87", "~& c #EEDB8E", "{& c #EAD59B", "]& c #EDDAA5", "^& c #ECDAA7", "/& c #E9D6AC", "(& c #ECDBBE", "_& c #F5ECD7", ":& c #FCFAE8", "<& c #FFFEEC", "[& c #FFFFED", "}& c #FCF9E5", "|& c #F4EAD0", "1& c #EDDBAF", "2& c #EFDE93", "3& c #FDF684", "4& c #F6F07F", "5& c #C1A350", "6& c #B57724", "7& c #FBB11C", "8& c #FFD833", "9& c #FFA816", "0& c #FF9008", "a& c #FFA313", "b& c #FF8F07", "c& c #FFA916", "d& c #F6A718", "e& c #905C25", "f& c #B4B4C5", "g& c #E9E9EF", "h& c #C3C3D2", "i& c #E2B078", "j& c #E7A603", "k& c #FDEA11", "l& c #FFF445", "m& c #FFF776", "n& c #FFF77E", "o& c #FFF67E", "p& c #FCF17F", "q& c #F6E880", "r& c #F2E283", "s& c #F1E085", "t& c #EDD988", "u& c #E6CF95", "v& c #E8D4B5", "w& c #F3EAD9", "x& c #FDFAED", "y& c #FFFFF1", "z& c #FDFBED", "A& c #F7EFDD", "B& c #EEDEBB", "C& c #EDD998", "D& c #F5E584", "E& c #FCF27E", "F& c #F6EE79", "G& c #BEA04D", "H& c #B27223", "I& c #FBA817", "J& c #FFA212", "K& c #FFAF1A", "L& c #FFB920", "M& c #FF8501", "N& c #FF940A", "O& c #FF970C", "P& c #FFA412", "Q& c #F39E15", "R& c #8A5724", "S& c #B0B0C2", "T& c #F8F8FC", "U& c #DC9F5A", "V& c #E9AC00", "W& c #FEEA0C", "X& c #FFF034", "Y& c #FFF361", "Z& c #FFF574", "`& c #FFF578", " * c #FFF579", ".* c #FFF478", "+* c #FDF278", "@* c #FBEF78", "#* c #F8EB79", "$* c #F1DE80", "%* c #EAD398", "&* c #EDDCC3", "** c #F8F1E7", "=* c #FEFDF5", "-* c #FFFFF6", ";* c #FFFEF5", ">* c #FAF5E9", ",* c #F1E3CA", "'* c #EBD7A2", ")* c #F1DE85", "!* c #FAEC7A", "~* c #FEF478", "{* c #F6EC73", "]* c #BC9D4A", "^* c #AE6D21", "/* c #FB9B10", "(* c #FF9C0E", "_* c #FFC126", ":* c #FFAA18", "<* c #FF9F0E", "[* c #D18319", "}* c #75491F", "|* c #EEEEF4", "1* c #F8F8FD", "2* c #C5C5D2", "3* c #D89347", "4* c #EBAF00", "5* c #FEE805", "6* c #FFEC19", "7* c #FFEE3C", "8* c #FFF15B", "9* c #FFF26B", "0* c #FFF371", "a* c #FFF372", "b* c #FEF072", "c* c #F8E875", "d* c #F0D984", "e* c #ECD6AB", "f* c #F3E7D9", "g* c #FCF9F4", "h* c #FFFEFB", "i* c #FFFFFB", "j* c #FDFAF5", "k* c #F5E9DC", "l* c #EBD4B1", "m* c #EAD08A", "n* c #F2DD78", "o* c #F9EA73", "p* c #FDF072", "q* c #FFF272", "r* c #F6E968", "s* c #B99A3E", "t* c #AA6820", "u* c #FA940D", "v* c #FF960C", "w* c #FF980C", "x* c #EF8F10", "y* c #945B24", "z* c #A8A8BD", "A* c #D79146", "B* c #EBAC00", "C* c #FEE501", "D* c #FFE707", "E* c #FFE917", "F* c #FFEB32", "G* c #FFED4D", "H* c #FFF05F", "I* c #FFF067", "J* c #FFF06A", "K* c #FFF06B", "L* c #FFF16B", "M* c #FCEB6C", "N* c #F4DE75", "O* c #EDD492", "P* c #EFDDC2", "Q* c #F8F2EB", "R* c #FEFDFB", "S* c #FFFFFE", "T* c #FFFEFD", "U* c #FBF7F3", "V* c #F0E0D2", "W* c #E6CAA7", "X* c #E6C88A", "Y* c #EBD07E", "Z* c #F0D875", "`* c #F7E26E", " = c #FDEC6B", ".= c #FFF16A", "+= c #FFF068", "@= c #FFF061", "#= c #FFEE51", "$= c #F6E235", "%= c #BA981F", "&= c #9D6021", "*= c #D87E12", "== c #F48B0A", "-= c #F18A0B", ";= c #CD7815", ">= c #905824", ",= c #A3A3B8", "'= c #F7F7FA", ")= c #FAFAFE", "!= c #D79A57", "~= c #E9A500", "{= c #FEE000", "]= c #FFE301", "^= c #FFE404", "/= c #FFE511", "(= c #FFE625", "_= c #FFEA3C", ":= c #FFEC4F", "<= c #FFED5A", "[= c #FFEE60", "}= c #FFEE63", "|= c #FFEE64", "1= c #FEEC64", "2= c #F8E369", "3= c #EFD57B", "4= c #ECD4A6", "5= c #F4E7D9", "6= c #FCF9F6", "7= c #FFFFFD", "8= c #FCF8F5", "9= c #F4E7DD", "0= c #ECD6C2", "a= c #E9CFAF", "b= c #E7C99B", "c= c #E7C780", "d= c #F0D56C", "e= c #FAE665", "f= c #FEED64", "g= c #FFEE61", "h= c #FFED5C", "i= c #FFEB52", "j= c #FFEA41", "k= c #FFE72A", "l= c #FFE513", "m= c #F7DC05", "n= c #D0B307", "o= c #A27A16", "p= c #8D5C1D", "q= c #7F4D1D", "r= c #693F1A", "s= c #A6A6BD", "t= c #B6B6C9", "u= c #E3E3EB", "v= c #F0F0F7", "w= c #BEBECE", "x= c #DBAA75", "y= c #E49C02", "z= c #FDDA00", "A= c #FFE000", "B= c #FFDF00", "C= c #FFE003", "D= c #FFE10A", "E= c #FFE319", "F= c #FFE52B", "G= c #FFE83D", "H= c #FFE94B", "I= c #FFEA54", "J= c #FFEB59", "K= c #FFEB5C", "L= c #FCE65E", "M= c #F4D967", "N= c #EBCE86", "O= c #EDD7B8", "P= c #F6EDE4", "Q= c #FDFAF7", "R= c #FEFCFA", "S= c #FBF6F2", "T= c #F6EDE6", "U= c #F1E0D2", "V= c #EACEAD", "W= c #E8C781", "X= c #F2D465", "Y= c #FBE45D", "Z= c #FFEA5A", "`= c #FFEA55", " - c #FFE94C", ".- c #FFE840", "+- c #FFE530", "@- c #FFE31D", "#- c #FFE20D", "$- c #FBDC00", "%- c #EDCE00", "&- c #C48F00", "*- c #894C00", "=- c #717182", "-- c #85859B", ";- c #9191AB", ">- c #9999B4", ",- c #9E9EB8", "'- c #BEBECF", ")- c #D3D3DE", "!- c #E1E1EA", "~- c #E7E7EF", "{- c #BCBCCC", "]- c #E0BB94", "^- c #DD9108", "/- c #FBD100", "(- c #FFDD00", "_- c #FFDC00", ":- c #FFDC01", "<- c #FFDD06", "[- c #FFDF0F", "}- c #FFE01C", "|- c #FFE22A", "1- c #FFE438", "2- c #FFE542", "3- c #FEE64A", "4- c #FADF51", "5- c #F0D05F", "6- c #E8C57F", "7- c #EACDAB", "8- c #F1DFCD", "9- c #F8EEE5", "0- c #FDF9F6", "a- c #FAF3ED", "b- c #F2DFCA", "c- c #EBCD96", "d- c #EECD6A", "e- c #F7DA54", "f- c #FDE44B", "g- c #FFE544", "h- c #FFE439", "i- c #FFE22C", "j- c #FFE11E", "k- c #FFDF11", "l- c #FFDD07", "m- c #FFDD02", "n- c #FAD300", "o- c #D49400", "p- c #985200", "q- c #353541", "r- c #58586C", "s- c #6A6A85", "t- c #767694", "u- c #8080A0", "v- c #9A9AB1", "w- c #ACACBF", "x- c #E5E5ED", "y- c #E7CDB2", "z- c #D78B18", "A- c #F6C300", "B- c #FEDA00", "C- c #FFD900", "D- c #FFD901", "E- c #FFDA02", "F- c #FFDA07", "G- c #FFDB0E", "H- c #FFDC17", "I- c #FFDE21", "J- c #FEDF2B", "K- c #FADA34", "L- c #F2CD42", "M- c #EAC059", "N- c #E7BE74", "O- c #E9C594", "P- c #F0D9C1", "Q- c #FAF1EA", "R- c #FEFDFC", "S- c #FFFEFC", "T- c #FCF7F2", "U- c #F5E4D1", "V- c #EDCE9A", "W- c #EDC765", "X- c #F5D144", "Y- c #FCDB35", "Z- c #FFDF2C", "`- c #FFDE23", " ; c #FFDD19", ".; c #FFDC0F", "+; c #FFDA08", "@; c #FFDA03", "#; c #FFDA00", "$; c #F4C600", "%; c #C78300", "&; c #8A4700", "*; c #272736", "=; c #404056", "-; c #505070", ";; c #8989A3", ">; c #D8D8E3", ",; c #EFDECD", "'; c #D28F35", "); c #EEB102", "!; c #FED400", "~; c #FFD600", "{; c #FFD601", "]; c #FFD702", "^; c #FFD705", "/; c #FFD809", "(; c #FFD80E", "_; c #FDD614", ":; c #F9D01C", "<; c #F3C627", "[; c #EBBA38", "}; c #E6B760", "|; c #ECCDA7", "1; c #F8EEE4", "2; c #FDFAF6", "3; c #F6E7D7", "4; c #EDCB9B", "5; c #EABD5A", "6; c #F2C530", "7; c #FAD21E", "8; c #FED816", "9; c #FFD810", "0; c #FFD80A", "a; c #FFD706", "b; c #FED500", "c; c #ECB500", "d; c #B77100", "e; c #4B4B58", "f; c #CCCCDC", "g; c #F5EBE2", "h; c #D7A160", "i; c #E3A009", "j; c #FBCB00", "k; c #FFD300", "l; c #FFD401", "m; c #FFD402", "n; c #FFD304", "o; c #FDD106", "p; c #F9CB0A", "q; c #F0BC1A", "r; c #E8B54E", "s; c #EDCFA6", "t; c #FAF1E8", "u; c #FEFDFA", "v; c #F9EEE3", "w; c #EFD0A8", "x; c #E8B65C", "y; c #EDB825", "z; c #F7C80E", "A; c #FDD107", "B; c #FFD305", "C; c #FFD403", "D; c #FBCD00", "E; c #DE9F01", "F; c #A76000", "G; c #EEE9E8", "H; c #E3BE95", "I; c #D6911B", "J; c #F4BB00", "K; c #FED000", "L; c #FFD100", "M; c #FECF00", "N; c #FAC803", "O; c #F0B818", "P; c #EAB75A", "Q; c #F1D7B6", "R; c #FCF6F0", "S; c #FCF6EF", "T; c #F2DABD", "U; c #E9B96D", "V; c #EBB12A", "W; c #F4BE0A", "X; c #FCCB02", "Y; c #FFD001", "Z; c #F4BE00", "`; c #C88504", " > c #7D4607", ".> c #8A8A9D", "+> c #D9D7E0", "@> c #EAD4BE", "#> c #CF913E", "$> c #E9A607", "%> c #FCC800", "&> c #FFCD00", "*> c #FECB00", "=> c #F9C204", "-> c #EFB423", ";> c #EBBD70", ">> c #F5E0C9", ",> c #ECC286", "'> c #EAAF38", ")> c #F2B80E", "!> c #FAC602", "~> c #FECC00", "{> c #E7A802", "]> c #BA7C1E", "^> c #8B6D5C", "/> c #58526A", "(> c #C4C3D5", "_> c #F0E6DF", ":> c #DCAF7B", "<> c #D79218", "[> c #F5B700", "}> c #FEC900", "|> c #FFCB00", "1> c #FFCA00", "2> c #FDC700", "3> c #F7BC09", "4> c #EEB333", "5> c #EFC68A", "6> c #F8EADA", "7> c #FDF9F5", "8> c #F9EBDF", "9> c #F0CB9E", "0> c #EBB24C", "a> c #F1B415", "b> c #FAC103", "c> c #FEC800", "d> c #F3B900", "e> c #D18F0B", "f> c #B68547", "g> c #998886", "h> c #46435B", "i> c #9999AE", "j> c #D8D4DC", "k> c #E7CEB5", "l> c #CC8F3F", "m> c #E6A00A", "n> c #FBC000", "o> c #FEC700", "p> c #FFC700", "q> c #FFC600", "r> c #FCC201", "s> c #F5B710", "t> c #EEB548", "u> c #F2D0A3", "v> c #FAEFE4", "w> c #FAF0E6", "x> c #F3D4B0", "y> c #EDB660", "z> c #F0B021", "A> c #F9BC06", "B> c #FEC500", "C> c #FEC600", "D> c #F9BF01", "E> c #E29F05", "F> c #BD7F24", "G> c #A8896B", "H> c #776F81", "I> c #13121F", "J> c #BEBDCE", "K> c #ECE2DC", "L> c #DDB489", "M> c #CF8A20", "N> c #EFAA02", "O> c #FDC000", "P> c #FFC400", "Q> c #FFC300", "R> c #FCBD03", "S> c #F4B31A", "T> c #F0BA5E", "U> c #F5D9B7", "V> c #FAEEE1", "W> c #F6DDC1", "X> c #EFBD75", "Y> c #F0AE2D", "Z> c #F7B60A", "`> c #FDC001", " , c #FCC000", "., c #EDAB02", "+, c #C88512", "@, c #B2854F", "#, c #918180", "$, c #454259", "%, c #767681", "&, c #A9A9BF", "*, c #C8C5CF", "=, c #E8D6C4", "-, c #CD995C", ";, c #D89013", ">, c #F3AE00", ",, c #FDBE00", "', c #FFC100", "), c #FEBF00", "!, c #FAB807", "~, c #F3B228", "{, c #F1C175", "], c #F6DFC3", "^, c #F8E2CB", "/, c #F3C68A", "(, c #F1B03D", "_, c #F6B110", ":, c #FCBB02", "<, c #FFC000", "[, c #F3B001", "}, c #D28D0A", "|, c #B77F38", "1, c #A18775", "2, c #6C667B", "3, c #6C6C81", "4, c #C7C7D8", "5, c #B3B3C5", "6, c #A4A3B6", "7, c #DBD5D8", "8, c #E0C6A9", "9, c #C68A3E", "0, c #DD930E", "a, c #F4AF01", "b, c #FDBC00", "c, c #FFBE00", "d, c #FFBD00", "e, c #FEBB01", "f, c #F9B40C", "g, c #F3B239", "h, c #F6DBBE", "i, c #F4CD9D", "j, c #F1B350", "k, c #F5AD18", "l, c #FCB604", "m, c #FFBC00", "n, c #FEBC00", "o, c #F5B101", "p, c #DA9207", "q, c #B97B28", "r, c #AA896A", "s, c #786E79", "t, c #72708B", "u, c #ADADC2", "v, c #51515E", "w, c #AFAFC0", "x, c #BDBDCE", "y, c #D5D5E0", "z, c #C5C5D3", "A, c #A9A8B9", "B, c #E4DAD5", "C, c #DBBA96", "D, c #C28435", "E, c #DC940F", "F, c #F3AB02", "G, c #FDB700", "H, c #FEBA00", "I, c #FFBB00", "J, c #FFBA00", "K, c #FFB900", "L, c #FDB602", "M, c #F8B014", "N, c #F2B34B", "O, c #F2C793", "P, c #F3CC9F", "Q, c #F1B761", "R, c #F4AA21", "S, c #FAB006", "T, c #FEB700", "U, c #FEBB00", "V, c #FDB800", "W, c #F4AD01", "X, c #DB9106", "Y, c #BA7922", "Z, c #AC8762", "`, c #867A7E", " ' c #6D6B84", ".' c #ADACBF", "+' c #A5A5BB", "@' c #9494AC", "#' c #7F7F8B", "$' c #ADABBB", "%' c #E3D7CE", "&' c #D7B590", "*' c #C08234", "=' c #D88F11", "-' c #F1A403", ";' c #FBB201", ">' c #FEB600", ",' c #FFB700", "'' c #FBB205", ")' c #F5AC1E", "!' c #F1B258", "~' c #F0BF87", "{' c #F1B86E", "]' c #F2A92E", "^' c #F8AC0A", "/' c #FDB301", "(' c #FFB600", "_' c #FFB800", ":' c #FCB300", "<' c #F1A701", "[' c #D88C07", "}' c #B87621", "|' c #AE855E", "1' c #8F8180", "2' c #64617C", "3' c #C9C8D4", "4' c #DFDFE8", "5' c #AAAABE", "6' c #9C9CB5", "7' c #656578", "8' c #C2C2D5", "9' c #BCBCCB", "0' c #E7E7EE", "a' c #B1AEBC", "b' c #D5B391", "c' c #BE823C", "d' c #D28613", "e' c #EC9D04", "f' c #F8AC01", "g' c #FEB200", "h' c #FEB301", "i' c #FAAE07", "j' c #F3A824", "k' c #EEAA55", "l' c #EDAF65", "m' c #F0A93C", "n' c #F7A811", "o' c #FDAF02", "p' c #FFB300", "q' c #FFB400", "r' c #FEB300", "s' c #F9AD01", "t' c #EC9D01", "u' c #D08409", "v' c #B57627", "w' c #AC8561", "x' c #928382", "y' c #636079", "z' c #EDEDF4", "A' c #9B9BB3", "B' c #8E8EAB", "C' c #ADADBE", "D' c #B8B8CA", "E' c #DADAE4", "F' c #A5A5B9", "G' c #A8A5B6", "H' c #D9CFCA", "I' c #D5B89C", "J' c #BD874C", "K' c #C67C19", "L' c #E28E07", "M' c #F2A101", "N' c #FAAB01", "O' c #F9A807", "P' c #F09E1D", "Q' c #EA9B38", "R' c #ED9F36", "S' c #F4A417", "T' c #FBAA04", "U' c #FEAF00", "V' c #FFB000", "W' c #FEB000", "X' c #FBAD00", "Y' c #F2A301", "Z' c #E18F03", "`' c #C37910", " ) c #B07634", ".) c #AA886B", "+) c #8C7E81", "@) c #65627B", "#) c #F1F1F5", "$) c #B8B8C9", "%) c #8E8EAA", "&) c #6C6C87", "*) c #CACAD8", "=) c #A09EB0", "-) c #CDC6C8", ";) c #D8C3AF", ">) c #C4996E", ",) c #B8772C", "') c #CD7E0F", ")) c #E38D04", "!) c #EE9603", "~) c #EF960B", "{) c #EE9514", "]) c #F39D11", "^) c #F9A605", "/) c #FEAC00", "() c #FFAD00", "_) c #FFAC00", ":) c #FBA800", "<) c #F29F01", "[) c #E58F02", "}) c #CB7B09", "|) c #B36F1F", "1) c #AB7D4D", "2) c #A48C7A", "3) c #827881", "4) c #6B6881", "5) c #EAEAF0", "6) c #DCDCE6", "7) c #A2A2B7", "8) c #7F7F9E", "9) c #3D3D4F", "0) c #BFBFD2", "a) c #BDBDCC", "b) c #F6F6FA", "c) c #ABABBE", "d) c #9695AB", "e) c #BDB9C1", "f) c #D6CAC3", "g) c #CEB39A", "h) c #BA8A5C", "i) c #B6732B", "j) c #C57513", "k) c #D67D08", "l) c #E38605", "m) c #EE9302", "n) c #F59E00", "o) c #F9A400", "p) c #FBA600", "q) c #FBA700", "r) c #FAA500", "s) c #F8A200", "t) c #F19A00", "u) c #E79001", "v) c #D98405", "w) c #C5740D", "x) c #B16C20", "y) c #AA7744", "z) c #A88A70", "A) c #9A8B89", "B) c #726D81", "C) c #6A6985", "D) c #E9E9F0", "E) c #CECEDA", "F) c #8888A4", "G) c #6A6A8A", "H) c #A2A2B1", "I) c #B9B9CB", "J) c #D1D1DD", "K) c #757596", "L) c #7E7D9A", "M) c #A4A2B7", "N) c #C2BEC5", "O) c #D1C5BE", "P) c #C9B09B", "Q) c #B88F69", "R) c #AF743D", "S) c #B46D23", "T) c #BF7014", "U) c #CA760B", "V) c #D37C07", "W) c #DA8004", "X) c #DC8304", "Y) c #D88004", "Z) c #D37B05", "`) c #CA7509", " ! c #BE6E0F", ".! c #B1691C", "+! c #A76C32", "@! c #A67B53", "#! c #A78C77", "$! c #9E908D", "%! c #878190", "&! c #696784", "*! c #8786A1", "=! c #AAAABC", "-! c #DCDCE5", ";! c #757595", ">! c #4A4A66", ",! c #A1A1B3", "'! c #C1C1D3", ")! c #B9B9CA", "!! c #8B8BA6", "~! c #6A6A8F", "{! c #474764", "]! c #363645", "^! c #7C7C95", "/! c #A2A0B7", "(! c #B7B3BF", "_! c #C4BCBD", ":! c #C7B7AD", "~ c #9A9AB3", ",~ c #7C7C9C", "'~ c #6D6D77", ")~ c #BABACE", "!~ c #D5D5E1", "~~ c #AEAEC1", "{~ c #8787A5", "]~ c #373748", "^~ c #71718B", "/~ c #8080A1", "(~ c #ABABBF", "_~ c #626286", ":~ c #F4F4FA", "<~ c #7E7E9A", "[~ c #7D7D98", "}~ c #8989AA", "|~ c #6F6F8C", "1~ c #313141", "2~ c #B6B6CB", "3~ c #7A7A9B", "4~ c #46465A", "5~ c #717193", "6~ c #5D5D7F", "7~ c #5D5D77", "8~ c #747493", "9~ c #363646", "0~ c #ABABC0", "a~ c #B0B0C3", "b~ c #F0F0F6", "c~ c #F0F0F5", "d~ c #D7D7E2", "e~ c #9595AE", "f~ c #686888", "g~ c #535371", "h~ c #1F1F2F", "i~ c #58586E", "j~ c #DADAE7", "k~ c #61617F", "l~ c #E0E0E9", "m~ c #8888A5", "n~ c #555570", "o~ c #52526B", "p~ c #A1A1BE", "q~ c #5E5E7C", "r~ c #88889D", "s~ c #A2A2B9", "t~ c #D7D7E1", "u~ c #343448", "v~ c #222234", "w~ c #5A5A6A", "x~ c #9C9CB6", "y~ c #EEEEF5", "z~ c #ECECF3", "A~ c #6E6E91", "B~ c #9898B3", "C~ c #C1C1D0", "D~ c #EEEEF3", "E~ c #9595AF", "F~ c #8A8AA6", "G~ c #B3B3C6", "H~ c #8383A1", "I~ c #4C4C6C", "J~ c #D0D0DD", "K~ c #CFCFDC", "L~ c #CBCBDB", "M~ c #CECEDB", "N~ c #717195", "O~ c #313148", "P~ c #5B5B70", "Q~ c #73738E", "R~ c #686883", "S~ c #656580", "T~ c #5F5F7D", "U~ c #5B5B79", "V~ c #555575", "W~ c #555576", " ", " . + @ # $ % & ", " * = - ; > , ' ' ' ) ! ~ ", " { ] ^ ' / ( _ : < [ } | ' ' ' ' 1 2 ", " 3 4 5 6 7 8 9 0 a b c d ' ' ' e f g ", " h i j k l ' ' m n o p q r e ' ' s # ", " t u l ' ' ' ' 6 v w x y d ' ' e z A ", " B C ' ' ' ' ' ' ' D E F G H I J K L M N O P Q R S T s s U V ", " W X ' ' ' ' ' ' ' ' Y Z ` ...+.@.#.$.%.&.*.=.| -.;.>.,.'.).!.d ~.~.~.~.1 {. ", " ].^./.' ' ' ' ' ' ' ' l (._.:.<.[.}.|.1.2.3.4.5.6.7.8.9.0.a.b.| | c.c.c.d.e. ", " f.g.' ' ' ' ' ' ' = h.i.j.k.l.m.n.o.p.q.r.s.f 6.f t.u.v.w.6.6., , , , x.y. ", " z.A.B.' ' ' ' ' C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V.S.S.W.X.X.X.X.Y.Z.`. ", " +.+++' ' ' C @+#+$+%+&+*+=+-+;+>+,+'+)+!+~+{+d.d.]+d.d.d.d.^+^+^+/+! (+_+:+<+ ", " [+g.6 ' }+|+1+2+3+4+5+6+7+8+9+0+a+b+c+d+e+f+g+h+h+h+h+h+i+i+i+j+k+l+m+n+o+p+q+ ", " r+s+t+}+u+v+w+x+y+z+A+B+C+D+E+F+G+H+I+J+K+L+M+N+g+O+O+O+O+O+P+Q+R+j+S+T+U+V+W+X+ ", " Y+Z+`+ @.@+@@@#@$@%@&@*@D+=@-@;@>@,@'@)@!@~@{@]@^@/@@ (@_@:@:@! <@[@}@|@1@2@3@4@ ", " 5@6@7@8@9@0@a@b@c@d@e@f@f@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@z@A@B@C@D@E@F@G@ ", " H@I@J@K@L@M@N@O@P@Q@Q@Q@Q@R@S@T@U@V@W@X@X@Y@Z@`@ #.#+#@###$#%#&#*#=#-#-#;#>#,#'#)# ", " !#~#{#]#^#/#(#_#C+:#:#:#:#<#[#}#|#1#2#W@W@W@W@3#4#5#6#7#8#9#0#a#b#c#d#d#d#d#e#f#g#h#i# ", " j#k#l#m#n#o#p#q#r#r#r#r#r#s#t#u#v#w#m@X@X@X@l@x#y#z#A#B#C#D#E#F#G#H#H#H#H#H#H#I#J#K#L#M# ", " N#O#P#Q#p.R#_#S#S#S#S#S#S#T#U#V#W#X#Y#Z#Z#Z#`# $.$+$@$#$$$%$&$*$=$-$;$;$;$;$;$;$>$,$'$*$)$ ", " !$~${$]$^$/$($_$:$_$_$_$_$<$[$}$|$1$2$3$4$4$4$5$6$7$8$9$0$a$b$c$d$e$f$g$h$h$h$h$h$h$i$j$k$e$l$ ", " m$n$o$p$q$r$s$t$u$u$u$u$u$u$v$w$x$y$z$A$B$C$C$C$D$E$F$G$H$I$J$K$L$M$N$O$P$Q$R$R$R$S$T$U$V$U$W$X$Y$ ", " Z$`$ %.%+%@%#%$%%%&%*%=%-%-%-%-%-%-%;%>%,%'%)%!%~%{%]%^%/%(%_%:%<%[%}%|%1%2%3%4%5%6%7%8%8%9%0%H#a%b%c%d%e% ", " f%g%h%i%j%k%l%g.m%n%o%p%q%r%s%t%u%v%v%v%v%v%u%w%x%y%z%A%B%C%D%_%E%F%F%G%H%I%J%K%L%M%N%v%O%P%Q%R%S%T%U%V%W%X%Y%Z%`% &.& ", "+&@&#&m%B.$&%&&&' ' j *&=&-&;&>&,&'&'&'&'&'&'&'&)&!&~&{&]&^&/&(&_&:&<&[&<&}&|&1&2&!&3&'&'&'&4&5&6&7&8&9&V%Z%0&a&b&c&d&e& ", "f&g&' ' ' ' ' ' ' ' h&%&i&j&k&l&m&n&n&n&n&n&n&n&o&p&q&r&s&t&u&v&w&x&y&y&z&A&B&C&D&E&n&n&n&n&n&F&G&H&I&J&K&L&M&N&O&P&Q&R& ", "S&C ' ' ' ' ' ' ' &&h&T&U&V&W&X&Y&Z&`& *`&`&`&`&`&.*+*@*#*$*%*&***=*-*;*>*,*'*)*!*~*`&`&`&`&`&`&{*]*^*/*(*_*-$:*(*<*[*}* ", ".+|*' ' ' ' ' ' ' 1*2*&&3*4*5*6*7*8*9*0*a*a*a*a*a*a*a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*a*a*a*a*a*0*r*s*t*u*v*v*v*w*x*y* ", "z*9 ' ' ' ' ' ' ' T&h&= A*B*C*D*E*F*G*H*I*J*K*K*L*K*K*M*N*O*P*Q*R*S*T*U*V*W*X*Y*Z*`* =K*L*K*.=+=@=#=$=%=&=*===-=;=>= ", ",=$&' ' ' ' ' ' ' '=u )=!=~={=]=^=/=(=_=:=<=[=}=}=|=1=2=3=4=5=6=7=S*T*8=9=0=a=b=c=d=e=f=}=g=h=i=j=k=l=m=n=o=p=q=r= ", "s=t=m%u=v=&&' ' ' - w=++x=y=z=A=B=C=D=E=F=G=H=I=J=K=L=M=N=O=P=Q=T*S*S*R=S=T=U=V=W=X=Y=Z=`= -.-+-@-#-C=B=$-%-&-*- ", "=---;->-,-.+'-)-!-~-{-m ]-^-/-(-_-_-:-<-[-}-|-1-2-3-4-5-6-7-8-9-0-T*S*7=R=a-b-c-d-e-f-g-h-i-j-k-l-m-_-_-(-n-o-p- ", " q-r-s-t-u-[+v-w-x-y-z-A-B-C-C-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S*S-T-U-V-W-X-Y-Z-`- ;.;+;@;D-C-C-C-#;$;%;&; ", " *;=;-;;;>;,;';);!;~;~;~;~;~;{;];^;/;(;_;:;<;[;};|;1;R*7=2;3;4;5;6;7;8;9;0;a;];{;~;~;~;~;~;b;c;d; ", " e;f;g;h;i;j;k;k;k;k;k;k;k;k;l;m;n;o;p;q;r;s;t;S-u;v;w;x;y;z;A;B;C;l;k;k;k;k;k;k;k;k;D;E;F; ", " S&G;H;I;J;K;L;L;L;L;L;L;L;L;L;L;M;N;O;P;Q;R;T*S;T;U;V;W;X;Y;L;L;L;L;L;L;L;L;L;L;K;Z;`; > ", " .>+>@>#>$>%>&>&>&>&>&>&>&>&>&>&>*>=>->;>>>2;2;#%,>'>)>!>~>&>&>&>&>&>&>&>&>&>&>&>%>{>]>^>/> ", " (>_>:><>[>}>|>1>1>1>1>1>1>1>1>2>3>4>5>6>7>8>9>0>a>b>c>1>1>1>1>1>1>1>1>1>1>1>c>d>e>f>g>h> ", " i>j>k>l>m>n>o>p>p>p>p>p>p>p>q>r>s>t>u>v>w>x>y>z>A>B>p>p>p>p>p>p>p>p>p>p>p>C>D>E>F>G>H>I> ", " J>K>L>M>N>O>P>P>P>P>P>P>P>Q>R>S>T>U>V>W>X>Y>Z>`>P>P>P>P>P>P>P>P>P>P>P>P> ,.,+,@,#,$, ", " %,&,*,=,-,;,>,,,',',',',',',),!,~,{,],^,/,(,_,:,<,',',',',',',',',',',',),[,},|,1,2,3, ", " 4,5,6,7,8,9,0,a,b,c,c,c,c,d,e,f,g,/,h,i,j,k,l,m,c,c,c,c,c,c,c,c,c,c,c,n,o,p,q,r,s,t,u,v, ", " w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,J,I,I,I,I,I,I,I,I,I,U,V,W,X,Y,Z,`, '.'+'@' ", " #'8 n%%&' n $'%'&'*'='-';'>','>''')'!'~'{']'^'/'(','_'_'_'_'_'_'_'_'>':'<'['}'|'1'2'3'4'5'6'7' ", " 8'9'0'' ' &&5'a'1+b'c'd'e'f'g'h'i'j'k'l'm'n'o'p'p'q'q'q'q'q'q'q'q'r's't'u'v'w'x'y'(.%&z'j A'B' ", " C'D'E'' ' ' ' Y F'G'H'I'J'K'L'M'N'O'P'Q'R'S'T'U'V'V'V'V'V'V'V'V'W'X'Y'Z'`' ).)+)@)w,#)$&$&0'$)%)&) ", " W *)' ' ' ' ' ' l .'=)-);)>),)')))!)~){)])^)/)()()_)_)()()()/):)<)[)})|)1)2)3)4)9'%&$&5)g&*&6)7)8)9) ", " 0)a)b)' ' ' ' ' ' ' T&c)d)e)f)g)h)i)j)k)l)m)n)o)p)q)q)p)r)s)t)u)v)w)x)y)z)A)B)C)/+Y *&5)g&^ ^ D)E)F)G) ", " H)I)g&' ' ' ' ' ' ' C J)z*K)L)M)N)O)P)Q)R)S)T)U)V)W)X)X)Y)Z)`) !.!+!@!#!$!%!&!*!=!$)-!m g&0'^ x-x-^ + ;!>! ", " ,!'!' ' ' ' ' ' ' 5 )!!!~!{! ]!^!/!(!_!:!~,~H! '~)~{-g&o%>;y,!~0 E'~~{~]~ ^~/~ %E)(~_~n ' :~<~ ", " [~}~|~1~ 2~$)9 1*'=b)Y T&X Z+3~ 4~5~;!6~7~)~0'' :~8~ ", " 9~ 0~a~5 Y C b~c~++d~e~f~ g~h~ i~e!z'j~k~ ", " ( 0~l~Y b~c~9 %&#&m~n~ o~p~q~ ", " r~s~t~Y c~9 9 9 w=,~u~ v~ ", " w~x~E)++9 y~|*z~(~A~ ", " B~C~C y~D~|*^ E~6~ ", " F~G~Y ++C ++l~H~I~ ", " ^!x~J~K~L~M~k%N~O~ ", " P~Q~R~S~T~U~V~W~ ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/DataSourceNameSystem48.xpm0000644000175000001440000004325311506076310020432 00000000000000/* XPM */ static const char * xpmDataSourceNameSystem48[] = { "48 48 826 2", " c None", ". c #71490A", "+ c #71480A", "@ c #71480B", "# c #714A09", "$ c #7E5616", "% c #966B28", "& c #A47834", "* c #AC813B", "= c #AB7F39", "- c #9E722F", "; c #906523", "> c #7D5413", ", c #724A0A", "' c #976A29", ") c #B3853F", "! c #B28036", "~ c #B07E31", "{ c #AE7B2B", "] c #AB7829", "^ c #A8772A", "/ c #A5752A", "( c #A47732", "_ c #8F6421", ": c #724A0B", "< c #A87C37", "[ c #B4843C", "} c #B48031", "| c #B88333", "1 c #BA8535", "2 c #B98434", "3 c #B58131", "4 c #B07C2C", "5 c #A97526", "6 c #A17022", "7 c #A0722A", "8 c #9B702C", "9 c #724909", "0 c #996D29", "a c #B3843A", "b c #BD8838", "c c #C38D3D", "d c #C5903F", "e c #C48F3E", "f c #C08B3A", "g c #B17D2D", "h c #A77425", "i c #9D6B1C", "j c #9F7129", "k c #906422", "l c #714809", "m c #815817", "n c #B2843D", "o c #B37F31", "p c #BD8837", "q c #C6903F", "r c #CD9746", "s c #D19A49", "t c #CF9948", "u c #C99342", "v c #C18C3B", "w c #B78333", "x c #AD792A", "y c #A26F20", "z c #98671A", "A c #A27630", "B c #72490A", "C c #976C28", "D c #AF7F33", "E c #B68232", "F c #C28C3C", "G c #CC9645", "H c #D69F4D", "I c #DCA553", "J c #D9A250", "K c #C69140", "L c #BB8736", "M c #B07C2D", "N c #A57223", "O c #9A6719", "P c #9C6D23", "Q c #8F6522", "R c #A47832", "S c #AE7C2E", "T c #C48E3D", "U c #CF9947", "V c #DAA351", "W c #E6AE5B", "X c #DFA856", "Y c #D49E4C", "Z c #B17D2E", "` c #A67324", " . c #9B681A", ".. c #99681C", "+. c #9A6F2B", "@. c #C37D11", "#. c #C37E12", "$. c #C17E13", "%. c #C47F13", "&. c #C17E11", "*. c #C38013", "=. c #AB7F3A", "-. c #AB792A", ";. c #B78232", ">. c #C28D3C", ",. c #D7A04E", "'. c #DDA654", "). c #DBA451", "!. c #D19B49", "~. c #C79140", "{. c #BC8737", "]. c #9A6819", "^. c #966517", "/. c #A6772E", "(. c #B07210", "_. c #C9881E", ":. c #D89D40", "<. c #E1A951", "[. c #E7B25E", "}. c #E7B15D", "|. c #E2A84E", "1. c #D99C39", "2. c #CD8C24", "3. c #A97D38", "4. c #A87627", "5. c #B37F2F", "6. c #CE9847", "7. c #D29C4A", "8. c #D09A49", "9. c #CA9443", "0. c #A26F21", "a. c #976517", "b. c #A36D15", "c. c #C17F15", "d. c #D49A3A", "e. c #E7B465", "f. c #E7B15C", "g. c #E6AE57", "h. c #E5AB4F", "i. c #E4A84A", "j. c #E4A849", "k. c #E3A747", "l. c #E4AB4F", "m. c #DB9D3A", "n. c #C48115", "o. c #C37E11", "p. c #9E732E", "q. c #A67427", "r. c #AD7A2A", "s. c #BE8939", "t. c #A87526", "u. c #9E6B1D", "v. c #9A6616", "w. c #C07E14", "x. c #E0A951", "y. c #E8B564", "z. c #E7B05A", "A. c #E8B361", "B. c #E7B05B", "C. c #E5AC52", "D. c #E4A746", "E. c #E2A13B", "F. c #E3A541", "G. c #E3A749", "H. c #C58117", "I. c #916724", "J. c #A27328", "K. c #AE7A2B", "L. c #B58030", "M. c #B98534", "N. c #BB8636", "O. c #BA8635", "P. c #AA7627", "Q. c #A16E20", "R. c #986618", "S. c #B87813", "T. c #D59839", "U. c #E8B563", "V. c #E6AF59", "W. c #E8B566", "X. c #EABA70", "Y. c #EBBC75", "Z. c #EABC74", "`. c #E9B96D", " + c #E8B362", ".+ c #E6AD54", "++ c #E3A644", "@+ c #E19E34", "#+ c #E2A23C", "$+ c #DC9F3E", "%+ c #7D5515", "&+ c #A27530", "*+ c #9F6C1F", "=+ c #AA7728", "-+ c #AF7B2C", ";+ c #AC7929", ">+ c #996719", ",+ c #A36B14", "'+ c #C5831C", ")+ c #E7B462", "!+ c #E7AF57", "~+ c #ECC281", "{+ c #EDC588", "]+ c #EDC586", "^+ c #ECC07D", "/+ c #EABA6F", "(+ c #E7B25F", "_+ c #E5AA4E", ":+ c #E2A13C", "<+ c #DF992A", "[+ c #D08F28", "}+ c #C27F12", "|+ c #704809", "1+ c #926523", "2+ c #9E7028", "3+ c #A06D1E", "4+ c #A37021", "5+ c #A47122", "6+ c #986517", "7+ c #966416", "8+ c #AF7314", "9+ c #D59938", "0+ c #E6B05A", "a+ c #E9B86C", "b+ c #ECC17F", "c+ c #EFC98F", "d+ c #F0CE9B", "e+ c #F0CD98", "f+ c #EEC78A", "g+ c #EBBE79", "h+ c #E8B667", "i+ c #E3A441", "j+ c #E09B2E", "k+ c #E19E33", "l+ c #C37F12", "m+ c #474105", "n+ c #6F490B", "o+ c #9D712D", "p+ c #976518", "q+ c #996618", "r+ c #BD7C17", "s+ c #DDA347", "t+ c #EDC383", "u+ c #F0CC97", "v+ c #F2D5AA", "w+ c #F2D3A4", "x+ c #EFC990", "y+ c #E9B76A", "z+ c #E6AE56", "A+ c #E3A543", "B+ c #E09C2F", "C+ c #E09929", "D+ c #E3A84B", "E+ c #C17D11", "F+ c #414803", "G+ c #535A12", "H+ c #6F641F", "I+ c #714B0B", "J+ c #8F6622", "K+ c #9B6C22", "L+ c #98681B", "M+ c #C17D12", "N+ c #E5AD55", "O+ c #E5A94B", "P+ c #ECC180", "Q+ c #EFCA91", "R+ c #F1CF9D", "S+ c #F0CE9A", "T+ c #EEC78C", "U+ c #EBBF7A", "V+ c #E9B667", "W+ c #DF9725", "X+ c #C58319", "Y+ c #414804", "Z+ c #61691A", "`+ c #828B38", " @ c #646D15", ".@ c #585708", "+@ c #6B4A09", "@@ c #7C5515", "#@ c #916725", "$@ c #9C702C", "%@ c #A27732", "&@ c #916624", "*@ c #C07D11", "=@ c #E4AB52", "-@ c #EBBD76", ";@ c #EEC689", ">@ c #EABA71", ",@ c #E7B360", "'@ c #E5AA4F", ")@ c #E2A23D", "!@ c #414704", "~@ c #6B7422", "{@ c #828A36", "]@ c #6B7612", "^@ c #636E09", "/@ c #5A6308", "(@ c #525907", "_@ c #685D11", ":@ c #6D530E", "<@ c #6F4A0B", "[@ c #704A0A", "}@ c #70490A", "|@ c #6E490A", "1@ c #6C510E", "2@ c #685F13", "3@ c #B17B13", "4@ c #DCA041", "5@ c #E4A94B", "6@ c #E9B668", "7@ c #EABB72", "8@ c #EBBD77", "9@ c #E8B464", "0@ c #E3A646", "a@ c #E19E35", "b@ c #5F661A", "c@ c #7F8834", "d@ c #68730D", "e@ c #677209", "f@ c #687409", "g@ c #636D08", "h@ c #5C6508", "i@ c #626D10", "j@ c #717E1D", "k@ c #5B6411", "l@ c #4A4F07", "m@ c #494D07", "n@ c #464E06", "o@ c #606A14", "p@ c #73811E", "q@ c #96740F", "r@ c #D49630", "s@ c #E3A645", "t@ c #E2A33F", "u@ c #E4A94C", "v@ c #E6AF58", "w@ c #E8B463", "x@ c #E7B15E", "y@ c #E4A748", "z@ c #E2A13A", "A@ c #DF992B", "B@ c #E19D32", "C@ c #C27E12", "D@ c #454C07", "E@ c #808737", "F@ c #6B7413", "G@ c #657008", "H@ c #697409", "I@ c #6A7609", "J@ c #667209", "K@ c #606A08", "L@ c #77851A", "M@ c #5C660A", "N@ c #555E07", "O@ c #535C07", "P@ c #5F6B0E", "Q@ c #717F17", "R@ c #7E700B", "S@ c #C3841B", "T@ c #E5AA4C", "U@ c #E19E36", "V@ c #E5AA4D", "W@ c #E5AB51", "X@ c #E5AB50", "Y@ c #E3A544", "Z@ c #E2A039", "`@ c #E09A2D", " # c #DF9726", ".# c #E4A848", "+# c #CF8E27", "@# c #BD7B11", "## c #424803", "$# c #6B7224", "%# c #767F28", "&# c #636E08", "*# c #687309", "=# c #6A7509", "-# c #6B7709", ";# c #6C7709", "># c #6D770A", ",# c #656F08", "'# c #606B08", ")# c #5E6908", "!# c #616B08", "~# c #667109", "{# c #68740A", "]# c #AA790F", "^# c #D29430", "/# c #E4A645", "(# c #E09A2C", "_# c #DF9929", ":# c #E2A23B", "<# c #C07C11", "[# c #474D07", "}# c #80883A", "|# c #636D0C", "1# c #646F08", "2# c #667108", "3# c #6B7609", "4# c #65700C", "5# c #455750", "6# c #BA7C18", "7# c #DFA241", "8# c #DF9827", "9# c #BD7F1B", "0# c #615137", "a# c #535A14", "b# c #798232", "c# c #616C08", "d# c #626D08", "e# c #697509", "f# c #626F10", "g# c #30546D", "h# c #3B6196", "i# c #757673", "j# c #BD7F19", "k# c #D49534", "l# c #E2A038", "m# c #E09B2D", "n# c #E19F35", "o# c #DB9D3C", "p# c #BF801A", "q# c #877249", "r# c #1E4277", "s# c #424704", "t# c #5F661D", "u# c #727B28", "v# c #5F6908", "w# c #5F6A08", "x# c #566007", "y# c #5C6B19", "z# c #294F79", "A# c #426A9F", "B# c #5A85BA", "C# c #37659F", "D# c #657C91", "E# c #AB7B2C", "F# c #C48723", "G# c #D99B38", "H# c #E0A445", "I# c #E5AB4E", "J# c #E2A647", "K# c #CA8B28", "L# c #B67B1C", "M# c #6C7371", "N# c #486995", "O# c #4E74A5", "P# c #24508B", "Q# c #214B87", "R# c #676E24", "S# c #6D7622", "T# c #5D6708", "U# c #545D07", "V# c #5A6408", "W# c #626C08", "X# c #606C10", "Y# c #254E7E", "Z# c #4B72A7", "`# c #5581B9", " $ c #396CAE", ".$ c #3468A9", "+$ c #527CAC", "@$ c #5A7BA0", "#$ c #7A7460", "$$ c #B0833B", "%$ c #BE801E", "&$ c #C17F18", "*$ c #BE7E19", "=$ c #B58332", "-$ c #806F4B", ";$ c #556F8B", ">$ c #587BA1", ",$ c #325D95", "'$ c #4976AD", ")$ c #577DAF", "!$ c #29548D", "~$ c #204C89", "{$ c #3E4503", "]$ c #5C631B", "^$ c #727B2B", "/$ c #596408", "($ c #4E5707", "_$ c #5C6608", ":$ c #3C5952", "<$ c #3C6598", "[$ c #5781B8", "}$ c #376BAC", "|$ c #366BAE", "1$ c #376DB1", "2$ c #4777B2", "3$ c #6289B2", "4$ c #456D9A", "5$ c #788BA2", "6$ c #ACACAC", "7$ c #A6A29C", "8$ c #A59F95", "9$ c #A5A5A5", "0$ c #87919E", "a$ c #2F5381", "b$ c #597DA3", "c$ c #537BA8", "d$ c #3265A3", "e$ c #3364A2", "f$ c #4572A9", "g$ c #557DAD", "h$ c #224D88", "i$ c #4C530F", "j$ c #798136", "k$ c #515A07", "l$ c #505907", "m$ c #5D6808", "n$ c #5E6808", "o$ c #55651D", "p$ c #275086", "q$ c #5A83B7", "r$ c #3D6FAD", "s$ c #366AAC", "t$ c #366CAF", "u$ c #3870B4", "v$ c #5E8CC1", "w$ c #3B6BA7", "x$ c #3E69A0", "y$ c #C6C6C7", "z$ c #C2C2C2", "A$ c #C0C0C0", "B$ c #647FA1", "C$ c #2D588F", "D$ c #5883B4", "E$ c #3D6EAC", "F$ c #3366A5", "G$ c #3364A3", "H$ c #3263A0", "I$ c #406089", "J$ c #3E6599", "K$ c #204C88", "L$ c #767D32", "M$ c #596118", "N$ c #5B6508", "O$ c #2F526A", "P$ c #4871A4", "Q$ c #4C79B1", "R$ c #3568A9", "S$ c #386EB3", "T$ c #3C73B7", "U$ c #3A70B6", "V$ c #376CB0", "W$ c #BBC7D8", "X$ c #DFDFDF", "Y$ c #DDDDDD", "Z$ c #E2E2E3", "`$ c #4371AA", " % c #36517A", ".% c #6B6477", "+% c #4B4B64", "@% c #274D7D", "#% c #506E94", "$% c #C1C2C3", "%% c #67727F", "&% c #2A548F", "*% c #394103", "=% c #4D540F", "-% c #6A7130", ";% c #5F6812", ">% c #556214", ",% c #254D85", "'% c #5D84B7", ")% c #3667A7", "!% c #3468A8", "~% c #3569AB", "{% c #366BAD", "]% c #376CAF", "^% c #386FB4", "/% c #86A7CF", "(% c #F6F6F6", "_% c #D2DCE9", ":% c #38486D", "<% c #C04943", "[% c #B55552", "}% c #C7706D", "|% c #B24844", "1% c #544F5C", "2% c #DCDCDC", "3% c #CCCCCC", "4% c #485769", "5% c #4971A3", "6% c #204B88", "7% c #404503", "8% c #555A16", "9% c #7B8338", "0% c #6E7725", "a% c #67701A", "b% c #616B12", "c% c #4B5E29", "d% c #315A89", "e% c #557EB2", "f% c #3365A4", "g% c #3467A7", "h% c #366AAD", "i% c #376DB0", "j% c #4779B6", "k% c #ECECED", "l% c #EDEDED", "m% c #8BA2BD", "n% c #A54A49", "o% c #D23932", "p% c #D08E8B", "q% c #DC9895", "r% c #B78786", "s% c #E5DDDD", "t% c #B3B1B1", "u% c #415164", "v% c #34629A", "w% c #567AA7", "x% c #1B3D71", "y% c #3E4504", "z% c #4A510C", "A% c #636B1F", "B% c #70782A", "C% c #788034", "D% c #7D853B", "E% c #7C843A", "F% c #556C5B", "G% c #3E6598", "H% c #4C77AC", "I% c #3365A5", "J% c #30609A", "K% c #3367A6", "L% c #3569AA", "M% c #BFCAD9", "N% c #E5E5E5", "O% c #676E88", "P% c #D8322E", "Q% c #E6534C", "R% c #D28784", "S% c #D29593", "T% c #CBBDBD", "U% c #B2AEAE", "V% c #B26B6A", "W% c #5A2E33", "X% c #264D7D", "Y% c #606B78", "Z% c #313504", "`% c #3C4404", " & c #404604", ".& c #424806", "+& c #434908", "@& c #2F4953", "#& c #416A9F", "$& c #4773A8", "%& c #30619D", "&& c #2E5C95", "*& c #3467A8", "=& c #95ABC6", "-& c #7E4E5E", ";& c #DF2620", ">& c #F5ABA7", ",& c #E25754", "'& c #D8A09D", ")& c #BB8B88", "!& c #956A69", "~& c #DF9998", "{& c #D16865", "]& c #6E5A59", "^& c #E1E1E1", "/& c #8A8D92", "(& c #233E65", "_& c #1B3453", ":& c #365D93", "<& c #4E77AA", "[& c #31619E", "}& c #2C578D", "|& c #305F9B", "1& c #3264A2", "2& c #3365A3", "3& c #3466A6", "4& c #6F8FB6", "5& c #C4C9CF", "6& c #92353C", "7& c #EB5651", "8& c #FAD7D3", "9& c #F76C69", "0& c #DF8D8A", "a& c #DAA3A0", "b& c #CA928F", "c& c #C38887", "d& c #C0A1A1", "e& c #E1E0E0", "f& c #787778", "g& c #31517F", "h& c #1C4074", "i& c #2A528C", "j& c #587DAD", "k& c #2E5B95", "l& c #2B5489", "m& c #31609D", "n& c #31629F", "o& c #3263A1", "p& c #4D76A8", "q& c #A0AEBF", "r& c #912C2E", "s& c #F17971", "t& c #F7756F", "u& c #F85D58", "v& c #F54744", "w& c #DC9E9B", "x& c #D89F9C", "y& c #B38583", "z& c #DBDBDB", "A& c #A99494", "B& c #591211", "C& c #264C80", "D& c #204A86", "E& c #5278A7", "F& c #386092", "G& c #305F9A", "H& c #30609C", "I& c #31609C", "J& c #31619D", "K& c #31629E", "L& c #33639F", "M& c #7C94B3", "N& c #8F3234", "O& c #F2756A", "P& c #F11A15", "Q& c #F51612", "R& c #F54D45", "S& c #EA3D39", "T& c #D49592", "U& c #D49895", "V& c #B08381", "W& c #AA7473", "X& c #AC3D39", "Y& c #16294C", "Z& c #1B3D70", "`& c #2F578F", " * c #4C6D95", ".* c #325E93", "+* c #2F5D97", "@* c #2F5E98", "#* c #305E99", "$* c #436CA0", "%* c #753B44", "&* c #E63B33", "** c #EB1510", "=* c #EE1410", "-* c #EA120E", ";* c #E21E16", ">* c #D93530", ",* c #CD8380", "'* c #CB8B88", ")* c #C58381", "!* c #BD6E6B", "~* c #261423", "{* c #1F4782", "]* c #385C8C", "^* c #577BA8", "/* c #426B9E", "(* c #3A669B", "_* c #346098", ":* c #2F5D96", "<* c #433B53", "[* c #DA3530", "}* c #E0140C", "|* c #DF120C", "1* c #D90F0A", "2* c #D20D08", "3* c #C50B06", "4* c #BF1E19", "5* c #C05652", "6* c #C3706D", "7* c #B54844", "8* c #1D0506", "9* c #1F467E", "0* c #2C558C", "a* c #43699A", "b* c #4D73A2", "c* c #557AA7", "d* c #597CA9", "e* c #587CA9", "f* c #577BA9", "g* c #465870", "h* c #AC3C38", "i* c #C60E07", "j* c #C30C06", "k* c #BC0A05", "l* c #B50904", "m* c #AB0803", "n* c #A00B06", "o* c #9C0D09", "p* c #920D0A", "q* c #620C08", "r* c #1D447B", "s* c #204A87", "t* c #234B86", "u* c #244E88", "v* c #244E87", "w* c #244D87", "x* c #203F6A", "y* c #5A5B5D", "z* c #1E232F", "A* c #682527", "B* c #9D120D", "C* c #A10703", "D* c #9E0703", "E* c #960603", "F* c #8E0804", "G* c #850E0B", "H* c #460806", "I* c #221D1D", "J* c #494C50", "K* c #2D2F31", "L* c #444950", "M* c #52555B", "N* c #434245", "O* c #4B3636", "P* c #522C2B", "Q* c #4F2927", "R* c #472E2C", "S* c #353333", "T* c #5C5C5C", "U* c #404040", "V* c #424242", "W* c #5E5E5E", "X* c #646464", "Y* c #676767", " ", " ", " ", " . + @ + . . ", " # $ % & * = - ; > . ", " , ' ) ! ~ { ] ^ / ( _ . ", " : < [ } | 1 2 3 4 5 6 7 8 . ", " 9 0 a 3 b c d e f 2 g h i j k l ", " m n o p q r s t u v w x y z A > ", " B C D E F G H I J s K L M N O P Q B ", " . R S | T U V W X Y u b Z ` ...+.B @.#.$.%.&.*. ", " . =.-.;.>.r ,.'.).!.~.{.g N ].^./.(._.:.<.[.}.|.1.2.#. ", " . 3.4.5.b ~.6.7.8.9.F | x 0.a.b.c.d.e.f.g.h.i.j.k.l.m.n.o. ", " . p.q.r.E s.e ~.q v 1 Z t.u.v.w.x.y.z.}.A.A.B.C.D.E.F.G.H. ", " B I.J.` K.L.M.N.O.;.g P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++@+#+$+o. ", " %+&+*+N =+K.4 -+;+h Q.>+,+'+)+!+y.Z.~+{+]+^+/+(+_+:+<+j.[+}+ ", " |+1+2+ .3+4+5+5+Q.i 6+7+8+9+z.0+a+b+c+d+e+f+g+h+.+i+j+k+$+l+ ", " m+n+o+2+p+6+q+R.7+7+7+p+r+s+.+f.X.t+u+v+w+x+^+y+z+A+B+C+D+E+ ", " F+G+H+I+J+&+K+L+^.^.L+K+&+M+N+O+z.`.P+Q+R+S+T+U+V+.+i+j+W+O+X+ ", " Y+Z+`+ @.@+@@@#@$@%@%@$@&@%+*@=@D..+W.-@t+f+;@b+>@,@'@)@<+W+O+X+ ", " !@~@{@]@^@/@(@_@:@<@[@}@|@1@2@3@4@D.5@z.6@7@8@-@/+9@z+0@a@W+C+D+E+ ", " Y+b@c@d@e@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@,@9@w@x@.+y@z@A@W+B@$+C@ ", " D@E@F@G@e@H@I@J@K@L@M@N@O@O@P@Q@R@S@T@U@)@D.V@W@X@u@Y@Z@`@W+ #.#+#@# ", " ##$#%#&#G@e@*#=#-#;#>#,#'#)#!#~#{#e@]#^#/#(#a@z@)@)@Z@B@_#W+W+:#$+<# ", " [#}#|#g@1#2#e@f@=#3#;#;#;#-#I@H@*#4#5#6#7#A+C+8#<+_# #W+W+ ##+G.9#0# ", " a#b#K@c#K@d#2#e@*#H@H@e#e#H@*#e@f#g#h#i#j#k#O+l#j+8# #m#n#j.o#p#q#r# ", " s#t#u#v#w#x#g@1#G@2#~#e@e@e@e@2#y#z#A#B#C#D#E#F#G#H#I#I#J#m.K#L#M#N#O#P#Q# ", " s#R#S#T#U#V#!#W#g@#1#1#1#1#X#Y#Z#`# $.$+$@$#$$$%$c.&$*$=$-$;$>$,$'$)$!$~$ ", " {$]$^$/$($_$v#K@'#c#W#W#d#d#W#:$<$[$}$|$1$2$3$4$5$6$7$8$9$0$a$b$c$d$e$f$g$h$ ", " i$j$k$l$_$T#m$n$v#w#w#w#w#o$p$q$r$s$t$1$u$v$w$x$y$z$A$z$B$C$D$E$F$G$H$I$J$K$ ", " !@L$M$N@N$N$N$_$_$T#T#T#T#O$P$Q$R$s$|$1$S$T$U$V$W$X$Y$Z$`$ %.%+%@%e$#%$%%%&% ", " *%=%-%;%N$N$N$N$N$N$N$N$>%,%'%)%!%~%{%]%1$S$^%^%/%(%(%_%:%<%[%}%|%1%2%3%4%5%6% ", " 7%8%9%0%a%b%M@N$N$N$N$c%d%e%f%g%R$g%h%|$]%i%1$j%k%l%m%n%o%p%q%r%s%t%u%v%w%x% ", " y%z%A%B%C%D%E%E%E%E%F%G%H%G$I%J%K%L%~%s$h%{%h%M%N%O%P%Q%R%S%T%U%V%W%X%Y%A$ ", " Z%`% & &.&+&+&+&+&@&#&$&H$%&&&F$g%*&!%R$R$R$=&2%-&;&>&,&'&)&!&~&{&]&^&/&(& ", " _&:&<&[&}&|&1&2&f%F$F$3&F$4&5&6&7&8&9&0&a&b&c&d&e&f&g&h& ", " i&j&k&l&m&n&H$o&o&1&1&1&p&q&r&s&t&u&v&w&x&y&z&A&B&C& ", " D&E&F&}&G&H&I&J&[&[&K&[&L&M&N&O&P&Q&R&S&T&U&V&W&X&Y& ", " Z&`& *.*+*@*#*G&G&G&|&G&G&$*%*&***=*-*;*>*,*'*)*!*~* ", " {*]*^*/*(*_*:*+*+*+*+*+*:*<*[*}*|*1*2*3*4*5*6*7*8* ", " 9*0*a*b*c*d*^*^*^*^*e*f*g*h*i*j*k*l*m*n*o*p*q* ", " r*D&s*t*u*v*v*v*w*x*y*z*A*B*C*D*E*F*G*H*I* ", " J*K*L*M*N*O*P*Q*R*S*T* ", " U*V* W*X*Y* ", " ", " ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCPropertiesDelegate.cpp0000644000175000001440000000423611506076451020247 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CPropertiesDelegate.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CPropertiesDelegate.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CPropertiesDelegate.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CPropertiesDelegate[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CPropertiesDelegate[] = { "CPropertiesDelegate\0" }; const QMetaObject CPropertiesDelegate::staticMetaObject = { { &QItemDelegate::staticMetaObject, qt_meta_stringdata_CPropertiesDelegate, qt_meta_data_CPropertiesDelegate, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CPropertiesDelegate::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CPropertiesDelegate::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CPropertiesDelegate::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CPropertiesDelegate)) return static_cast(const_cast< CPropertiesDelegate*>(this)); return QItemDelegate::qt_metacast(_clname); } int CPropertiesDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QItemDelegate::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CAbout.h0000644000175000001440000000153411506076310015012 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CABOUT_H #define CABOUT_H #include "CODBCInst.h" #define ODBC_HELP_ABOUT "Hopefully you find some interesting leads to more information about unixODBC and ODBC (in general) here." /*! * \class CAbout * \brief Provides information about this application and this project (unixODBC). * * This widget is used as a tab for CODBCConfig. * * \sa CManageDataSourceNames * CManageDrivers */ class CAbout : public QTabWidget { Q_OBJECT public: CAbout( QWidget* pParent = NULL ); virtual ~CAbout(); QString windowHelp() { return QString( tr( ODBC_HELP_ABOUT ) ); } bool saveData() { return true; } }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/Pooling48.xpm0000644000175000001440000006515711506076310016010 00000000000000/* XPM */ static const char * xpmPooling48[] = { "64 64 1171 2", " c None", ". c #FBAB00", "+ c #FFAE00", "@ c #FAAB00", "# c #FFB307", "$ c #FFD93B", "% c #FFBB11", "& c #F5A700", "* c #FAA700", "= c #F6A200", "- c #FEAD00", "; c #FFAF02", "> c #FFD235", ", c #FFFA6C", "' c #FFFF6E", ") c #FFE74A", "! c #FBBF2E", "~ c #F8AB0E", "{ c #F29E00", "] c #FFCA2D", "^ c #FFF46C", "/ c #FFFF78", "( c #FFFF72", "_ c #FFFF6D", ": c #FFFE69", "< c #FFC21A", "[ c #F9AA00", "} c #FAA600", "| c #FBC234", "1 c #FFFE95", "2 c #FEF27A", "3 c #F6AD15", "4 c #F29B00", "5 c #FDAD00", "6 c #FFC224", "7 c #FFEE6D", "8 c #FFFF84", "9 c #FFFF7D", "0 c #FFFF77", "a c #FFFF6C", "b c #FFFD68", "c c #FFEC51", "d c #D59100", "e c #FBC235", "f c #FFFE98", "g c #FFFF92", "h c #FFFF8A", "i c #FEF675", "j c #F5B21C", "k c #F09800", "l c #FCAC00", "m c #FFBC1A", "n c #FFE769", "o c #FFFF8F", "p c #FFFF89", "q c #FFFF82", "r c #FFFF7C", "s c #FFFF76", "t c #FFFF70", "u c #FFFF6B", "v c #FFFD67", "w c #FFFA63", "x c #FFCA24", "y c #FCCC48", "z c #FFFF9F", "A c #FFFF96", "B c #FFFF8D", "C c #FEFA6F", "D c #F4B722", "E c #EE9400", "F c #CD7D00", "G c #FFB610", "H c #FFE062", "I c #FFFF94", "J c #FFFF8E", "K c #FFFF87", "L c #FFFF81", "M c #FFFF7B", "N c #FFFF75", "O c #FFFF6F", "P c #FFFF6A", "Q c #FFFC66", "R c #FFF962", "S c #FFEF55", "T c #FFB003", "U c #E19900", "V c #FCCC4A", "W c #FFFFA2", "X c #FFFF99", "Y c #FFFF90", "Z c #FFFF88", "` c #FFFF80", " . c #FFFC68", ".. c #F4BC28", "+. c #EB8F00", "@. c #D48000", "#. c #FAAA00", "$. c #FFB30B", "%. c #FFD657", "&. c #FFFCA2", "*. c #FFFFA0", "=. c #FFFF9A", "-. c #FFFF93", ";. c #FFFF8C", ">. c #FFFF86", ",. c #FFFF7A", "'. c #FFFF74", "). c #FFFE6A", "!. c #FFFB66", "~. c #FFF861", "{. c #FFF55D", "]. c #FECF2D", "^. c #FCAA00", "/. c #DF9500", "(. c #FCCC4C", "_. c #FFFFA6", ":. c #FFFF9D", "<. c #FFFF8B", "[. c #FFFF73", "}. c #FFF860", "|. c #F5C22F", "1. c #E98B00", "2. c #D88000", "3. c #FFAF03", "4. c #FFCF4C", "5. c #FFF8A3", "6. c #FFFFAD", "7. c #FFFF98", "8. c #FFFF85", "9. c #FFFF7E", "0. c #FFFB64", "a. c #FFF45C", "b. c #FFE74C", "c. c #FCA901", "d. c #FCCB4A", "e. c #FFFFAA", "f. c #FFFFA1", "g. c #FFFE68", "h. c #FFF45D", "i. c #FFF058", "j. c #F6C733", "k. c #E68801", "l. c #DA7F00", "m. c #FFC73E", "n. c #FFF4A5", "o. c #FFFFBA", "p. c #FFFFB2", "q. c #FFFFAC", "r. c #FFFFA5", "s. c #FFFF9E", "t. c #FFFF97", "u. c #FFFA64", "v. c #FECF2E", "w. c #FBAC06", "x. c #FAA802", "y. c #F9A400", "z. c #F9B626", "A. c #FEF695", "B. c #FFFF9B", "C. c #FFFF79", "D. c #FFFF71", "E. c #FFFB65", "F. c #FFF65F", "G. c #FFF25A", "H. c #FFEE54", "I. c #FFEA4E", "J. c #F8CA34", "K. c #E48703", "L. c #DC7D00", "M. c #FFC132", "N. c #FFEC9D", "O. c #FFFFC6", "P. c #FFFFBF", "Q. c #FFFFB8", "R. c #FFFFB1", "S. c #FFFFA3", "T. c #FFFF9C", "U. c #FEDB3C", "V. c #FDB109", "W. c #FBA901", "X. c #FCBE1C", "Y. c #FEE246", "Z. c #FDB20A", "`. c #F6A101", " + c #F6AD19", ".+ c #FDF07E", "++ c #FFFC67", "@+ c #FFF862", "#+ c #FFF056", "$+ c #FFEB50", "%+ c #FFE74B", "&+ c #FFE246", "*+ c #FACC34", "=+ c #E38706", "-+ c #DB7A00", ";+ c #FFBA20", ">+ c #FFE696", ",+ c #FFFFD4", "'+ c #FFFFCC", ")+ c #FFFFC5", "!+ c #FFFFBE", "~+ c #FFFFB7", "{+ c #FFFFB0", "]+ c #FFFFA9", "^+ c #FEB810", "/+ c #FDAA00", "(+ c #FCB813", "_+ c #FED83A", ":+ c #FFE84C", "<+ c #FFBA12", "[+ c #FDB610", "}+ c #F49F02", "|+ c #F3A30E", "1+ c #FCE86A", "2+ c #FFF65E", "3+ c #FFF258", "4+ c #FFED53", "5+ c #FFE84E", "6+ c #FFE448", "7+ c #FFE042", "8+ c #FFDC3C", "9+ c #FBCC30", "0+ c #E38808", "a+ c #DA7700", "b+ c #FFE393", "c+ c #FFFFD9", "d+ c #FFFFD2", "e+ c #FFFFCB", "f+ c #FFFFC4", "g+ c #FFFFBC", "h+ c #FFFFB6", "i+ c #FFFFAE", "j+ c #FFFFA7", "k+ c #FFEE5D", "l+ c #FFC21C", "m+ c #FEAC00", "n+ c #FDB40B", "o+ c #FED02F", "p+ c #FFE245", "q+ c #FFE64A", "r+ c #FFEA4F", "s+ c #FFBE16", "t+ c #FFBE18", "u+ c #FEBC17", "v+ c #F39E04", "w+ c #F09A06", "x+ c #FADF56", "y+ c #FFF35B", "z+ c #FFEE55", "A+ c #FFEA50", "B+ c #FFE244", "C+ c #FFDD3F", "D+ c #FFD93A", "E+ c #FFD434", "F+ c #FCC92A", "G+ c #E48A0A", "H+ c #D97400", "I+ c #FFBA1F", "J+ c #FFFCD1", "K+ c #FFFFD0", "L+ c #FFFFC9", "M+ c #FFFFC2", "N+ c #FFFFBB", "O+ c #FFFFB4", "P+ c #FFF46D", "Q+ c #FFCA2A", "R+ c #FEB207", "S+ c #FEC824", "T+ c #FFDC3D", "U+ c #FFE84D", "V+ c #FFEC52", "W+ c #FFF057", "X+ c #FFC11B", "Y+ c #FFC41E", "Z+ c #FEC21E", "`+ c #F29F08", " @ c #EC9302", ".@ c #F7D343", "+@ c #FFE446", "@@ c #FFDF41", "#@ c #FFDA3C", "$@ c #FFD636", "%@ c #FFD230", "&@ c #FFCE2A", "*@ c #FDC524", "=@ c #E58D0A", "-@ c #D77000", ";@ c #BA5F00", ">@ c #FFDA74", ",@ c #FFFFCF", "'@ c #FFFFC8", ")@ c #FFFFC1", "!@ c #FFFFB3", "~@ c #FFFF91", "{@ c #FFFA82", "]@ c #FFD23A", "^@ c #FEC21B", "/@ c #FFD535", "(@ c #FFDA3B", "_@ c #FFDE40", ":@ c #FFE64B", "<@ c #FFC420", "[@ c #FFC621", "}@ c #FFC722", "|@ c #FFC824", "1@ c #FEC825", "2@ c #F2A30D", "3@ c #EA8D00", "4@ c #F3C131", "5@ c #FFE549", "6@ c #FFE044", "7@ c #FFDC3E", "8@ c #FFD838", "9@ c #FFD432", "0@ c #FFD02D", "a@ c #FFCB28", "b@ c #FFC622", "c@ c #FEC11C", "d@ c #E78F0A", "e@ c #D46B00", "f@ c #C05F00", "g@ c #F2A500", "h@ c #FFB30D", "i@ c #FFFAC0", "j@ c #FFFC91", "k@ c #FFD94C", "l@ c #FFB309", "m@ c #FFAF01", "n@ c #FFBC13", "o@ c #FFCE2C", "p@ c #FFD839", "q@ c #FFE144", "r@ c #FFE94E", "s@ c #FFCA26", "t@ c #FFCA27", "u@ c #FFCC29", "v@ c #F2A914", "w@ c #E78800", "x@ c #EFB022", "y@ c #FEEE55", "z@ c #FFDA3A", "A@ c #FFD635", "B@ c #FFD12F", "C@ c #FFCC2A", "D@ c #FFC019", "E@ c #FFBB14", "F@ c #EA9207", "G@ c #D26700", "H@ c #C45F00", "I@ c #FFD259", "J@ c #FFFEA0", "K@ c #FFE161", "L@ c #FFB710", "M@ c #FFB80D", "N@ c #FFC822", "O@ c #FFCF2D", "P@ c #FFD332", "Q@ c #FFD837", "R@ c #FFE447", "S@ c #FFCC28", "T@ c #FFCD2A", "U@ c #FFD02E", "V@ c #FFD231", "W@ c #F3B11D", "X@ c #E48400", "Y@ c #EBA017", "Z@ c #FEE44A", "`@ c #FFD737", " # c #FFC21B", ".# c #FFBD16", "+# c #FFB810", "@# c #FFB40A", "## c #E38402", "$# c #CF6300", "%# c #AA5100", "&# c #EBA000", "*# c #FFF4A8", "=# c #FFEA7C", "-# c #FFBD1E", ";# c #FFCE2B", "># c #FFDE3F", ",# c #FFF259", "'# c #FFD02F", ")# c #F6BC27", "!# c #E28201", "~# c #E6930F", "{# c #FCD83E", "]# c #FFC823", "^# c #FFC31E", "/# c #FFB60C", "(# c #EF9805", "_# c #D06400", ":# c #BD5900", "<# c #F3A600", "[# c #FFC83F", "}# c #FFF093", "|# c #FFC42E", "1# c #FFB104", "2# c #FFBB12", "3# c #FFD433", "4# c #FFD736", "5# c #FFDD3E", "6# c #F8C832", "7# c #E08103", "8# c #E28809", "9# c #FACB32", "0# c #FFC926", "a# c #FFC520", "b# c #FFC01A", "c# c #FFBC14", "d# c #FFB80F", "e# c #EF9A07", "f# c #BC5900", "g# c #F6A800", "h# c #FFAF04", "i# c #FFB618", "j# c #FDAC00", "k# c #F4A700", "l# c #FFC83A", "m# c #FFF760", "n# c #FFFE6B", "o# c #FAD33C", "p# c #DF8207", "q# c #DE7E05", "r# c #F6BD27", "s# c #FFBE17", "t# c #FFBA11", "u# c #EF9B08", "v# c #B65600", "w# c #E69D00", "x# c #FFCE60", "y# c #FFF5CC", "z# c #FFE495", "A# c #FFD25C", "B# c #FFC12E", "C# c #FFB006", "D# c #FFB105", "E# c #FFBC15", "F# c #FFC41F", "G# c #FFE043", "H# c #FFE346", "I# c #FCDE46", "J# c #DF860C", "K# c #DA7602", "L# c #F2AF1D", "M# c #EF9C0A", "N# c #B25400", "O# c #D69200", "P# c #FFC84A", "Q# c #FFFBCB", "R# c #FFFFC0", "S# c #FFFEB3", "T# c #FFEB80", "U# c #FFB60F", "V# c #FFC21D", "W# c #FFDF42", "X# c #FDE750", "Y# c #E08D14", "Z# c #D66E00", "`# c #EEA113", " $ c #ED990B", ".$ c #FEAE00", "+$ c #FFC130", "@$ c #FFFAB6", "#$ c #FFF688", "$$ c #FFBB16", "%$ c #FFC620", "&$ c #FFE649", "*$ c #FEF058", "=$ c #E2981E", "-$ c #D36900", ";$ c #E6900B", ">$ c #EA950B", ",$ c #CE6200", "'$ c #B25300", ")$ c #FFBB1D", "!$ c #FFF89E", "~$ c #FFFFA4", "{$ c #FFF87A", "]$ c #FFC11E", "^$ c #FEBD17", "/$ c #FFED52", "($ c #FFEF56", "_$ c #FFF35A", ":$ c #E5A62B", "<$ c #CA5E00", "[$ c #9B4700", "}$ c #8F4100", "|$ c #FFB712", "1$ c #FFF283", "2$ c #FFFF7F", "3$ c #FFFB70", "4$ c #FDC320", "5$ c #FBA700", "6$ c #FCBC19", "7$ c #F0C943", "8$ c #D6790E", "9$ c #D8770A", "0$ c #D26C05", "a$ c #CC6001", "b$ c #C95A00", "c$ c #C85800", "d$ c #C65600", "e$ c #C55400", "f$ c #C35100", "g$ c #C04E00", "h$ c #BD4B00", "i$ c #BA4800", "j$ c #FFB40C", "k$ c #FFEC69", "l$ c #FCC425", "m$ c #F8A300", "n$ c #FAB818", "o$ c #F4D64C", "p$ c #DB8716", "q$ c #D87B0C", "r$ c #F3BA2A", "s$ c #FCBE1E", "t$ c #F5AE15", "u$ c #F0A00E", "v$ c #E99108", "w$ c #DE7C04", "x$ c #C35000", "y$ c #C04B00", "z$ c #BC4800", "A$ c #F7A800", "B$ c #FEB106", "C$ c #FEE654", "D$ c #FFF963", "E$ c #FAC528", "F$ c #F59F00", "G$ c #F8B316", "H$ c #FFF55E", "I$ c #F8E556", "J$ c #E09620", "K$ c #D16600", "L$ c #D6770A", "M$ c #EEB62D", "N$ c #FFD939", "O$ c #FFCF2C", "P$ c #FDB813", "Q$ c #E28608", "R$ c #BE4A00", "S$ c #9D3C00", "T$ c #F6A600", "U$ c #FCAA02", "V$ c #FDDE42", "W$ c #FAC62A", "X$ c #F39A00", "Y$ c #F5AE14", "Z$ c #FFFF95", "`$ c #FEFCB2", " % c #FEEC54", ".% c #FBF05E", "+% c #E4A429", "@% c #D36A02", "#% c #D57107", "$% c #EAB12E", "%% c #FEE64B", "&% c #FEC421", "*% c #E89711", "=% c #C95B02", "-% c #C14D00", ";% c #A44100", ">% c #F2A200", ",% c #F9A500", "'% c #FCD034", ")% c #FFF158", "!% c #FAC72B", "~% c #F09701", "{% c #F2A812", "]% c #FDE44A", "^% c #F8D86D", "/% c #EFA214", "(% c #F0A60F", "_% c #FCEB54", ":% c #FCF663", "<% c #EAB535", "[% c #D56F03", "}% c #D46D03", "|% c #E8AC2E", "1% c #FCE954", "2% c #FFED54", "3% c #FFD534", "4% c #EEAA1E", "5% c #CE6706", "6% c #C24F00", "7% c #AF4600", "8% c #F4A300", "9% c #FBA802", "0% c #FBA903", "a% c #F6A100", "b% c #F9C124", "c% c #FBC426", "d% c #EE9502", "e% c #EF9F0E", "f% c #FDE851", "g% c #FAE46E", "h% c #F0AA1E", "i% c #ED9700", "j% c #EFA00A", "k% c #FCE853", "l% c #FEFD6A", "m% c #EEC23F", "n% c #D97A0A", "o% c #D46D02", "p% c #E3A129", "q% c #FBEE5D", "r% c #FFDB3C", "s% c #F4BE2C", "t% c #D3720C", "u% c #B54A00", "v% c #F4A100", "w% c #FAA904", "x% c #FAAA06", "y% c #F49C00", "z% c #F6B218", "A% c #FBC020", "B% c #EC9303", "C% c #EB9609", "D% c #FBE854", "E% c #FCEC68", "F% c #F2B325", "G% c #EE9C05", "H% c #EFC039", "I% c #DC8210", "J% c #D56C00", "K% c #E09626", "L% c #F8E662", "M% c #F7CD3A", "N% c #DA8516", "O% c #C55300", "P% c #BC4E00", "Q% c #823500", "R% c #F29F00", "S% c #FAAA07", "T% c #FAAD0B", "U% c #F19800", "V% c #F4A810", "W% c #FED334", "X% c #FCBA19", "Y% c #EB9103", "Z% c #E78C05", "`% c #F7D849", " & c #E88E00", ".& c #DC7800", "+& c #DE8A1E", "@& c #F4DA68", "#& c #FCE24B", "$& c #E09520", "%& c #C85A02", "&& c #F19D00", "*& c #F9AB09", "=& c #FFBF18", "-& c #FAB211", ";& c #EE9500", ">& c #F19F0A", ",& c #FDC826", "'& c #FDB510", ")& c #EA8E02", "!& c #EA9000", "~& c #EA9200", "{& c #DF7E00", "]& c #DC8218", "^& c #F1CF6B", "/& c #FFFF83", "(& c #FDF05B", "_& c #E5AA2E", ":& c #CB6005", "<& c #DE7E06", "[& c #DD7C05", "}& c #F09B00", "|& c #F8AB0B", "1& c #FBB818", "2& c #EC9202", "3& c #EB9002", "4& c #EE9A08", "5& c #F2A20C", "6& c #F7AB0E", "7& c #FCB20C", "8& c #FEAF06", "9& c #E98C00", "0& c #E18000", "a& c #E88C00", "b& c #EB9400", "c& c #E28200", "d& c #D97300", "e& c #DA7C0F", "f& c #EDC066", "g& c #FEFDA8", "h& c #FEFC69", "i& c #EBBF3F", "j& c #CF6B0A", "k& c #C75700", "l& c #DB7A07", "m& c #F7AC0F", "n& c #FFB910", "o& c #E08408", "p& c #EF9900", "q& c #F7AC0E", "r& c #FFC924", "s& c #FCC020", "t& c #F4AB14", "u& c #EE9C0B", "v& c #E88B02", "w& c #E58500", "x& c #E38300", "y& c #E58600", "z& c #E17F00", "A& c #DE7B00", "B& c #E48700", "C& c #DA7500", "D& c #DA7706", "E& c #EBB866", "F& c #FCF6B6", "G& c #FFF893", "H& c #FEEF83", "I& c #FEEE7A", "J& c #FEF475", "K& c #F0D053", "L& c #D47A14", "M& c #C95900", "N& c #D57206", "O& c #E0850B", "P& c #F6AC10", "Q& c #FBC325", "R& c #F4B21C", "S& c #EEA214", "T& c #E58D09", "U& c #DE7C01", "V& c #DD7900", "W& c #DB7600", "X& c #DA7400", "Y& c #D97200", "Z& c #DF8B28", "`& c #E5A44D", " * c #EAB562", ".* c #EDC26E", "+* c #F3C671", "@* c #F89649", "#* c #F96826", "$* c #FA7C3D", "%* c #FA8A4D", "&* c #F68446", "** c #EC6826", "=* c #E45A0C", "-* c #ED860F", ";* c #FEBD1C", ">* c #FFC31D", ",* c #FEBA1A", "'* c #EA750C", ")* c #E45510", "!* c #EE784C", "~* c #FA9A6C", "{* c #FCAF8A", "]* c #FCAC84", "^* c #FA9868", "/* c #F7622B", "(* c #F54000", "_* c #EC9500", ":* c #F5AC12", "<* c #FFD130", "[* c #FFD232", "}* c #FED030", "|* c #F7BE27", "1* c #EEBA5A", "2* c #ECB252", "3* c #E69310", "4* c #E2890C", "5* c #DC7D07", "6* c #D67204", "7* c #DA5F00", "8* c #F14704", "9* c #F99162", "0* c #FDDFC8", "a* c #FEE8D4", "b* c #FEECDB", "c* c #FEEDDD", "d* c #FEEAD7", "e* c #FDD8C0", "f* c #FBB287", "g* c #FA8F42", "h* c #FA901D", "i* c #FEB61E", "j* c #FA8D18", "k* c #F88845", "l* c #FCB78D", "m* c #FEE0CB", "n* c #FEEEDE", "o* c #FEECDC", "p* c #FEEDDC", "q* c #FEEEE0", "r* c #FEE8D6", "s* c #FAAA7E", "t* c #F4470B", "u* c #EA9300", "v* c #F5AC14", "w* c #FFD738", "x* c #FFE56B", "y* c #FFE883", "z* c #FEC228", "A* c #F34F06", "B* c #F99C69", "C* c #FED7B9", "D* c #FED3B5", "E* c #FED4B6", "F* c #FED5B6", "G* c #FED5B5", "H* c #FED4B5", "I* c #FED7BA", "J* c #FEDDC1", "K* c #FDCAA6", "L* c #F89660", "M* c #FCBD93", "N* c #FED8BB", "O* c #FED6B7", "P* c #FED6B8", "Q* c #FEDCC2", "R* c #FAAA7C", "S* c #EF3F04", "T* c #E99000", "U* c #F4AD16", "V* c #FFE45A", "W* c #FFE56F", "X* c #F78C1A", "Y* c #F26224", "Z* c #FEC8A0", "`* c #FEC297", " = c #FEC298", ".= c #FEC29A", "+= c #FEC299", "@= c #FEC39A", "#= c #FEC399", "$= c #FEC79F", "%= c #FEC49B", "&= c #FEC49A", "*= c #FEC59C", "== c #FEC49C", "-= c #FECAA3", ";= c #F36A37", ">= c #F3AD18", ",= c #FFE143", "'= c #FFE656", ")= c #FFE772", "!= c #FED436", "~= c #EE540A", "{= c #F88C53", "]= c #FEB27F", "^= c #FEB07C", "/= c #FEB27E", "(= c #FEB17F", "_= c #FEB07E", ":= c #FEB37F", "<= c #FEB380", "[= c #FEB280", "}= c #FEB381", "|= c #FEB481", "1= c #FEB482", "2= c #FA9C67", "3= c #E93502", "4= c #E68C00", "5= c #F2AC1C", "6= c #FFE347", "7= c #FFE548", "8= c #FFE95B", "9= c #FFEA76", "0= c #FDCC37", "a= c #E84308", "b= c #FB9458", "c= c #FE9F64", "d= c #FE9F63", "e= c #FEA065", "f= c #FE9F65", "g= c #FEA064", "h= c #FEA066", "i= c #FEA067", "j= c #FEA167", "k= c #FEA168", "l= c #FEA56B", "m= c #FEA368", "n= c #FDA369", "o= c #FDA065", "p= c #E8430A", "q= c #E58A00", "r= c #EFA118", "s= c #FFDD52", "t= c #FFE74D", "u= c #FFEE60", "v= c #FFEC79", "w= c #FABF36", "x= c #E7410A", "y= c #FD8C49", "z= c #FE8C49", "A= c #FE8B48", "B= c #FE8D49", "C= c #FE8C4A", "D= c #FE8D4A", "E= c #FE8D4C", "F= c #FE8D4B", "G= c #FE8E4C", "H= c #FE8F4C", "I= c #F97837", "J= c #F2541A", "K= c #ED430B", "L= c #ED420D", "M= c #F36227", "N= c #E94B12", "O= c #DB8300", "P= c #E78900", "Q= c #F0A924", "R= c #FEDD56", "S= c #FFEB53", "T= c #FFF166", "U= c #FFEF7D", "V= c #F8BC38", "W= c #E64007", "X= c #FE7A31", "Y= c #FE7830", "Z= c #FE7930", "`= c #FE7A30", " - c #FE7931", ".- c #FE7A32", "+- c #FE7B33", "@- c #FD7931", "#- c #F14D12", "$- c #EC3500", "%- c #EB3500", "&- c #EA3500", "*- c #E93400", "=- c #E93602", "-- c #E54208", ";- c #CA7700", ">- c #E48500", ",- c #ECA01E", "'- c #FEDC58", ")- c #FFEF5A", "!- c #FFF35C", "~- c #FFF66A", "{- c #FFF280", "]- c #F8C63F", "^- c #E23D05", "/- c #FD6619", "(- c #FE6518", "_- c #FE6418", ":- c #FE6618", "<- c #FE661A", "[- c #FE6619", "}- c #FE671A", "|- c #FE681B", "1- c #FE661B", "2- c #FE681C", "3- c #FC6319", "4- c #F04306", "5- c #EC3700", "6- c #EB3600", "7- c #E83400", "8- c #E83501", "9- c #E13A03", "0- c #E89516", "a- c #FCDA58", "b- c #FFF060", "c- c #FFF660", "d- c #FFF970", "e- c #FFF483", "f- c #FBD84A", "g- c #DE3E06", "h- c #FA4E04", "i- c #FE5004", "j- c #FE5104", "k- c #FE5105", "l- c #FE5204", "m- c #FE5206", "n- c #FE5305", "o- c #F94E05", "p- c #EE3B02", "q- c #EC3600", "r- c #EA3600", "s- c #E73300", "t- c #E63300", "u- c #E73200", "v- c #DC3300", "w- c #DD7B00", "x- c #E38A0F", "y- c #FBD857", "z- c #FFF264", "A- c #FFFD75", "B- c #FFF787", "C- c #FEEF58", "D- c #DF5D16", "E- c #F24200", "F- c #FC4800", "G- c #FB4800", "H- c #FC4900", "I- c #FB4700", "J- c #F44000", "K- c #ED3800", "L- c #E63200", "M- c #E53100", "N- c #E43200", "O- c #D52E00", "P- c #D97600", "Q- c #DE8009", "R- c #F9CF51", "S- c #FFF066", "T- c #FFFA8A", "U- c #EA9A33", "V- c #E03400", "W- c #F94600", "X- c #F84400", "Y- c #F84600", "Z- c #F94700", "`- c #F84700", " ; c #F84500", ".; c #ED3900", "+; c #EC3800", "@; c #E53000", "#; c #E43000", "$; c #DC2F00", "%; c #D67100", "&; c #DA7705", "*; c #F6C44D", "=; c #FFEA6A", "-; c #FFFE76", ";; c #FFFC8E", ">; c #F7D752", ",; c #D33405", "'; c #F04000", "); c #F74200", "!; c #F64200", "~; c #F54100", "{; c #F44100", "]; c #F44200", "^; c #F23E00", "/; c #F03C00", "(; c #EE3A00", "_; c #E83300", ":; c #E63100", "<; c #E32F00", "[; c #E22E00", "}; c #D12900", "|; c #D06C00", "1; c #D66F02", "2; c #F1B746", "3; c #FFE46E", "4; c #FFFD80", "5; c #E38A30", "6; c #DB3200", "7; c #F64100", "8; c #F33F00", "9; c #F23D00", "0; c #F13C00", "a; c #F03B00", "b; c #EF3A00", "c; c #EE3900", "d; c #E22D00", "e; c #D62B00", "f; c #C96600", "g; c #EBA73C", "h; c #FFDE70", "i; c #FAEC65", "j; c #CF4310", "k; c #E83A00", "l; c #EF3B00", "m; c #E12C00", "n; c #DC2B00", "o; c #C82400", "p; c #C26000", "q; c #D06500", "r; c #E49530", "s; c #FFD873", "t; c #FFF792", "u; c #EEBD54", "v; c #CB2C04", "w; c #EE3D00", "x; c #E02C00", "y; c #C82300", "z; c #BC5A00", "A; c #CD6100", "B; c #DE8627", "C; c #FED173", "D; c #FFF299", "E; c #FFF176", "F; c #FFD962", "G; c #DE752C", "H; c #CE2800", "I; c #F13E00", "J; c #E53200", "K; c #CA2300", "L; c #B35300", "M; c #CB5C00", "N; c #D7781D", "O; c #FCC972", "P; c #FFDA6A", "Q; c #FFCE5E", "R; c #E69B3B", "S; c #C4540C", "T; c #BC2A00", "U; c #D02800", "V; c #DF2B00", "W; c #CA2200", "X; c #BB1C00", "Y; c #A84B00", "Z; c #D16C17", "`; c #FABF6F", " > c #FFE39E", ".> c #FFF390", "+> c #FFD771", "@> c #FFCA63", "#> c #ECA546", "$> c #C85E12", "%> c #BB4400", "&> c #AE3F00", "*> c #742600", "=> c #A41500", "-> c #CD2600", ";> c #DE2A00", ">> c #C72000", ",> c #B51800", "'> c #CB6110", ")> c #F6B46B", "!> c #FFDA9B", "~> c #FFD887", "{> c #FFC767", "]> c #F2AD51", "^> c #CC6619", "/> c #B44100", "(> c #7D2E00", "_> c #AA1500", ":> c #C52000", "<> c #E93600", "[> c #EA3400", "}> c #E93300", "|> c #C11D00", "1> c #C04F00", "2> c #C6570A", "3> c #F0A865", "4> c #F6B364", "5> c #D27023", "6> c #BC4500", "7> c #B74200", "8> c #8C3300", "9> c #AF1300", "0> c #BA1A00", "a> c #E23100", "b> c #E02B00", "c> c #DA2700", "d> c #B91900", "e> c #BC4900", "f> c #C04D04", "g> c #BE4902", "h> c #BA4400", "i> c #983700", "j> c #B01300", "k> c #D32800", "l> c #CE2100", "m> c #AF1200", "n> c #B44300", "o> c #A43D00", "p> c #A70E00", "q> c #BE1B00", "r> c #DE2D00", "s> c #DA2800", "t> c #BA1700", "u> c #A60D00", "v> c #A20900", "w> c #A80E00", "x> c #C92000", "y> c #CA1F00", "z> c #A90C00", "A> c #9E0600", "B> c #9D0500", " ", " ", " . + + ", " @ + # $ % & * = ", " - ; > , ' ) + * ! ~ { ", " - + ] ^ / ( _ : < [ } | 1 2 3 4 ", " 5 + 6 7 8 9 0 ( a b c ; d } e f g h i j k ", " l + m n o p q r s t u v w x l } y z A B 8 r C D E F ", " . + G H f I J K L M N O P Q R S T U } V W X Y Z ` 0 t ...+.@. ", " #.+ $.%.&.*.=.-.;.>.` ,.'.' ).!.~.{.].^./.} (._.:.I <.q ,.[.a Q }.|.1.2. ", " - 3.4.5.6._.z 7.g <.8.9./ [._ : 0.}.a.b.c.} d.e.f.7.o >.9.s ' g.R h.i.j.k.l. ", " - + m.n.o.p.q.r.s.t.Y h 8 9./ ( a g.u.{.v.w.x.y.z.A.B.g h L C.D.P E.F.G.H.I.J.K.L. ", " 5 + M.N.O.P.Q.R.e.S.T.A o p q r s t u Q U.V.W.X.Y.Z.`. +.+B 8 r '._ ++@+a.#+$+%+&+*+=+-+ ", " + ;+>+,+'+)+!+~+{+]+W B.I J K L M N O %+^+/+(+_+:+c <+[+}+|+1+` / t ).u.2+3+4+5+6+7+8+9+0+a+ ", " + b+c+d+e+f+g+h+i+j+*.=.-.B >.` ,.k+l+m+n+o+p+q+r+H.s+t+u+v+w+x+[.a Q }.y+z+A+q+B+C+D+E+F+G+H+ ", " [ I+J+K+L+M+N+O+6._.z 7.g <.8.P+Q++ R+S+T+7+6+U+V+W+X+l+Y+Z+`+ @.@g.R {.i.V+:++@@@#@$@%@&@*@=@-@;@ ", " + >@,@'@)@o.!@q.r.s.t.~@{@]@; T ^@/@(@_@&+:@A+z+G.<@[@}@|@1@2@3@4@F.G.H.I.5@6@7@8@9@0@a@b@c@d@e@f@ ", " g@h@i@O.P.Q.R.e.S.T.j@k@l@m@n@o@E+p@7@q@5@r@4+3+2+|@s@t@u@&@o@v@w@x@y@c %+&+_@z@A@B@C@|@Y+D@E@F@G@H@ ", " + I@)+!+~+{+]+J@K@L@+ M@N@O@P@Q@8+7+R@:+c #+a.~.S@T@o@U@B@V@9@W@X@Y@Z@6+7+8+`@P@o@s@[@ #.#+#@###$#%# ", " .*#g+h+i+=#-#+ # X+s@;#%@A@z@>#p+q+r+H.,#F.u.U@'#%@P@E+$@`@8@)#!#~#{#>#D+E+U@S@]#^#t+<+/#(#_#:# ", " + + @ <# l [#N+}#|#+ 1#2#Y+]#u@U@3#8@T+7+6+U+V+W+a.@+++P@E+A@4#8@z@#@T+5#6#7#8#9#$@%@;#0#a#b#c#d#e#_#f# ", " g#+ h#i#+ + j#g@k#+ l#+ ; /#s+l+[@s@o@V@$@(@_@&+:@A+z+G.m#E.n#$@8@D+#@T+5#_@7+q@p+o#p#q#r#0@a@b@l+s#t#u#_#v# ", " w#+ x#y#z#A#B#C#+ + D#d#E#b#F#|@C@'#E+p@7@q@5@r@4+3+2+w g.( (@T+5#_@7+G#p+H#6+q+b.I#J#K#L#|@Y+D@c#M#_#N# ", " O#+ P#Q#e+R#S#T#U#m@d#t+V#}@a@O@P@Q@8+7+R@:+c #+a.~.Q _ ,._@W#G#B+H#6+q+%+:+I.A+V+X#Y#Z#`#l+.# $_#N# ", " .$+$@$~+6.S.#$$$m@c#%$s@;#%@A@z@>#p+q+r+H.G.F.u.: N 8 B+H#6+&$:@:+r@A+V+4+H.#+i.*$=$-$;$>$,$'$ ", " l )$!$~$=.Y {$]$m+^$u@U@3#8@T+7+6+U+V+W+a.@+++O 9.J 5@q+:+r@A+c /$H.($i.,#_$a.2+m#:$_#,$<$[$}$ ", " . |$1$g Z 2$3$4$5$6$V@$@(@_@&+:@A+z+G.m#E.n#/ Z 7.r@A+c V+H.($i.,#_$a.2+m#~.R 7$8$,$9$0$a$b$c$d$e$f$g$h$i$ ", " [ j$k$` 0 O Q l$m$n$p@7@q@5@r@4+3+2+w g.( L g S.V+H.($W+,#_$a.2+F.}.R u.o$p$_#q$r$P@o@0#s$t$u$v$w$x$y$z$ ", " A$B$C$t : D$h.E$F$G$_@R@:+c #+a.~.Q _ ,.h T.6.W+3+G.a.H$F.}.R u.Q I$J$K$L$M$C+N$9@O$s@a#b#P$Q$e$R$S$ ", " T$U$V$u.H$i.c W$X$Y$Y.r+H.G.F.u.: N 8 Z$_.`$ %{.F.}.@+u.E.++.%+%@%#%$%%%H#_@D+E+U@a@&%*%=%-%;% ", " >%* ,%'%)%V+:+H#!%~%{%]%W+a.@+++O 9.J z ^%/%(%_%u.E.Q g.:%<%[%}%|%1%2%U+R@@@(@3%U@4%5%6%7% ", " 8%9%0%a%b%U+R@_@z@c%d%e%f%m#E.n#/ Z g%h%i%i%i%j%k%).l%m%n%o%p%q%}._$H.r@6+7+r%s%t%f$u% ", " v%w%/#x%y%z%_@(@A@B@A%B%C%D%g.( E%F%i%i%i%i%i%i%G%H%I%J%K%L%' b @+a.($r+5@M%N%O%P%Q% ", " R%S%<+2#T%U%V%W%%@T@|@X%Y%Z%`%s%i%i%i%i%i%i%i% &.&Z#+&@&L / t g.R a.#+#&$&%&O%f$ ", " &&*&=&=&=&-&;&>&,&|@Y+=&'&)&X@!&i%i%i%i%i%~&{&-@]&^&A ;./&,.D.).u.(&_&:&c$<&[&6% ", " }&|&Y+Y+Y+Y+1&2&3&4&5&6&7&8&9&0&a&i%i%b&c&d&e&f&g&f.t.J 8 M ( h&i&j&k&l&m&n&o&-% ", " p&q&|@|@|@r&r&s&t&u&v&w&x&y&3@z&A&B&B&C&D&E&F&~+6.S.G&H&I&J&K&L&M&N&t&s#s+.#O&y$ ", " i%P&T@T@T@T@T@;#;#o@o@Q&R&S&T&U&V&W&X&Y&Z&`& *.*+*@*#*$*%*&***=*-*;*>*l+l+,*'*)*!*~*{*]*^*/*(* ", " _*:*<*<*%@%@%@%@%@[*P@P@P@P@9@}*|*1*2*3*4*5*6*7*8*9*0*a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*o*p*q*r*s*t* ", " u*v*$@$@$@$@$@4#4#`@w*8@8@8@8@8@8@x*y*U@U@O@z*A*B*C*D*E*F*G*H*F*I*J*K*L*M*I*N*F*O*O*P*O*O*P*Q*R*S* ", " T*U*#@#@r%r%r%r%8+8+T+7@7@7@5#5#5#V*W*E+3#9@X*Y*Z*`* =.=.=+=+=@=@=+=#=$=%=&=&=@=%=%=%=&=%=*===-=;= ", " &>=@@W#W#7+7+7+7+7+7+,=q@q@q@B+B+'=)=8@8@!=~={=]=^=/=(=_=/=/=:=]=]=]=]=<=[=[=[=<=}=<=[=<=}=|=1=2=3= ", " 4=5=6=R@6+6+6+6+7=7=7=5@q+q+q+q+q+8=9=5#7@0=a=b=c=d=c=e=f=g=c=g=e=g=e=h=h=i=e=e=h=j=j=h=k=l=m=n=o=p= ", " q=r=s=t=U+r@r@r@r@I.I.I.r+A+A+A+A+u=v=q@,=w=x=y=z=A=B=C=D=z=C=D=E=C=C=F=E=G=F=F=E=G=G=H=I=J=K=L=M=N= ", " O=P=Q=R=S=2%H.H.H.H.H.H.H.z+($($($T=U=5@7=V=W=X=Y=Y=Z=`= -Z=Z=X=X=.-X=.-.-.-.- -.-+-@-#-$-%-&-*-=--- ", " ;->-,-'-)-G.G.G.G.G._$_$_$!-a.a.~-{-I.r@]-^-/-(-_-:-<-<-:-[-<-<-<-<-}-|-1-<-<-2-3-4-5-6-&-*-7-8-9- ", " 0&0-a-b-c-m#m#m#m#}.}.~.@+@+d-e-H.2%f-g-h-i-i-i-j-i-i-i-k-j-l-j-j-k-m-k-n-o-p-q-r-&-*-s-t-u-v- ", " w-x-y-z-!.Q Q Q Q Q Q v b A-B-,#3+C-D-E-F-G-G-F-G-G-G-G-G-F-F-F-F-H-I-J-K-q-r-&-7-s-L-M-N-O- ", " P-Q-R-S-a _ _ _ ' ' ' ' r T-2+2+H$U-V-W-X-X-Y-Y-Y-Z-Y-Y-`-Z-Y- ;J-.;+;6-r-*-7-s-L-@;#;$; ", " %;&;*;=;-;0 / / / C.C.8.;;u.u.w >;,;';);!;!;~;{;{;];{;J-^;/;(;K-+;q-&-7-_;t-:;#;<;[;}; ", " |;1;2;3;4;/&/&8 8 8.o ~@).: g.v 5;6;!;7;~;J-8;^;9;0;a;b;c;.;+;6-&-*-_;t-:;#;<;d;e; ", " f;-$g;h;T-o Y Y ~@X A ( D.t O i;j;k;(*J-^;^;9;/;l;b;(;K-5-r-&-*-_;L-M-#;[;m;n;o; ", " p;q;r;s;t;T.:.:.~$T.r ,.,.C./ u;v;w;8;^;0;/;b;(;c;K-6-&-*-7-s-L-#;<;[;x;x;y; ", " z;A;B;C;D;]+e.{+S.>.8.8 8 E;F;G;H;I;0;/;l;(;K-K-6-&-*-7-s-J;#;<;d;x;x;K; ", " L;M;N;O;N.~+N+e.~@Y 1$P;Q;R;S;T;U;/;l;(;c;+;6-&-*-_;t-J;@;<;d;x;V;W;X; ", " Y;c$Z;`; >O.R..>+>@>#>$>%>&>*>=>->c;.;5-&-&-7-_;L-M-#;<;m;x;;>>>,> ", " e$'>)>!>~>{>]>^>%>/>(> _>:><>6-[>}>s-J;@;#;[;x;x;;>|> ", " 1>2>3>4>5>6>7>8> 9>0>a>&-s-L-#;<;d;x;b>c>d> ", " e>f>g>h>i> j>k>u-#;<;m;x;b>l>m> ", " n>o> p>q>r>[;m;s>t>u> ", " v>w>x>y>z> ", " A>B> ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDriverPrompt.cpp0000644000175000001440000000446011506076451017114 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDriverPrompt.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDriverPrompt.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDriverPrompt.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDriverPrompt[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x09, 0 // eod }; static const char qt_meta_stringdata_CDriverPrompt[] = { "CDriverPrompt\0\0slotOk()\0" }; const QMetaObject CDriverPrompt::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_CDriverPrompt, qt_meta_data_CDriverPrompt, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDriverPrompt::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDriverPrompt::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDriverPrompt::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDriverPrompt)) return static_cast(const_cast< CDriverPrompt*>(this)); return QDialog::qt_metacast(_clname); } int CDriverPrompt::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotOk(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNamesFile.h0000644000175000001440000000345511506076310017562 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDATASOURCENAMESFILE_H #define CDATASOURCENAMESFILE_H #include "CODBCInst.h" #define ODBC_HELP_DATASOURCES_FILE "File Data Source Names (DSN's) are files which hold connection options. These are more versatile than regular DSN's because the files can be shared over a network and/or easily distributed throughout a network." class CDataSourceNamesFileModel; class CFileSelector; class QListView; class QLabel; /*! * \class CDataSourceNamesFile * * \brief Widget to allow User to manage FileDSN's including setting default dir. * * Presents a list of FileDSN's in the given Path. The User may; * change the Path and add/remove/edit a selected FileDSN. * * \note Elevated privileges (root) may be required to add/remove/edit a FileDSN. This * depends largely on where the FileDSN is located. * * \sa CManageDataSources * CManageDrivers * CStats * CTracing * CAbout */ class CDataSourceNamesFile : public QWidget { Q_OBJECT public: CDataSourceNamesFile( QWidget* pwidgetParent = NULL ); virtual ~CDataSourceNamesFile(); QString getDataSourceName(); QString windowHelp() { return QString( tr( ODBC_HELP_DATASOURCES_FILE ) ); } public slots: void slotLoad(); protected slots: void slotAdd(); void slotEdit(); void slotDelete(); void slotSetDefault(); protected: QLabel * plabelDefault; CFileSelector * pFileSelector; CDataSourceNamesFileModel * pDataSourceNamesFileModel; QListView * pListView; QString getDefault(); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardProperties.h0000644000175000001440000000203611506076310017620 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARDPROPERTIES_H #define CDSNWIZARDPROPERTIES_H #include "CODBCInst.h" #include class CPropertiesModel; class CPropertiesDelegate; /*! * \class CDSNWizardProperties * \brief A page for create data source name wizard. * * This page allows the DSN properties/entries to be edited. * * \sa CDSNWizard */ class CDSNWizardProperties : public QWizardPage { Q_OBJECT public: CDSNWizardProperties( CDSNWizardData *pWizardData, QWidget *pwidgetParent = 0 ); virtual ~CDSNWizardProperties(); int nextId() const; void initializePage(); void cleanupPage(); bool validatePage(); protected: CDSNWizardData * pWizardData; CPropertiesModel * pPropertiesModel; CPropertiesDelegate * pPropertiesDelegate; QTableView * pTableView; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDriverList.cpp0000644000175000001440000000571611506076451016553 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDriverList.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDriverList.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDriverList.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDriverList[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 6, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: signature, parameters, type, tag, flags 13, 12, 12, 12, 0x05, // slots: signature, parameters, type, tag, flags 29, 12, 12, 12, 0x0a, 39, 12, 12, 12, 0x0a, 50, 12, 12, 12, 0x0a, 63, 12, 12, 12, 0x0a, 80, 74, 12, 12, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CDriverList[] = { "CDriverList\0\0signalChanged()\0slotAdd()\0" "slotEdit()\0slotDelete()\0slotLoad()\0" "pItem\0slotDoubleClick(QTableWidgetItem*)\0" }; const QMetaObject CDriverList::staticMetaObject = { { &QTableWidget::staticMetaObject, qt_meta_stringdata_CDriverList, qt_meta_data_CDriverList, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDriverList::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDriverList::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDriverList::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDriverList)) return static_cast(const_cast< CDriverList*>(this)); return QTableWidget::qt_metacast(_clname); } int CDriverList::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTableWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: signalChanged(); break; case 1: slotAdd(); break; case 2: slotEdit(); break; case 3: slotDelete(); break; case 4: slotLoad(); break; case 5: slotDoubleClick((*reinterpret_cast< QTableWidgetItem*(*)>(_a[1]))); break; default: ; } _id -= 6; } return _id; } // SIGNAL 0 void CDriverList::signalChanged() { QMetaObject::activate(this, &staticMetaObject, 0, 0); } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDataSourceNameList.cpp0000644000175000001440000000551011506076451020143 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDataSourceNameList.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDataSourceNameList.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDataSourceNameList.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDataSourceNameList[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 21, 20, 20, 20, 0x0a, 31, 20, 20, 20, 0x0a, 42, 20, 20, 20, 0x0a, 55, 20, 20, 20, 0x0a, 72, 66, 20, 20, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CDataSourceNameList[] = { "CDataSourceNameList\0\0slotAdd()\0" "slotEdit()\0slotDelete()\0slotLoad()\0" "pItem\0slotDoubleClick(QTableWidgetItem*)\0" }; const QMetaObject CDataSourceNameList::staticMetaObject = { { &QTableWidget::staticMetaObject, qt_meta_stringdata_CDataSourceNameList, qt_meta_data_CDataSourceNameList, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDataSourceNameList::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDataSourceNameList::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDataSourceNameList::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDataSourceNameList)) return static_cast(const_cast< CDataSourceNameList*>(this)); return QTableWidget::qt_metacast(_clname); } int CDataSourceNameList::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTableWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotAdd(); break; case 1: slotEdit(); break; case 2: slotDelete(); break; case 3: slotLoad(); break; case 4: slotDoubleClick((*reinterpret_cast< QTableWidgetItem*(*)>(_a[1]))); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CFileSelector.cpp0000644000175000001440000000725511506076310016661 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CFileSelector.h" #include "Set.xpm" CFileSelector::CFileSelector( CFileSelectorMode nMode, const QString &stringLabel, bool bCompact, bool bButton, QWidget* pwidgetParent ) : QWidget( pwidgetParent ) { this->nMode = nMode; QHBoxLayout *playoutTop = new QHBoxLayout; if ( bCompact ) { playoutTop->setMargin( 0 ); playoutTop->setSpacing( 0 ); } if ( !stringLabel.isEmpty() ) playoutTop->addWidget( new QLabel( stringLabel ) ); { pLineEdit = new QLineEdit; playoutTop->addWidget( pLineEdit, 10 ); connect( pLineEdit, SIGNAL(editingFinished()), this, SIGNAL(signalChanged()) ); } if ( bButton ) { QToolButton *pToolButton = new QToolButton; pToolButton->setToolTip( tr( "click this to invoke a dialog to help select a file/directory" ) ); pToolButton->setWhatsThis( tr( "Click this to invoke a file dialog to assist in selecting a file/directory." ) ); pToolButton->setIcon( QIcon( xpmSet ) ); playoutTop->addWidget( pToolButton ); connect( pToolButton, SIGNAL(clicked()), this, SLOT(slotInvokeDialog()) ); } setLayout( playoutTop ); } CFileSelector::~CFileSelector() { } void CFileSelector::setText( const QString &stringText ) { pLineEdit->setText( stringText ); emit signalChanged(); } QString CFileSelector::getText() { return pLineEdit->text(); } void CFileSelector::slotInvokeDialog() { QString stringText; QString stringSelectedFilter; switch ( nMode ) { case TraceFile: stringText = QFileDialog::getSaveFileName( this, tr( "Select log file..." ), getText(), tr( "Trace File (*.log *.txt);;All Files (*.*)" ), &stringSelectedFilter, QFileDialog::DontConfirmOverwrite ); break; case TraceLibrary: { QString stringFilter = tr( "Share Library (*" ); if ( strlen( SHLIBEXT ) > 0 ) stringFilter += SHLIBEXT; else stringFilter += ".so"; stringFilter += tr( "*);;All Files (*.*)" ); stringText = QFileDialog::getOpenFileName( this, tr( "Select ODBC Trace Libary..." ), getText(), stringFilter, &stringSelectedFilter ); } break; case FileDSNDirectory: stringText = QFileDialog::getExistingDirectory( this, tr( "Select directory..." ), getText() ); break; case Driver: { QString stringFilter = tr( "Share Library (*" ); if ( strlen( SHLIBEXT ) > 0 ) stringFilter += SHLIBEXT; else stringFilter += ".so"; stringFilter += tr( "*);;All Files (*.*)" ); stringText = QFileDialog::getOpenFileName( this, tr( "Select Driver..." ), getText(), stringFilter, &stringSelectedFilter ); } break; case Setup: { QString stringFilter = tr( "Share Library (*" ); if ( strlen( SHLIBEXT ) > 0 ) stringFilter += SHLIBEXT; else stringFilter += ".so"; stringFilter += tr( "*);;All Files (*.*)" ); stringText = QFileDialog::getOpenFileName( this, tr( "Select Driver Setup..." ), getText(), stringFilter, &stringSelectedFilter ); } break; } if ( stringText.isNull() ) return; setText( stringText ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNameList.h0000644000175000001440000000311711506076310017426 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDATASOURCENAMELIST_H #define CDATASOURCENAMELIST_H #include "CODBCInst.h" #include /*! * \brief A simple table widget listing Data Source Names (DSN's). * * You can use this widget to present a list of DSN's so that one can * simply be selected. Simply instantiating the widget is enough to * display the DSN's. Then one can get the selected DSN by calling the * getter functions; * * \li getDataSourceName * \li getDescription * * This widget can also be used as the core widget for managing the DSN's * by connecting to the following slots; * * \li slotAdd * \li slotEdit * \li slotDelete * * \note ODBC_USER_DSN's can be edited with normal privileges but ODBC_SYSTEM_DSN's, * typically, will require elevated system privileges such as 'root' access. * * \sa CDriverList * CDataSources */ class CDataSourceNameList : public QTableWidget { Q_OBJECT public: CDataSourceNameList( QWidget* pwidgetParent = NULL, int nSource = ODBC_BOTH_DSN ); virtual ~CDataSourceNameList(); QString getDataSourceName(); QString getDescription(); public slots: void slotAdd(); void slotEdit(); void slotDelete(); void slotLoad(); void slotDoubleClick( QTableWidgetItem *pItem ); private: int nSource; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDataSourceNamesFileModel.cpp0000644000175000001440000000623111506076451021254 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDataSourceNamesFileModel.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDataSourceNamesFileModel.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDataSourceNamesFileModel.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDataSourceNamesFileModel[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 48, 32, 27, 26, 0x0a, 86, 75, 27, 26, 0x0a, 118, 75, 27, 26, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CDataSourceNamesFileModel[] = { "CDataSourceNamesFileModel\0\0bool\0" "stringDirectory\0addDataSourceName(QString)\0" "modelindex\0editDataSourceName(QModelIndex)\0" "deleteDataSourceName(QModelIndex)\0" }; const QMetaObject CDataSourceNamesFileModel::staticMetaObject = { { &QDirModel::staticMetaObject, qt_meta_stringdata_CDataSourceNamesFileModel, qt_meta_data_CDataSourceNamesFileModel, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDataSourceNamesFileModel::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDataSourceNamesFileModel::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDataSourceNamesFileModel::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDataSourceNamesFileModel)) return static_cast(const_cast< CDataSourceNamesFileModel*>(this)); return QDirModel::qt_metacast(_clname); } int CDataSourceNamesFileModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDirModel::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: { bool _r = addDataSourceName((*reinterpret_cast< const QString(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 1: { bool _r = editDataSourceName((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 2: { bool _r = deleteDataSourceName((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; default: ; } _id -= 3; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CAdvanced.cpp0000644000175000001440000000345211506076310016001 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CAdvanced.h" #include "CManageDrivers.h" #include "CPooling.h" #include "CTracing.h" #include "CThreading.h" #include "CPage.h" #include "Advanced48.xpm" CAdvanced::CAdvanced( QWidget *pwidgetParent ) : QTabWidget( pwidgetParent ) { pManageDrivers = new CManageDrivers( this ); pPooling = new CPooling( this ); pTracing = new CTracing( this ); pThreading = new CThreading( this ); CPage *ppageDrivers = new CPage( this, QString::null, pManageDrivers, pManageDrivers->windowIcon(), pManageDrivers->windowHelp() ); CPage *ppagePooling = new CPage( this, QString::null, pPooling, pPooling->windowIcon(), pPooling->windowHelp() ); CPage *ppageTracing = new CPage( this, QString::null, pTracing, pTracing->windowIcon(), pTracing->windowHelp() ); CPage *ppageThreading = new CPage( this, QString::null, pThreading, pThreading->windowIcon(), pThreading->windowHelp() ); addTab( ppageDrivers, tr( "Drivers" ) ); addTab( ppagePooling, tr( "Pooling" ) ); addTab( ppageTracing, tr( "Tracing" ) ); addTab( ppageThreading, tr( "Threading" ) ); connect( pManageDrivers, SIGNAL(signalChanged()), this, SIGNAL(signalChanged()) ); setWindowIcon( QPixmap( xpmAdvanced48 ) ); setWindowTitle( tr( "Advanced" ) ); } CAdvanced::~CAdvanced() { } bool CAdvanced::saveData() { if ( !pManageDrivers->saveData() ) return false; if ( !pPooling->saveData() ) return false; if ( !pTracing->saveData() ) return false; if ( !pThreading->saveData() ) return false; return true; } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCPooling.cpp0000644000175000001440000000474211506076451016071 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CPooling.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CPooling.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CPooling.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CPooling[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 9, 10, 9, 0x0a, 27, 9, 10, 9, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CPooling[] = { "CPooling\0\0bool\0slotApply()\0slotDefault()\0" }; const QMetaObject CPooling::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CPooling, qt_meta_data_CPooling, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CPooling::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CPooling::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CPooling::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CPooling)) return static_cast(const_cast< CPooling*>(this)); return QWidget::qt_metacast(_clname); } int CPooling::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: { bool _r = slotApply(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 1: { bool _r = slotDefault(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardProperties.cpp0000644000175000001440000000535311506076310020160 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CDSNWizardProperties.h" #include "CDSNWizard.h" #include "CPropertiesModel.h" #include "CPropertiesDelegate.h" CDSNWizardProperties::CDSNWizardProperties( CDSNWizardData *pWizardData, QWidget *pwidgetParent ) : QWizardPage( pwidgetParent ) { this->pWizardData = pWizardData; QVBoxLayout *pLayout = new QVBoxLayout( this ); pPropertiesModel = 0; pPropertiesDelegate = new CPropertiesDelegate; pTableView = new QTableView; pTableView->setItemDelegateForColumn ( 1, pPropertiesDelegate ); pTableView->verticalHeader()->hide(); pLayout->addWidget( pTableView, 10 ); setTitle( tr( "Properties" ) ); } CDSNWizardProperties::~CDSNWizardProperties() { // free up memory associated with this page (model, delegate, and property list)... cleanupPage(); if ( pPropertiesDelegate ) delete pPropertiesDelegate; } int CDSNWizardProperties::nextId() const { // at this point pWizardData is loaded up... return CDSNWizard::PageFini; } void CDSNWizardProperties::initializePage() { pPropertiesModel = new CPropertiesModel( 0, pWizardData->hFirstProperty ); pTableView->setModel( pPropertiesModel ); } void CDSNWizardProperties::cleanupPage() { // always free up our property list here because we may end up with a different stringDriver... pTableView->setModel( 0 ); if ( pPropertiesModel ) delete pPropertiesModel; pPropertiesModel = 0; if ( pWizardData->hFirstProperty ) ODBCINSTDestructProperties( &pWizardData->hFirstProperty ); } bool CDSNWizardProperties::validatePage() { // handle case where we did not ODBCINSTConstructProperties()... if ( !pWizardData->hFirstProperty ) { QMessageBox::warning( this, tr( "Page Validate" ), tr( "Sorry; can no proceed without a viable property list. Possible installation/configuration issue - please contact your SysAdmin or driver vendor (or select a different driver)." ) ); return false; } // the first property is always Name... ensure we have one... QString stringName( pWizardData->hFirstProperty->szValue ); stringName = stringName.simplified(); if ( stringName.isEmpty() ) { QMessageBox::warning( this, tr( "Page Validate" ), tr( "Please specify a Name." ) ); return false; } // do the User a favour - remove extra white space (if any)... strcpy( pWizardData->hFirstProperty->szValue, stringName.toAscii().data() ); // driver is also mandatory but its a readonly property picked up from previous page - so we have one return true; } unixodbc-gui-qt-2.3.0/odbcinstQ4/Advanced48.xpm0000644000175000001440000002551411506076310016077 00000000000000/* XPM */ static const char *xpmAdvanced48[]={ "48 48 389 2", "Qt c None", ".D c #000000", "e. c #06090c", ".C c #090909", ".E c #0b0f14", ".c c #0d1115", ".j c #0f151d", "cH c #140000", "#N c #161c22", ".F c #171f29", "#t c #191919", "e# c #192633", "d5 c #1d0000", "bl c #1f0000", "#0 c #1f0b08", "ec c #1f2f3f", "a6 c #200000", ".w c #202428", "aN c #210000", "#o c #222b32", ".G c #222d38", "#F c #25354b", "ea c #26394c", "#u c #283442", "b8 c #290000", "#n c #293337", "#Z c #2a0000", ".P c #2a497e", "#h c #2d4b80", "bm c #2f0a07", "#R c #2f0b08", "at c #2f120d", ".t c #304e82", ".O c #315083", ".8 c #334b6e", "eb c #334c66", "#x c #335285", "d4 c #340000", ".# c #344046", "#w c #345285", ".b c #354452", ".s c #365587", "#m c #374349", ".i c #395172", "dS c #3e0000", ".v c #40556c", ".9 c #415a78", "#J c #425057", ".H c #435563", "#G c #466388", ".Q c #476795", ".a c #485a67", "c1 c #490000", "#v c #496790", ".Z c #496996", ".u c #4a6a97", ".m c #4c4c49", ".7 c #4c6c98", "#l c #4e5e66", "co c #4f0000", "#y c #4f6f9a", ".N c #51719c", ".I c #52646e", ".h c #53739d", ".r c #53749e", "#. c #567089", "#Y c #580000", "dT c #590000", ".k c #595959", ".0 c #5d7da5", ".Y c #5d7ea5", "bP c #5f0b08", "a7 c #5f1b14", "aO c #5f2117", ".6 c #6182a9", "as c #620000", "#H c #6385ab", ".B c #646a65", ".n c #647a83", ".g c #6688ad", "dz c #6699cc", "dO c #679acc", "d2 c #679acd", "d9 c #680000", ".R c #698baf", "de c #699cce", "ab c #6a0000", "d1 c #6a9dce", "dY c #6b9ecf", "#X c #6d0200", "dN c #6da0d1", "#g c #6e90b3", "dZ c #6ea1d1", "#S c #6f150f", "#T c #700a05", "#z c #7092b4", "d0 c #70a2d2", "di c #720000", ".x c #727272", ".M c #7395b7", "dy c #73a6d4", "## c #748fa2", ".q c #7497b8", "cY c #74a6d4", "dM c #75a8d5", "dd c #75a8d6", "d7 c #767299", "dX c #777499", ".1 c #799bbc", ".X c #799cbc", "d8 c #7a698c", "dJ c #7cafda", "bO c #7d0000", ".5 c #7ea1bf", "dx c #7eb0db", "dL c #80b3dc", "dK c #81b3dd", ".f c #82a5c2", "dc c #82b5de", "cX c #83b5de", "cD c #849bc0", "#f c #84a3ba", "dP c #864c66", ".d c #86a2af", "dw c #87b9e1", "cI c #8b0000", "#Q c #8b3d09", ".S c #8bafca", "dA c #8e394c", "db c #8ec0e5", "cC c #8ec1e5", "#1 c #8f3022", "ac c #8f3828", "dI c #8f556b", "ds c #8fc1e6", "#i c #90b4ce", "#I c #91b4c9", "#A c #91b5cf", "cW c #91c3e7", "dR c #920000", "ck c #93819b", "dv c #93c5e8", "dt c #93c6e8", ".L c #95b9d2", "d6 c #960000", "df c #962633", ".p c #96bbd3", "du c #96c8ea", "aM c #980000", "dr c #985e71", ".W c #98bdd4", "da c #98caeb", "cj c #98cbeb", ".l c #999897", "bx c #9c0000", "#k c #9cbdcc", ".4 c #9dc2d8", "cV c #9dd0ef", "b2 c #9e5665", "cB c #9ed0ef", "bk c #9f0000", ".e c #a0c5da", "d# c #a0d2f0", "b1 c #a1d3f1", "cZ c #a2090c", "c9 c #a3404a", "#O c #a4561a", "bL c #a5191d", "d. c #a6d8f4", "bK c #a6d9f4", "an c #a70000", "a0 c #a70e0f", "cR c #a7292e", ".2 c #a7cbdb", "b7 c #a80000", "#9 c #a80e0f", "bw c #a90000", "ci c #a9dbf6", "bv c #aa0000", "bg c #aa626d", "bu c #aab4c9", "d3 c #ab0000", "#5 c #ab0f0f", "dB c #ac0000", "ah c #ac0f0f", "cA c #acdef8", "cG c #ad0000", "dQ c #ae0000", "#j c #aed4e6", "cn c #af0000", "#B c #afd5e6", "dh c #b00000", "#W c #b02b00", "b6 c #b10000", "aG c #b1757f", ".T c #b1c8d4", ".K c #b1d6e8", ".o c #b1d7e8", "bN c #b20000", "aU c #b21f1f", ".3 c #b2d8e9", "bj c #b30000", ".J c #b3d9ea", "b0 c #b3e4fb", "c2 c #b40000", "cS c #b4e5fc", "dU c #b50000", "cF c #b60000", "#a c #b6cdd8", "aH c #b70000", "az c #b7120d", "bG c #b72f2f", "cm c #b90000", "dg c #ba0000", "b5 c #bb0000", "a5 c #bc0000", "#8 c #bd959f", "b3 c #be0000", "#U c #be3104", "ch c #beeafe", "ar c #bf0000", "bJ c #bfeafe", "aa c #c00000", "am c #c0c1cf", "aZ c #c0ddee", "c0 c #c10000", "cl c #c20000", "bc c #c2281d", "aL c #c40000", "a4 c #c50000", "cU c #c5edfe", "bi c #c60000", "#b c #c6e1de", "cT c #c6edfe", "bt c #c7edfe", "bf c #c7eefe", "cE c #c80000", "bV c #c82a1e", "bM c #cb0000", "#V c #cb5102", "dj c #cc0000", "b4 c #cd0000", "dH c #cd0302", "aK c #ce0000", "a3 c #cf0000", "by c #cf281c", "bh c #d00000", "bW c #d07e7f", "dC c #d10000", "#e c #d1b57c", "a. c #d20000", "dq c #d30c09", "aq c #d50000", "bZ c #d5f2ff", "a1 c #d60000", "aJ c #d70000", "cx c #d7f2ff", "aA c #d88f8f", "#6 c #d8babf", "a2 c #d90000", "aF c #d9f3ff", "#7 c #dbf4ff", "cg c #dcf4ff", "ce c #ddbbbf", "ap c #de0000", "c8 c #de1c14", "#4 c #de241a", "bF c #de4f39", "ao c #df0000", "b9 c #df0f0b", "#2 c #df4431", "al c #e0f5ff", "aI c #e10000", "#M c #e18b03", "#E c #e18d13", "#s c #e18e24", ".A c #e2eed7", "cz c #e2f6ff", "aT c #e3523b", "bI c #e3f6ff", "a# c #e40000", "aY c #e5f7ff", ".U c #e7f2ec", "cy c #e8f8ff", "cQ c #e92f22", "ag c #e93f2d", "be c #e9f8ff", "ai c #eacdcf", "#K c #ecb658", "bY c #edf9ff", "bn c #ef412f", "au c #ef6146", "aE c #effaff", "dk c #f00000", "#C c #f0c479", "#p c #f0c793", "ak c #f0faff", "dV c #f30000", "dD c #f40000", "bs c #f4dfdf", ".V c #f5f6ce", "cf c #f5fbff", "bH c #f5fcff", "dl c #f60000", "aX c #f6fcff", "c3 c #f70000", "aj c #f7fcff", "dW c #f80000", "bX c #f8fcff", "bd c #f8fdff", "dE c #f90000", "br c #f97f5c", "aD c #f9fdff", "#d c #faf28b", "#P c #fbdd04", "cJ c #fc0000", "aC c #fcfeff", "c4 c #fd0100", "aB c #fdfeff", "dF c #fe0302", "dm c #fe0503", "dG c #fe0504", "cp c #fe0805", "aW c #feffff", "c5 c #ff0a07", "cK c #ff0b08", "dn c #ff0d09", "do c #ff140e", "c6 c #ff150f", "cq c #ff1711", "dp c #ff1811", "cL c #ff1912", "c7 c #ff1f16", "c. c #ff2218", "cM c #ff251b", "cr c #ff261b", "bQ c #ff2a1e", "cN c #ff2f22", "c# c #ff3224", "cs c #ff3325", "cO c #ff3728", "bR c #ff3b2a", "cP c #ff3d2b", "ct c #ff3f2d", "ca c #ff402e", "bz c #ff422f", "#3 c #ff4632", "cu c #ff4833", "bS c #ff4a35", "cb c #ff4c37", "cv c #ff4e38", "cw c #ff503a", "bA c #ff523b", "bo c #ff563e", "cc c #ff573e", "a8 c #ff573f", "bT c #ff5840", "af c #ff5d43", "cd c #ff5e44", "bB c #ff6146", "ae c #ff6347", "ad c #ff6448", "a9 c #ff674a", "ay c #ff6b4d", "bU c #ff6d4e", "bC c #ff6f50", "av c #ff7050", "aP c #ff7151", "ax c #ff7252", "aw c #ff7453", "b. c #ff7655", "bD c #ff7a58", "aQ c #ff7c59", "aS c #ff7f5c", "bE c #ff805c", "aR c #ff825e", "bp c #ff835f", "b# c #ff845f", "bb c #ff8963", "bq c #ff8c65", "ba c #ff8d66", "#L c #ffeb1e", "#D c #ffee40", "#r c #fff163", "#q c #fff484", "#c c #fff7a6", ".z c #fffdea", ".y c #fffefd", "aV c #ffffff", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQt.#.a.b.cQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQt.d.e.f.g.h.i.jQtQtQt.k.l.mQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQt.n.o.p.q.r.s.t.u.v.w.x.y.z.A.B.CQt.D.E.F.G.H.I.d.nQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQt.J.K.L.M.N.O.P.Q.R.S.T.U.V.J.o.W.X.Y.Z.Z.0.1.W.o.2QtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQt.J.3.4.5.6.7.8.9#.###a#b#c#d#e#f#g.7#h#h.7#g#i#j#kQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQt#l#m#n#o.DQtQtQtQtQt#p#c#q#r#s#t#u#v#w#x#y#z#A#B#mQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt#C#q#r#D#EQtQtQt#F#G#H.5#I#JQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt#K#r#D#L#MQtQtQtQtQt#N#oQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt#O#D#L#P#QQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt#R#S#T#U#V#W#X#Y#ZQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt#0#1#2#3#4#5#6#7#8#9a.a#aaabQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtacadaeafagahaiajakalamanaoapaqarasQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtatauavawaxayazaAaBaCaDaEaFaGaHaIaJaKaLaMaNQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtaOaeaPaQaRaSaTaUaVaVaWaCaXaYaZa0a1a2a3a4a5ana6QtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQta7a8a9b.b#babbbcaAaVaVaVaBbdbebfbga5a2bhbia5bjbkblQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtbmbnboa9b.bpbqbranbsaVaVaVaBbdbebtbubva2bhbia5bjbwbxQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtbybzbAbBbCbDbEbFbGaWaVaWaWaCbHbIbJbKbLbMa3a4a5bNbwanbOQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtbPbQbRbSbTadbUaPbVbWaCaBaBaCbXbYbZb0b1b2b3b4aLb5b6b7ananb8QtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtb9c.c#cacbcccdbBazcebHbdbXcfbYcgchcicjckb6bMclcmcnanananbOQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtcocpcqcrcsctcucvcwancxbIcycyczbZchcAcBcCcDbwcEarcFcGanananancHQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtcIcJcKcLcMcNcOcPcQcRcSbJcTcUchb0cicVcWcXcYcZc0a5bjbvananananc1QtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtc2c3c4c5c6c7crbQc8c9b1d.cicid.d#dadbdcdddedfdgcmdhb7anananandiQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtdjdkdlcJdmdndodpdqdrdsdtdududvcCdwdxdydedzdAc2c2dBananananandiQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQt#YdCdDdEcJdFdGdHdIdJdKcXcXdLdJdMdNdOdzdzdPdQdhb7ananandRdSQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtdTdUdVdldWb5dXdYdZd0d0dNd1d2dzdzdzdzdPdBd3anandid4QtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtd5dTd6bkd7dzdzdzdzdzdzdzdzdzdzdzd8dRd9dSQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQte.e#eaebebebebebebebece#.DQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt", "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"}; unixodbc-gui-qt-2.3.0/odbcinstQ4/WizardCreateDataSourceName.xpm0000644000175000001440000032410611506076310021355 00000000000000/* XPM */ static const char * xpmWizardCreateDataSourceName[] = { "100 275 3277 2", " c None", ". c #000000", "+ c #000001", "@ c #010000", "# c #010001", "$ c #000100", "% c #000101", "& c #010100", "* c #010101", "= c #010201", "- c #020101", "; c #010102", "> c #020201", ", c #020102", "' c #020202", ") c #010202", "! c #020302", "~ c #030202", "{ c #020203", "] c #030302", "^ c #030303", "/ c #020303", "( c #030203", "_ c #030304", ": c #040303", "< c #030403", "[ c #040404", "} c #030404", "| c #040403", "1 c #040304", "2 c #050404", "3 c #848484", "4 c #CECECE", "5 c #3F3F3F", "6 c #040504", "7 c #050504", "8 c #040505", "9 c #040405", "0 c #050405", "a c #050505", "b c #050606", "c c #353535", "d c #333333", "e c #050506", "f c #060506", "g c #868686", "h c #B8B8B8", "i c #FAFAFA", "j c #F8F8F8", "k c #C2C2C2", "l c #262626", "m c #060605", "n c #050605", "o c #060505", "p c #060606", "q c #060706", "r c #070607", "s c #060607", "t c #060707", "u c #070606", "v c #070706", "w c #0E0605", "x c #A87C7A", "y c #C98481", "z c #E19B99", "A c #CB7672", "B c #B87572", "C c #664644", "D c #020000", "E c #656565", "F c #D8D8D8", "G c #F1F1F1", "H c #E4E4E4", "I c #D2D2D2", "J c #B3B3B3", "K c #171717", "L c #070707", "M c #080707", "N c #070708", "O c #070807", "P c #070808", "Q c #080708", "R c #080807", "S c #080808", "T c #483432", "U c #DF9D98", "V c #D26460", "W c #B90D06", "X c #BE211B", "Y c #C3312B", "Z c #C1241E", "` c #D66561", " . c #DE8380", ".. c #CA5A56", "+. c #BC5956", "@. c #310302", "#. c #666666", "$. c #DEDEDE", "%. c #EEEEEE", "&. c #E1E1E1", "*. c #D7D7D7", "=. c #6E6E6E", "-. c #080908", ";. c #080809", ">. c #080909", ",. c #090808", "'. c #090909", "). c #090908", "!. c #090809", "~. c #210F0D", "{. c #E6867F", "]. c #C11810", "^. c #BC0E07", "/. c #984643", "(. c #A16A68", "_. c #A46D6B", ":. c #A8706E", "<. c #A86866", "[. c #9F4542", "}. c #C41F18", "|. c #CA3D37", "1. c #D87672", "2. c #5F4644", "3. c #3E3E3E", "4. c #E3E3E3", "5. c #ECECEC", "6. c #E0E0E0", "7. c #D6D6D6", "8. c #090A09", "9. c #09090A", "0. c #0A090A", "a. c #0A0909", "b. c #0A0A09", "c. c #0A0A0A", "d. c #090A0A", "e. c #050000", "f. c #C7564E", "g. c #E77771", "h. c #BE0D06", "i. c #C32E28", "j. c #9D6866", "k. c #D38D8B", "l. c #D88F8D", "m. c #DC9492", "n. c #DF9795", "o. c #E39A98", "p. c #AF7372", "q. c #A34744", "r. c #CF433F", "s. c #BC615D", "t. c #63403F", "u. c #E2E2E2", "v. c #F6F6F6", "w. c #EAEAEA", "x. c #DFDFDF", "y. c #D5D5D5", "z. c #B2B2B2", "A. c #969696", "B. c #0B0A0A", "C. c #0A0A0B", "D. c #0A0B0A", "E. c #0B0B0B", "F. c #0B0B0A", "G. c #0B0A0B", "H. c #0A0B0B", "I. c #0B0B0C", "J. c #0B0C0B", "K. c #0C0B0B", "L. c #0C0C0B", "M. c #0B0C0C", "N. c #0C0B0C", "O. c #7B3735", "P. c #E57470", "Q. c #DE443A", "R. c #C20C07", "S. c #C74742", "T. c #CE8987", "U. c #D18D8A", "V. c #D5908E", "W. c #DA9491", "X. c #DE9795", "Y. c #E09A99", "Z. c #E39B9A", "`. c #B17776", " + c #A06261", ".+ c #AF7B7A", "++ c #F0E2E2", "@+ c #F4F4F4", "#+ c #E7E7E7", "$+ c #DDDDDD", "%+ c #D4D4D4", "&+ c #8E8E8E", "*+ c #0C0C0C", "=+ c #0D0C0C", "-+ c #0C0C0D", ";+ c #0C0D0C", ">+ c #0C0D0D", ",+ c #0D0C0D", "'+ c #0D0D0C", ")+ c #403433", "!+ c #D6605D", "~+ c #DE3930", "{+ c #E35D52", "]+ c #C70C07", "^+ c #CA4743", "/+ c #CC8A88", "(+ c #D08E8A", "_+ c #D4918F", ":+ c #D89593", "<+ c #DB9895", "[+ c #DF9B98", "}+ c #E29B9A", "|+ c #A06C6B", "1+ c #A18483", "2+ c #F1ECEC", "3+ c #F2F2F2", "4+ c #E6E6E6", "5+ c #DCDCDC", "6+ c #999999", "7+ c #676767", "8+ c #0D0D0D", "9+ c #0D0D0E", "0+ c #0E0D0D", "a+ c #0D0E0D", "b+ c #0E0E0D", "c+ c #0E0D0E", "d+ c #0D0E0E", "e+ c #0E0E0E", "f+ c #B66866", "g+ c #DB504D", "h+ c #DF4239", "i+ c #EB7469", "j+ c #CD0D08", "k+ c #CC3733", "l+ c #CC8B89", "m+ c #CF8F8C", "n+ c #D49390", "o+ c #D79693", "p+ c #DB9896", "q+ c #DD9B98", "r+ c #936463", "s+ c #967372", "t+ c #EEEAEA", "u+ c #EFEFEF", "v+ c #E5E5E5", "w+ c #B6B6B6", "x+ c #848080", "y+ c #302322", "z+ c #0F0E0E", "A+ c #0E0F0E", "B+ c #0E0E0F", "C+ c #0F0F0E", "D+ c #0F0E0F", "E+ c #0E0F0F", "F+ c #0F0F0F", "G+ c #383535", "H+ c #D8605D", "I+ c #D73A37", "J+ c #DF453D", "K+ c #F3958B", "L+ c #D4150E", "M+ c #D41A16", "N+ c #CC8C89", "O+ c #CF8F8D", "P+ c #D29390", "Q+ c #D59794", "R+ c #D89A98", "S+ c #B57D7C", "T+ c #947170", "U+ c #EFEDED", "V+ c #868383", "W+ c #722928", "X+ c #A03834", "Y+ c #340302", "Z+ c #100F0F", "`+ c #0F100F", " @ c #0F0F10", ".@ c #A4A4A4", "+@ c #BEBEBE", "@@ c #292929", "#@ c #100F10", "$@ c #10100F", "%@ c #101010", "&@ c #0F1010", "*@ c #101011", "=@ c #111010", "-@ c #101110", ";@ c #7F5D5D", ">@ c #D9423F", ",@ c #D01714", "'@ c #DB3A36", ")@ c #F5A499", "!@ c #E2423C", "~@ c #DC0F0A", "{@ c #D17572", "]@ c #D0928F", "^@ c #D29693", "/@ c #D89A97", "(@ c #CC8F8D", "_@ c #9D8280", ":@ c #EDEDED", "<@ c #BABABA", "[@ c #878383", "}@ c #835F5F", "|@ c #B26967", "1@ c #DB6C69", "2@ c #D77673", "3@ c #2F0301", "4@ c #111011", "5@ c #111111", "6@ c #B0B0B0", "7@ c #FBFBFB", "8@ c #AFAFAF", "9@ c #131313", "0@ c #101111", "a@ c #111110", "b@ c #111112", "c@ c #121111", "d@ c #121212", "e@ c #111211", "f@ c #111212", "g@ c #121112", "h@ c #4A4A4A", "i@ c #B96260", "j@ c #D62E2B", "k@ c #D40F09", "l@ c #DB100C", "m@ c #F3A299", "n@ c #F0847C", "o@ c #E20F0C", "p@ c #DC4642", "q@ c #D09692", "r@ c #D49996", "s@ c #D69C99", "t@ c #D89B98", "u@ c #D89C99", "v@ c #996B69", "w@ c #CCC1C1", "x@ c #858181", "y@ c #6E4E4E", "z@ c #C48483", "A@ c #EBA0A0", "B@ c #E78988", "C@ c #D14642", "D@ c #D47673", "E@ c #230201", "F@ c #121211", "G@ c #BDBDBD", "H@ c #C9C9C9", "I@ c #5A5A5A", "J@ c #121213", "K@ c #121312", "L@ c #131312", "M@ c #121313", "N@ c #131213", "O@ c #131212", "P@ c #393939", "Q@ c #D85755", "R@ c #D7322F", "S@ c #D70F0A", "T@ c #DF110C", "U@ c #F5ACA5", "V@ c #F7BBB5", "W@ c #E92B27", "X@ c #E71411", "Y@ c #D58E89", "Z@ c #D59B99", "`@ c #D79D9B", " # c #D79D9A", ".# c #D99F9C", "+# c #C68F8D", "@# c #9B706F", "## c #958887", "$# c #6D6565", "%# c #7B5656", "&# c #C08382", "*# c #E49E9C", "=# c #E99F9D", "-# c #EBA1A1", ";# c #E58381", "># c #C3130D", ",# c #BE4C47", "'# c #130101", ")# c #F9F9F9", "!# c #EBEBEB", "~# c #525252", "{# c #141313", "]# c #141314", "^# c #131314", "/# c #131414", "(# c #131413", "_# c #141414", ":# c #141413", "<# c #754C4B", "[# c #D63632", "}# c #D72622", "|# c #DF110B", "1# c #E7332E", "2# c #F8C2BC", "3# c #F7C6C3", "4# c #F38B86", "5# c #ED110E", "6# c #E55451", "7# c #D69F9C", "8# c #D8A09D", "9# c #D9A09D", "0# c #BF8A87", "a# c #956665", "b# c #704B4B", "c# c #956564", "d# c #B9817F", "e# c #D89493", "f# c #E59D9C", "g# c #ECA1A1", "h# c #E17471", "i# c #CB3E38", "j# c #702926", "k# c #1C1918", "l# c #E9E9E9", "m# c #A1A1A1", "n# c #989898", "o# c #5E5E5E", "p# c #151515", "q# c #151414", "r# c #151415", "s# c #141514", "t# c #151514", "u# c #141415", "v# c #141515", "w# c #151516", "x# c #161515", "y# c #151615", "z# c #8F4D4C", "A# c #D6312D", "B# c #D9100A", "C# c #E3120D", "D# c #F0746D", "E# c #F9C7C2", "F# c #F8CCC8", "G# c #F8CECC", "H# c #EB2B28", "I# c #F11613", "J# c #DC8D8A", "K# c #D7A29E", "L# c #D9A3A0", "M# c #DAA2A0", "N# c #DAA29F", "O# c #BC8885", "P# c #9D6F6E", "Q# c #966967", "R# c #A77573", "S# c #B17A79", "T# c #E39C9B", "U# c #E59E9D", "V# c #E99F9E", "W# c #ECA2A1", "X# c #883533", "Y# c #852723", "Z# c #E7DCDB", "`# c #B7B7B7", " $ c #505050", ".$ c #151616", "+$ c #161516", "@$ c #161615", "#$ c #161616", "$$ c #161617", "%$ c #161716", "&$ c #171616", "*$ c #161717", "=$ c #171617", "-$ c #C85352", ";$ c #DA3C39", ">$ c #DC100A", ",$ c #E5120E", "'$ c #F6A7A0", ")$ c #FBD9D6", "!$ c #F9D0CD", "~$ c #F9D5D2", "{$ c #F8A3A1", "]$ c #F41311", "^$ c #EF3E3B", "/$ c #D8A49F", "($ c #D9A4A0", "_$ c #DAA3A0", ":$ c #DAA09D", "<$ c #CE9592", "[$ c #AD7B7A", "}$ c #BE8684", "|$ c #C18886", "1$ c #D69492", "2$ c #E39D9C", "3$ c #E69F9E", "4$ c #AE8383", "5$ c #EDE4E4", "6$ c #F3F3F3", "7$ c #939393", "8$ c #171718", "9$ c #181717", "0$ c #171817", "a$ c #181718", "b$ c #181818", "c$ c #181817", "d$ c #171818", "e$ c #C84744", "f$ c #D62825", "g$ c #DE100C", "h$ c #E92722", "i$ c #FACDC6", "j$ c #FDE2DF", "k$ c #F9D3CE", "l$ c #F9D3CF", "m$ c #F9D2CE", "n$ c #F75350", "o$ c #F81312", "p$ c #E7716F", "q$ c #D8A39F", "r$ c #D9A4A1", "s$ c #DBA5A1", "t$ c #DAA09E", "u$ c #DA9F9C", "v$ c #CE9492", "w$ c #AD7A79", "x$ c #CA8E8D", "y$ c #D69593", "z$ c #8C5F5E", "A$ c #A98584", "B$ c #F0EDED", "C$ c #F0F0F0", "D$ c #DADADA", "E$ c #B5B5B5", "F$ c #888888", "G$ c #282828", "H$ c #181819", "I$ c #191818", "J$ c #181918", "K$ c #191819", "L$ c #191919", "M$ c #191918", "N$ c #181919", "O$ c #CE4744", "P$ c #D6201D", "Q$ c #E3120E", "R$ c #EF5D56", "S$ c #FACCC6", "T$ c #FDE1DE", "U$ c #FAD4D0", "V$ c #FAD0CB", "W$ c #FACAC6", "X$ c #F9BBB5", "Y$ c #F91F1D", "Z$ c #F91B1B", "`$ c #DF908D", " % c #D9A5A1", ".% c #D99D9A", "+% c #B68180", "@% c #C88D8C", "#% c #865A5A", "$% c #A28484", "%% c #8D8B8B", "&% c #191A19", "*% c #19191A", "=% c #1A1A19", "-% c #1A1919", ";% c #1A1A1A", ">% c #1A191A", ",% c #191A1A", "'% c #1A1A1B", ")% c #1B1A1A", "!% c #1A1B1B", "~% c #D25754", "{% c #DB2D29", "]% c #F4857C", "^% c #F9BEB6", "/% c #FAC8C0", "(% c #F76B63", "_% c #F73330", ":% c #FAC0B9", "<% c #F98A82", "[% c #FC1313", "}% c #F73130", "|% c #DA9F9B", "1% c #D8A5A0", "2% c #DAA19E", "3% c #D99E9B", "4% c #DA9E9B", "5% c #7A5452", "6% c #A18282", "7% c #DBDBDB", "8% c #978989", "9% c #5F1614", "0% c #1A0301", "a% c #081C04", "b% c #26501D", "c% c #28641B", "d% c #2A651C", "e% c #2B651D", "f% c #2C671D", "g% c #29531E", "h% c #24371E", "i% c #1B1C1B", "j% c #1B1B1A", "k% c #1B1B1B", "l% c #1A1B1A", "m% c #1C1B1B", "n% c #1B1B1C", "o% c #1C1C1B", "p% c #1B1C1C", "q% c #1C1C1C", "r% c #CE514F", "s% c #D8100A", "t% c #E4130E", "u% c #F8A096", "v% c #F9BAB1", "w% c #FAC2B9", "x% c #F7746D", "y% c #F51714", "z% c #F71513", "A% c #F95852", "B% c #FAC0B7", "C% c #FB504C", "D% c #FB1313", "E% c #F04B49", "F% c #E2AFAC", "G% c #D8A29F", "H% c #D8A19E", "I% c #D89E9C", "J% c #AF7B79", "K% c #968483", "L% c #B9B9B9", "M% c #9D9595", "N% c #8C5755", "O% c #901C07", "P% c #80A962", "Q% c #9AD58F", "R% c #7BC76B", "S% c #40B028", "T% c #38AD1D", "U% c #3BAE1F", "V% c #40B122", "W% c #71C55A", "X% c #9ED88E", "Y% c #93C086", "Z% c #283325", "`% c #1C1D1D", " & c #1C1D1C", ".& c #1C1C1D", "+& c #1D1C1C", "@& c #1D1D1C", "#& c #1D1D1D", "$& c #1D1C1D", "%& c #D06360", "&& c #DA120B", "*& c #E51C16", "=& c #F9AD9F", "-& c #F9B7AC", ";& c #F99E94", ">& c #F41713", ",& c #F51713", "'& c #F81513", ")& c #F9746D", "!& c #FAAFA4", "~& c #F92A28", "{& c #F81313", "]& c #E75E5B", "^& c #E1AEAC", "/& c #D6A09D", "(& c #D8A29E", "_& c #D79F9C", ":& c #D79C99", "<& c #85625F", "[& c #B7B5B4", "}& c #BBBBBB", "|& c #A09595", "1& c #865D5D", "2& c #B38879", "3& c #83C06F", "4& c #FCFCFC", "5& c #CAE7C4", "6& c #98D28D", "7& c #4DB338", "8& c #35AA1D", "9& c #38AB1E", "0& c #40AF25", "a& c #8FD07E", "b& c #BFE3B5", "c& c #EDF6EA", "d& c #B9DEAE", "e& c #293426", "f& c #1E1D1D", "g& c #1D1D1E", "h& c #1E1E1D", "i& c #1D1E1D", "j& c #1E1D1E", "k& c #1D1E1E", "l& c #1E1E1E", "m& c #CF6360", "n& c #E63229", "o& c #F7A7A4", "p& c #F9B0A4", "q& c #F23C35", "r& c #F31511", "s& c #F71512", "t& c #F81615", "u& c #F98278", "v& c #F99287", "w& c #F61815", "x& c #F31210", "y& c #E16863", "z& c #DEAAA7", "A& c #D49D9A", "B& c #D49D99", "C& c #D49B98", "D& c #D69B98", "E& c #805D5B", "F& c #A99D9C", "G& c #968887", "H& c #8A6060", "I& c #A06D6B", "J& c #67A74C", "K& c #A6D79E", "L& c #DAEBD7", "M& c #E6F0E4", "N& c #B4DCAC", "O& c #4DB039", "P& c #33A71B", "Q& c #36A81C", "R& c #39AA1F", "S& c #A8D89D", "T& c #D9ECD4", "U& c #EBF3E9", "V& c #C0E3B6", "W& c #70AB5E", "X& c #1F1F1F", "Y& c #1E1F1E", "Z& c #1F1E1F", "`& c #1F1E1E", " * c #1E1E1F", ".* c #1E1F1F", "+* c #1F1F1E", "@* c #201F1F", "#* c #1F1F20", "$* c #C8625F", "%* c #D9120B", "&* c #E84137", "** c #F68779", "=* c #EF1611", "-* c #F11511", ";* c #F31713", ">* c #F31612", ",* c #F51613", "'* c #F51411", ")* c #F51715", "!* c #F5776B", "~* c #F5665A", "{* c #F2130F", "]* c #F01511", "^* c #DD6A67", "/* c #DCA6A3", "(* c #D19996", "_* c #D19894", ":* c #D39895", "<* c #D59996", "[* c #D79996", "}* c #AB7674", "|* c #815858", "1* c #7D5453", "2* c #9F8369", "3* c #49AC3B", "4* c #83C67A", "5* c #B6DBB1", "6* c #E3F0E2", "7* c #DCF0D5", "8* c #D6F0CA", "9* c #D1EFC5", "0* c #D2ECC9", "a* c #EBF4EA", "b* c #CDE7C7", "c* c #A2D593", "d* c #79C660", "e* c #283A21", "f* c #20201F", "g* c #201F20", "h* c #202020", "i* c #1F2020", "j* c #212020", "k* c #212120", "l* c #202021", "m* c #212121", "n* c #202120", "o* c #202121", "p* c #BD615F", "q* c #DF3F3A", "r* c #E9483C", "s* c #FA9D8C", "t* c #EF453C", "u* c #EE1610", "v* c #F31613", "w* c #F21411", "x* c #F11A14", "y* c #F26356", "z* c #F14B40", "A* c #EC120F", "B* c #EA120F", "C* c #D9615D", "D* c #CC938F", "E* c #CF9491", "F* c #D09592", "G* c #D29592", "H* c #D39592", "I* c #D59693", "J* c #C38886", "K* c #A3706F", "L* c #828A55", "M* c #2C9E1D", "N* c #61B555", "O* c #94CA8C", "P* c #D7EDD0", "Q* c #B7EF98", "R* c #ACEC88", "S* c #CDEAC5", "T* c #92CD83", "U* c #7DC569", "V* c #5AB83F", "W* c #365D2B", "X* c #212122", "Y* c #222121", "Z* c #212221", "`* c #222222", " = c #212222", ".= c #222221", "+= c #222122", "@= c #973936", "#= c #E46561", "$= c #E94539", "%= c #F78A7B", "&= c #E41410", "*= c #EC1510", "== c #EF1411", "-= c #F11411", ";= c #F11310", ">= c #F21511", ",= c #EF1410", "'= c #E7130E", ")= c #E94335", "!= c #E72B23", "~= c #E6100C", "{= c #E3100C", "]= c #DF827F", "^= c #D69A97", "/= c #C98E89", "(= c #CB8E8B", "_= c #CD908D", ":= c #CF928F", "<= c #D1928F", "[= c #D3918F", "}= c #6E8E47", "|= c #249916", "1= c #2B9C1A", "2= c #40A430", "3= c #CAEBBE", "4= c #A6E883", "5= c #CCECC0", "6= c #3BA71F", "7= c #3EAA20", "8= c #41AC22", "9= c #356C25", "0= c #232222", "a= c #222322", "b= c #222223", "c= c #222323", "d= c #232322", "e= c #232223", "f= c #232323", "g= c #5B0503", "h= c #E36561", "i= c #E73F33", "j= c #E9514B", "k= c #E0120C", "l= c #EA1510", "m= c #ED1611", "n= c #EE1510", "o= c #EE1310", "p= c #ED120F", "q= c #EB110E", "r= c #E9100C", "s= c #E2110A", "t= c #DF281D", "u= c #DF1F17", "v= c #DA0F08", "w= c #DA645F", "x= c #D2908D", "y= c #C67975", "z= c #C88986", "A= c #CA8B88", "B= c #CE8C89", "C= c #D08C88", "D= c #748F49", "E= c #1F9510", "F= c #209511", "G= c #239713", "H= c #B9E5AB", "I= c #A0E37F", "J= c #C8EABD", "K= c #38A51E", "L= c #3EA921", "M= c #336922", "N= c #242424", "O= c #242324", "P= c #242423", "Q= c #232324", "R= c #232424", "S= c #232423", "T= c #242323", "U= c #242524", "V= c #252524", "W= c #242425", "X= c #252424", "Y= c #2C0301", "Z= c #E16561", "`= c #DE3D36", " - c #DC3D38", ".- c #E4150D", "+- c #E6150E", "@- c #EB140F", "#- c #EA140F", "$- c #E9130E", "%- c #E7120E", "&- c #E4110C", "*- c #DC0F08", "=- c #DA1B11", "-- c #D21009", ";- c #D20E08", ">- c #D10E08", ",- c #D5504C", "'- c #CF807B", ")- c #CE8F8C", "!- c #C38380", "~- c #C68380", "{- c #C78381", "]- c #C7827F", "^- c #6F8A45", "/- c #1D9210", "(- c #1F9210", "_- c #219311", ":- c #B7E3AA", "<- c #9AE17B", "[- c #C5E9BB", "}- c #37A21D", "|- c #39A51E", "1- c #3CA720", "2- c #336923", "3- c #252525", "4- c #252425", "5- c #242525", "6- c #252526", "7- c #262525", "8- c #252625", "9- c #252626", "0- c #262526", "a- c #030000", "b- c #D66560", "c- c #DD4A45", "d- c #DA3632", "e- c #DC110A", "f- c #E3150D", "g- c #E5170D", "h- c #E7140D", "i- c #E7140F", "j- c #E6130E", "k- c #E6120E", "l- c #E4120E", "m- c #E2110C", "n- c #DF0F0C", "o- c #DD0F0B", "p- c #DB0F0A", "q- c #D30D08", "r- c #CF0D07", "s- c #C90C07", "t- c #D0413D", "u- c #CB5E5A", "v- c #D08482", "w- c #BC7B77", "x- c #BD7875", "y- c #BE7977", "z- c #688540", "A- c #1B8F0E", "B- c #1E8F0F", "C- c #1F9110", "D- c #B4E2A8", "E- c #94DD77", "F- c #94DE77", "G- c #C2E8B7", "H- c #34A01C", "I- c #3AA41E", "J- c #326924", "K- c #262625", "L- c #262726", "M- c #262727", "N- c #272626", "O- c #262627", "P- c #272727", "Q- c #272627", "R- c #272726", "S- c #9B3A36", "T- c #E06660", "U- c #D7312D", "V- c #DC120A", "W- c #DF130A", "X- c #E1150D", "Y- c #E2150D", "Z- c #E0140D", "`- c #E0110B", " ; c #DE110B", ".; c #DC100B", "+; c #DA0F0A", "@; c #D80E09", "#; c #D50D08", "$; c #CF0E08", "%; c #CB0C07", "&; c #C80C07", "*; c #C20A06", "=; c #C10A05", "-; c #BC0A04", ";; c #C4332E", ">; c #C1342F", ",; c #CD6864", "'; c #CE8A87", "); c #B56E6B", "!; c #6E934F", "~; c #1A8C0D", "{; c #1C8E0E", "]; c #1E8E10", "^; c #B2E0A7", "/; c #8EDA73", "(; c #BEE6B4", "_; c #329D1A", ":; c #359F1C", "<; c #38A21D", "[; c #316823", "}; c #272827", "|; c #272728", "1; c #282727", "2; c #272828", "3; c #282728", "4; c #282827", "5; c #DC6660", "6; c #D5302C", "7; c #D5110A", "8; c #D8110A", "9; c #DA110A", "0; c #DB110A", "a; c #D51009", "b; c #D31009", "c; c #D00E08", "d; c #C90D08", "e; c #C60A07", "f; c #C20A05", "g; c #BF0A05", "h; c #BB0905", "i; c #B50904", "j; c #B10904", "k; c #AF0804", "l; c #AD0803", "m; c #B32521", "n; c #BE3A38", "o; c #C85C59", "p; c #686C28", "q; c #19890C", "r; c #1A8A0E", "s; c #1C8B0F", "t; c #B0E0A5", "u; c #87D86E", "v; c #BCE5B2", "w; c #309A19", "x; c #339C1B", "y; c #306824", "z; c #282829", "A; c #292828", "B; c #282928", "C; c #282929", "D; c #292928", "E; c #292829", "F; c #29292A", "G; c #B6635F", "H; c #D2352F", "I; c #CC0F07", "J; c #D01007", "K; c #D20F08", "L; c #D10F08", "M; c #CE0D07", "N; c #C60C07", "O; c #C40A06", "P; c #C00A05", "Q; c #BD0905", "R; c #B90905", "S; c #B60904", "T; c #B10903", "U; c #AC0903", "V; c #A60703", "W; c #B22723", "X; c #AE120E", "Y; c #AE0C09", "Z; c #A30603", "`; c #9A0603", " > c #534A07", ".> c #17870C", "+> c #19870D", "@> c #1B880E", "#> c #ADDFA3", "$> c #82D56B", "%> c #B8E3AF", "&> c #2E9818", "*> c #319A1A", "=> c #349D1B", "-> c #316623", ";> c #292A2A", ">> c #2A2A29", ",> c #2A292A", "'> c #292A29", ")> c #2A2A2A", "!> c #2B2A2A", "~> c #2A2B2A", "{> c #2A2A2B", "]> c #2A2B2B", "^> c #2B2A2B", "/> c #3D3D3D", "(> c #B7A7A7", "_> c #B9130C", ":> c #C60D06", "<> c #C50E06", "[> c #C70E06", "}> c #C50C07", "|> c #C30C07", "1> c #BD0A05", "2> c #BC0905", "3> c #B90904", "4> c #B80905", "5> c #B20903", "6> c #AF0903", "7> c #A50703", "8> c #A20703", "9> c #9E0703", "0> c #990703", "a> c #940602", "b> c #A81D1A", "c> c #A41916", "d> c #A11916", "e> c #545310", "f> c #15840B", "g> c #17850C", "h> c #1A860D", "i> c #ACDEA2", "j> c #7ED267", "k> c #7ED268", "l> c #B5E2AC", "m> c #2D9518", "n> c #2F9819", "o> c #329B1B", "p> c #316724", "q> c #2B2B2B", "r> c #2B2B2A", "s> c #2C2B2B", "t> c #2B2C2B", "u> c #2C2B2C", "v> c #2C2C2B", "w> c #2B2B2C", "x> c #2B2C2C", "y> c #A7A7A7", "z> c #6A6A6A", "A> c #653938", "B> c #B20C06", "C> c #BB0D06", "D> c #BA0D06", "E> c #B90B04", "F> c #B70A04", "G> c #B40A04", "H> c #B30903", "I> c #AF0803", "J> c #AE0803", "K> c #AB0703", "L> c #A90803", "M> c #9D0703", "N> c #9A0703", "O> c #950603", "P> c #910602", "Q> c #8D0602", "R> c #880602", "S> c #860602", "T> c #800502", "U> c #454906", "V> c #13810A", "W> c #16820B", "X> c #17840D", "Y> c #AADDA0", "Z> c #79D064", "`> c #B3E1A9", " , c #2A9317", "., c #309819", "+, c #2C2C2C", "@, c #2D2C2C", "#, c #2C2C2D", "$, c #2C2D2C", "%, c #2C2D2D", "&, c #2D2D2C", "*, c #2D2D2D", "=, c #2D2C2D", "-, c #787878", ";, c #707070", ">, c #4E4E4E", ",, c #210201", "', c #990903", "), c #C23B36", "!, c #AE0A04", "~, c #AC0A04", "{, c #AA0803", "], c #A80803", "^, c #A70803", "/, c #A30B06", "(, c #8F2E16", "_, c #663C0A", ":, c #4C4702", "<, c #4A4602", "[, c #474603", "}, c #464503", "|, c #454604", "1, c #424604", "2, c #434605", "3, c #454605", "4, c #444605", "5, c #286407", "6, c #127F09", "7, c #14800B", "8, c #16810C", "9, c #A8DCA0", "0, c #74CD61", "a, c #75CD61", "b, c #B0DFA8", "c, c #299115", "d, c #2B9317", "e, c #2E9618", "f, c #30801D", "g, c #316824", "h, c #336A25", "i, c #346B26", "j, c #366B27", "k, c #376D28", "l, c #396E28", "m, c #3B6F29", "n, c #3C712A", "o, c #3E732B", "p, c #426633", "q, c #44543E", "r, c #2F312F", "s, c #2D2E2E", "t, c #2D2D2E", "u, c #2D2E2D", "v, c #2E2D2E", "w, c #2E2E2E", "x, c #2E2E2D", "y, c #5B5B5B", "z, c #7F7F7F", "A, c #575757", "B, c #773A38", "C, c #B43C37", "D, c #A60903", "E, c #A40803", "F, c #A10703", "G, c #9F0703", "H, c #992C1C", "I, c #80A269", "J, c #51A951", "K, c #2E962E", "L, c #048003", "M, c #037C01", "N, c #047B02", "O, c #067B03", "P, c #087A03", "Q, c #087904", "R, c #0A7A05", "S, c #0C7A06", "T, c #0D7A07", "U, c #0F7B08", "V, c #117B09", "W, c #137D0A", "X, c #147E0B", "Y, c #A7DB9F", "Z, c #72CB5E", "`, c #72CC5E", " ' c #72CC5F", ".' c #73CC5F", "+' c #AEDEA5", "@' c #288F14", "#' c #2A9016", "$' c #2C9417", "%' c #2F9618", "&' c #32991A", "*' c #359C1B", "=' c #389F1E", "-' c #3BA120", ";' c #3EA521", ">' c #41A923", ",' c #45AB24", "'' c #48AE26", ")' c #4EB32B", "!' c #6CC14E", "~' c #87CC6C", "{' c #93C082", "]' c #485143", "^' c #2F2F2F", "/' c #2F2E2F", "(' c #2E2F2E", "_' c #2E2F2F", ":' c #2F302F", "<' c #302F2F", "[' c #2F2F30", "}' c #30302F", "|' c #3B3B3B", "1' c #606060", "2' c #323232", "3' c #3A3232", "4' c #643331", "5' c #933330", "6' c #9C0703", "7' c #9C0704", "8' c #9B0704", "9' c #922211", "0' c #6EAF67", "a' c #88C488", "b' c #66B266", "c' c #44A044", "d' c #037D03", "e' c #027A01", "f' c #037802", "g' c #057703", "h' c #067703", "i' c #077704", "j' c #097705", "k' c #0B7706", "l' c #0C7806", "m' c #0E7907", "n' c #0F7908", "o' c #127B09", "p' c #137C0A", "q' c #A4DA9B", "r' c #6ECA5B", "s' c #6FCA5B", "t' c #6FCA5C", "u' c #6FCB5C", "v' c #70CB5C", "w' c #A9DC9F", "x' c #268D14", "y' c #299015", "z' c #2B9116", "A' c #2E9418", "B' c #309719", "C' c #339A1B", "D' c #369E1C", "E' c #39A01F", "F' c #3DA320", "G' c #3FA622", "H' c #42A923", "I' c #46AD25", "J' c #4BB129", "K' c #79C55F", "L' c #93D07B", "M' c #ABDC99", "N' c #98D081", "O' c #404A3C", "P' c #303030", "Q' c #303130", "R' c #313031", "S' c #313030", "T' c #303031", "U' c #313130", "V' c #303131", "W' c #313131", "X' c #494949", "Y' c #474747", "Z' c #372D2D", "`' c #512E2C", " ) c #6C322F", ".) c #498737", "+) c #58AC58", "@) c #7ABC7A", "#) c #7CBC7C", "$) c #55A655", "%) c #007800", "&) c #017700", "*) c #037601", "=) c #047602", "-) c #057502", ";) c #067503", ">) c #087504", ",) c #0A7505", "') c #0B7506", ")) c #0D7606", "!) c #0E7807", "~) c #107809", "{) c #127A0A", "]) c #9FD796", "^) c #6AC758", "/) c #6BC859", "() c #6CC859", "_) c #A3DA99", ":) c #258B13", "<) c #278D14", "[) c #2C9217", "}) c #2F9518", "|) c #31971A", "1) c #349B1B", "2) c #379E1D", "3) c #3AA11F", "4) c #41A922", "5) c #44AB24", "6) c #47AE25", "7) c #83C76B", "8) c #9FD48C", "9) c #A1D78C", "0) c #8FD275", "a) c #6DAB53", "b) c #323332", "c) c #313132", "d) c #323131", "e) c #323132", "f) c #323231", "g) c #313232", "h) c #313231", "i) c #8A8A8A", "j) c #747474", "k) c #7D7D7D", "l) c #454545", "m) c #0F250F", "n) c #209320", "o) c #42A142", "p) c #64AF64", "q) c #98CA98", "r) c #B1D9AF", "s) c #A6D6A2", "t) c #A4D69F", "u) c #A3D69E", "v) c #A2D69D", "w) c #A1D69D", "x) c #A1D69B", "y) c #9FD69A", "z) c #9ED698", "A) c #9ED597", "B) c #9ED596", "C) c #9DD595", "D) c #9CD594", "E) c #80CD72", "F) c #67C656", "G) c #68C757", "H) c #69C757", "I) c #69C857", "J) c #69C858", "K) c #81CF71", "L) c #9FD895", "M) c #A2D999", "N) c #A4DA9C", "O) c #A7DB9E", "P) c #A9DCA1", "Q) c #ACDDA4", "R) c #AFDEA7", "S) c #B1E0AA", "T) c #B4E0AD", "U) c #B6E1B1", "V) c #B9E2B4", "W) c #BDE3B8", "X) c #CCE9C8", "Y) c #B4DCAF", "Z) c #AED9A0", "`) c #91D07B", " ! c #7FCB62", ".! c #6DC848", "+! c #3A4A34", "@! c #323333", "#! c #323233", "$! c #333233", "%! c #333332", "&! c #727272", "*! c #343433", "=! c #343333", "-! c #548354", ";! c #098609", ">! c #2A932A", ",! c #4FA34F", "'! c #ADD7AA", ")! c #60B954", "!! c #59B64D", "~! c #59B84D", "{! c #59B94D", "]! c #59BA4D", "^! c #59BB4D", "/! c #59BC4D", "(! c #5ABD4E", "_! c #5CBE4E", ":! c #5DBF4F", "~ c #007600", ",~ c #84C380", "'~ c #4FB045", ")~ c #4FB245", "!~ c #4FB345", "~~ c #4FB545", "{~ c #4FB645", "]~ c #4FB845", "^~ c #50B945", "/~ c #52BA46", "(~ c #54BB47", "_~ c #56BC48", ":~ c #58BD4A", "<~ c #5ABF4B", "[~ c #5CC04C", "}~ c #5EC14D", "|~ c #60C24E", "1~ c #61C34E", "2~ c #62C44F", "3~ c #63C450", "4~ c #64C550", "5~ c #65C550", "6~ c #61C34F", "7~ c #6EC85E", "8~ c #8BD37F", "9~ c #85CD7C", "0~ c #6CC165", "a~ c #1B9A15", "b~ c #089104", "c~ c #038E01", "d~ c #008A00", "e~ c #008600", "f~ c #68B462", "g~ c #4BB427", "h~ c #4FB82A", "i~ c #53BC2C", "j~ c #477A32", "k~ c #363637", "l~ c #363736", "m~ c #373737", "n~ c #373636", "o~ c #373637", "p~ c #363737", "q~ c #373736", "r~ c #007E00", "s~ c #007900", "t~ c #007400", "u~ c #7EC07A", "v~ c #4BAD42", "w~ c #4BAE42", "x~ c #4BB042", "y~ c #4BB142", "z~ c #4BB342", "A~ c #4BB542", "B~ c #4DB643", "C~ c #4FB744", "D~ c #51B845", "E~ c #53BA46", "F~ c #56BB48", "G~ c #58BC49", "H~ c #5ABE4A", "I~ c #5CBF4B", "J~ c #5EC04C", "K~ c #60C14D", "L~ c #61C24E", "M~ c #62C34E", "N~ c #63C34F", "O~ c #64C34F", "P~ c #64C44F", "Q~ c #66C351", "R~ c #80CE6F", "S~ c #90D483", "T~ c #86CF79", "U~ c #69C15D", "V~ c #2DA41E", "W~ c #1C9D0F", "X~ c #16990C", "Y~ c #109508", "Z~ c #0A9205", "`~ c #058F02", " { c #008B00", ".{ c #008200", "+{ c #63B25E", "@{ c #4AB327", "#{ c #4DB629", "${ c #51BB2B", "%{ c #373837", "&{ c #373838", "*{ c #373738", "={ c #383838", "-{ c #383738", ";{ c #383737", ">{ c #383837", ",{ c #383839", "'{ c #393838", "){ c #1C5D1C", "!{ c #007D00", "~{ c #007700", "{{ c #007200", "]{ c #7ABD76", "^{ c #46AA3F", "/{ c #46AB3F", "({ c #46AD3F", "_{ c #46AF3F", ":{ c #46B13F", "<{ c #46B23F", "[{ c #49B440", "}{ c #50B844", "|{ c #52BA45", "1{ c #55BB47", "2{ c #57BD48", "3{ c #5ABE49", "4{ c #5EC04B", "5{ c #5FC14C", "6{ c #69C557", "7{ c #7FCE6D", "8{ c #82CF72", "9{ c #7FCC6D", "0{ c #7ACB69", "a{ c #76C864", "b{ c #57BA42", "c{ c #33AA1A", "d{ c #2EA818", "e{ c #2AA516", "f{ c #25A214", "g{ c #209F11", "h{ c #1A9B0D", "i{ c #13970A", "j{ c #0C9306", "k{ c #068F03", "l{ c #008C00", "m{ c #008700", "n{ c #5FB05A", "o{ c #48B226", "p{ c #4CB528", "q{ c #50BA2A", "r{ c #457C32", "s{ c #393839", "t{ c #393938", "u{ c #383939", "v{ c #393A39", "w{ c #3A3939", "x{ c #3A393A", "y{ c #3A3A3A", "z{ c #39393A", "A{ c #3A3A39", "B{ c #393A3A", "C{ c #245325", "D{ c #007500", "E{ c #007100", "F{ c #5CA65C", "G{ c #0C840B", "H{ c #118A0F", "I{ c #169014", "J{ c #1B9618", "K{ c #219A1E", "L{ c #28A124", "M{ c #31A72C", "N{ c #3AAC32", "O{ c #48B240", "P{ c #52B747", "Q{ c #55B947", "R{ c #55B946", "S{ c #56BA47", "T{ c #59BB47", "U{ c #5CBD4A", "V{ c #68C155", "W{ c #5DBE48", "X{ c #42B229", "Y{ c #3BB01F", "Z{ c #3CB020", "`{ c #3CB01F", " ] c #3AAF1E", ".] c #37AD1D", "+] c #33AA1B", "@] c #29A516", "#] c #23A112", "$] c #15980B", "%] c #0D9407", "&] c #079003", "*] c #6DBA63", "=] c #46B125", "-] c #4AB427", ";] c #4EB929", ">] c #426A35", ",] c #3A3A3B", "'] c #3B3A3A", ")] c #3A3B3B", "!] c #3B3A3B", "~] c #3B3B3A", "{] c #3A3B3A", "]] c #314630", "^] c #006F00", "/] c #1F7D1F", "(] c #549F54", "_] c #4DA14D", ":] c #4CA24C", "<] c #4CA44C", "[] c #4CA54C", "}] c #4DA74C", "|] c #50A94D", "1] c #52AA4F", "2] c #54AB50", "3] c #58AD52", "4] c #5BB054", "5] c #5EB256", "6] c #62B457", "7] c #64B559", "8] c #4AB038", "9] c #33AB1B", "0] c #3EB221", "a] c #41B322", "b] c #42B423", "c] c #58BA3F", "d] c #72C05F", "e] c #71C05F", "f] c #70C05F", "g] c #6EBE5D", "h] c #6BBD5B", "i] c #69BC5A", "j] c #66BA58", "k] c #62B856", "l] c #5EB755", "m] c #5AB452", "n] c #57B251", "o] c #54B14F", "p] c #55B050", "q] c #68B75D", "r] c #55B43A", "s] c #45B025", "t] c #49B426", "u] c #4CB828", "v] c #3E5039", "w] c #3C3B3B", "x] c #3C3C3B", "y] c #3B3C3C", "z] c #3B3B3C", "A] c #3B3C3B", "B] c #3C3B3C", "C] c #3C3C3C", "D] c #106D10", "E] c #006E00", "F] c #006900", "G] c #006500", "H] c #006300", "I] c #006100", "J] c #005F00", "K] c #016000", "L] c #016001", "M] c #036101", "N] c #046202", "O] c #066403", "P] c #076503", "Q] c #086704", "R] c #64B656", "S] c #40B222", "T] c #43B424", "U] c #46B625", "V] c #47B726", "W] c #71C05D", "X] c #197D0D", "Y] c #1B7F0E", "Z] c #1E820F", "`] c #208510", " ^ c #228912", ".^ c #278F14", "+^ c #299216", "@^ c #2D9517", "#^ c #329C1A", "$^ c #369F1C", "%^ c #39A31D", "&^ c #3CA820", "*^ c #40AB21", "=^ c #43AF24", "-^ c #47B326", ";^ c #47972E", ">^ c #3C3C3D", ",^ c #3D3C3D", "'^ c #3D3C3C", ")^ c #3D3D3C", "!^ c #3C3D3D", "~^ c #3C3D3C", "{^ c #3D3E3D", "]^ c #374437", "^^ c #057205", "/^ c #006700", "(^ c #006000", "_^ c #005E00", ":^ c #005D00", "<^ c #005C00", "[^ c #015F01", "}^ c #025F01", "|^ c #056202", "1^ c #60B452", "2^ c #3FB221", "3^ c #44B524", "4^ c #48B726", "5^ c #4BB928", "6^ c #4DBA29", "7^ c #71C05A", "8^ c #177B0C", "9^ c #1A7F0D", "0^ c #1C810E", "a^ c #1E8410", "b^ c #218811", "c^ c #238A12", "d^ c #268E14", "e^ c #299116", "f^ c #2B9517", "g^ c #309B19", "h^ c #349E1B", "i^ c #38A31E", "j^ c #3FAA21", "k^ c #42AF23", "l^ c #44A827", "m^ c #3E4A3B", "n^ c #3E3E3D", "o^ c #3D3D3E", "p^ c #3E3D3E", "q^ c #3D3E3E", "r^ c #3F3E3E", "s^ c #3E3E3F", "t^ c #3E3F3E", "u^ c #3F3E3F", "v^ c #3F3F3E", "w^ c #384437", "x^ c #0F620F", "y^ c #006600", "z^ c #005B00", "A^ c #005A00", "B^ c #015D01", "C^ c #035F01", "D^ c #046002", "E^ c #056203", "F^ c #5EB34F", "G^ c #4CBA28", "H^ c #50BC2A", "I^ c #52BE2C", "J^ c #70C158", "K^ c #197E0D", "L^ c #1B810E", "M^ c #1D840F", "N^ c #1F8711", "O^ c #228A12", "P^ c #258D14", "Q^ c #279015", "R^ c #2A9416", "S^ c #2D9717", "T^ c #339E1A", "U^ c #36A21D", "V^ c #39A61E", "W^ c #3DAA20", "X^ c #40912A", "Y^ c #3F4B3B", "Z^ c #3F403F", "`^ c #403F40", " / c #403F3F", "./ c #40403F", "+/ c #3F4040", "@/ c #3F3F40", "#/ c #334833", "$/ c #254F24", "%/ c #1B531B", "&/ c #1A521A", "*/ c #1A531A", "=/ c #1B551A", "-/ c #0D5B0C", ";/ c #056102", ">/ c #056303", ",/ c #5AB14A", "'/ c #3DB120", ")/ c #4BB927", "!/ c #55BF2D", "~/ c #58C12F", "{/ c #70C155", "]/ c #16790B", "^/ c #187D0D", "// c #1A800E", "(/ c #24761A", "_/ c #2F6726", ":/ c #306828", "( c #444544", ",( c #454445", "'( c #1C551C", ")( c #015A00", "!( c #015C01", "~( c #45A636", "{( c #35AC1C", "]( c #51BD2B", "^( c #5AC230", "/( c #63C835", "(( c #6EC24C", "_( c #117809", ":( c #147C0A", "<( c #167F0B", "[( c #454546", "}( c #464546", "|( c #454645", "1( c #464545", "2( c #464645", "3( c #464646", "4( c #454646", "5( c #1D541D", "6( c #3CA130", "7( c #2FA819", "8( c #49B826", "9( c #59C230", "0( c #62BC44", "a( c #127C0A", "b( c #157F0B", "c( c #2D6928", "d( c #464647", "e( c #474646", "f( c #474647", "g( c #464746", "h( c #464747", "i( c #474746", "j( c #474748", "k( c #484847", "l( c #484747", "m( c #1D551D", "n( c #329D28", "o( c #26A314", "p( c #2DA718", "q( c #34AB1B", "r( c #50B238", "s( c #0F7808", "t( c #127C09", "u( c #147F0B", "v( c #2E6928", "w( c #484748", "x( c #484848", "y( c #474848", "z( c #484849", "A( c #494848", "B( c #494948", "C( c #484948", "D( c #484949", "E( c #494849", "F( c #1E561E", "G( c #015F00", "H( c #26951F", "I( c #1C9C0E", "J( c #22A012", "K( c #28A415", "L( c #2DA717", "M( c #30A919", "N( c #3DA62B", "O( c #0F7A07", "P( c #107D09", "Q( c #4A494A", "R( c #49494A", "S( c #4A4949", "T( c #4A4A49", "U( c #494A4A", "V( c #494A49", "W( c #1B9018", "X( c #0F9508", "Y( c #14980A", "Z( c #199B0D", "`( c #1D9D0F", " _ c #1F9E10", "._ c #2B9C1F", "+_ c #0E7B07", "@_ c #107E08", "#_ c #138209", "$_ c #2E6A28", "%_ c #4B4A4A", "&_ c #4B4B4A", "*_ c #4A4B4A", "=_ c #4A4A4B", "-_ c #4A4B4B", ";_ c #4B4B4B", ">_ c #4B4A4B", ",_ c #4B4C4B", "'_ c #1F581F", ")_ c #006200", "!_ c #0F890F", "~_ c #048E02", "{_ c #079004", "]_ c #0D9307", "^_ c #199415", "/_ c #0D7C07", "(_ c #0F7F08", "__ c #118309", ":_ c #2E6B29", "<_ c #4B4B4C", "[_ c #4B4C4C", "}_ c #4C4C4B", "|_ c #4C4B4B", "1_ c #4C4C4C", "2_ c #4C4B4C", "3_ c #4C4C4D", "4_ c #4D4D4C", "5_ c #2C572C", "6_ c #196D0E", "7_ c #367B19", "8_ c #378D1C", "9_ c #008800", "0_ c #2F8E2D", "a_ c #307E2B", "b_ c #1F7B19", "c_ c #157E0E", "d_ c #376432", "e_ c #4C4D4C", "f_ c #4C4D4D", "g_ c #4D4D4D", "h_ c #4D4C4C", "i_ c #4D4C4D", "j_ c #4E4D4D", "k_ c #4D4D4E", "l_ c #4D4E4D", "m_ c #4D4E4E", "n_ c #4E4D4E", "o_ c #3E533E", "p_ c #126C0A", "q_ c #327D19", "r_ c #528B23", "s_ c #709A28", "t_ c #40901A", "u_ c #077F06", "v_ c #078106", "w_ c #088207", "x_ c #439542", "y_ c #508F4D", "z_ c #378233", "A_ c #227C1D", "B_ c #167F0F", "C_ c #425942", "D_ c #4E4E4D", "E_ c #4E4F4E", "F_ c #4E4F4F", "G_ c #4E4E4F", "H_ c #4F4E4F", "I_ c #4F4E4E", "J_ c #4F4F4F", "K_ c #4F4F4E", "L_ c #4F504F", "M_ c #27711C", "N_ c #4A8C21", "O_ c #6C9A28", "P_ c #86A52A", "Q_ c #659B28", "R_ c #097704", "S_ c #037701", "T_ c #047902", "U_ c #158212", "V_ c #79A878", "W_ c #559253", "X_ c #388435", "Y_ c #227E1D", "Z_ c #22751E", "`_ c #504F4F", " : c #4F5050", ".: c #4F4F50", "+: c #50504F", "@: c #504F50", "#: c #495747", "$: c #569624", "%: c #8CAE2D", "&: c #77A72B", "*: c #539B25", "=: c #108009", "-: c #027B01", ";: c #047D02", ">: c #228C20", ",: c #7DAC7C", "': c #579656", "): c #398836", "!: c #267F22", "~: c #495548", "{: c #505051", "]: c #515050", "^: c #505150", "/: c #515151", "(: c #505151", "_: c #515150", ":: c #515051", "<: c #515152", "[: c #515251", "}: c #525151", "|: c #525251", "1: c #4E5B49", "2: c #79A730", "3: c #67A92B", "4: c #409A20", "5: c #0F8508", "6: c #018000", "7: c #038201", "8: c #30982E", "9: c #81B480", "0: c #5A9D58", "a: c #438341", "b: c #4C584B", "c: c #525152", "d: c #515252", "e: c #535252", "f: c #525253", "g: c #535353", "h: c #525352", "i: c #535253", "j: c #525353", "k: c #525452", "l: c #516649", "m: c #42703A", "n: c #296D29", "o: c #296D28", "p: c #2A6F2A", "q: c #317230", "r: c #567E56", "s: c #596C59", "t: c #525453", "u: c #535352", "v: c #535354", "w: c #545353", "x: c #535453", "y: c #535454", "z: c #545354", "A: c #545454", "B: c #545453", "C: c #545555", "D: c #545455", "E: c #545554", "F: c #555454", "G: c #555455", "H: c #555554", "I: c #555555", "J: c #555655", "K: c #565555", "L: c #555556", "M: c #565655", "N: c #565556", "O: c #565656", "P: c #555656", "Q: c #565756", "R: c #575756", "S: c #565657", "T: c #575656", "U: c #575657", "V: c #565757", "W: c #575758", "X: c #575857", "Y: c #585857", "Z: c #585757", "`: c #585758", " < c #575858", ".< c #585858", "+< c #585958", "@< c #595859", "#< c #585859", "$< c #585959", "%< c #595858", "&< c #595958", "*< c #595959", "=< c #5A5959", "-< c #59595A", ";< c #595A5A", ">< c #595A59", ",< c #5A5A59", "'< c #5A595A", ")< c #5A5A5B", "!< c #5B5A5B", "~< c #5A5B5A", "{< c #5B5A5A", "]< c #5B5B5A", "^< c #5A5B5B", "/< c #5C5B5B", "(< c #5B5C5B", "_< c #5B5B5C", ":< c #5C5C5B", "<< c #5B5C5C", "[< c #5C5C5C", "}< c #5C5B5C", "|< c #5C5D5C", "1< c #5C5C5D", "2< c #5D5C5C", "3< c #5D5D5C", "4< c #5C5D5D", "5< c #5D5D5D", "6< c #5D5C5D", "7< c #5D5E5D", "8< c #5D5D5E", "9< c #5E5D5D", "0< c #5E5D5E", "a< c #5E5E5D", "b< c #5D5E5E", "c< c #5E5F5E", "d< c #5E5E5F", "e< c #5F5F5F", "f< c #5F5E5E", "g< c #5F5E5F", "h< c #5F5F5E", "i< c #5E5F5F", "j< c #5F5F60", "k< c #5F605F", "l< c #605F5F", "m< c #605F60", "n< c #60605F", "o< c #5F6060", "p< c #616060", "q< c #606061", "r< c #606160", "s< c #616161", "t< c #606161", "u< c #616160", "v< c #616061", "w< c #616162", "x< c #626161", "y< c #616261", "z< c #626261", "A< c #626262", "B< c #626162", "C< c #616262", "D< c #626363", "E< c #636262", "F< c #626263", "G< c #636263", "H< c #626362", "I< c #636362", "J< c #636363", "K< c #646363", "L< c #636364", "M< c #636463", "N< c #636464", "O< c #646364", "P< c #646464", "Q< c #646463", "R< c #646465", "S< c #656464", "T< c #646564", "U< c #656564", "V< c #656465", "W< c #646565", "X< c #656566", "Y< c #656665", "Z< c #666565", "`< c #666665", " [ c #666566", ".[ c #656666", "+[ c #666667", "@[ c #666767", "#[ c #666766", "$[ c #676667", "%[ c #676766", "&[ c #676666", "*[ c #676768", "=[ c #676867", "-[ c #686767", ";[ c #686867", ">[ c #686768", ",[ c #676868", "'[ c #686868", ")[ c #686969", "![ c #686869", "~[ c #686968", "{[ c #696869", "][ c #696968", "^[ c #696969", "/[ c #696868", "([ c #6A6969", "_[ c #696A69", ":[ c #69696A", "<[ c #6A696A", "[[ c #6A6A69", "}[ c #696A6A", "|[ c #6B6A6A", "1[ c #6A6A6B", "2[ c #6A6B6A", "3[ c #6B6B6A", "4[ c #6B6B6B", "5[ c #6A6B6B", "6[ c #6B6A6B", "7[ c #6C6B6B", "8[ c #6B6B6C", "9[ c #6C6C6B", "0[ c #6B6C6C", "a[ c #6B6C6B", "b[ c #6C6B6C", "c[ c #6C6C6C", "d[ c #6D6C6C", "e[ c #6C6C6D", "f[ c #6C6D6C", "g[ c #6D6D6C", "h[ c #6D6D6D", "i[ c #6D6C6D", "j[ c #6C6D6D", "k[ c #6D6E6D", "l[ c #6D6D6E", "m[ c #6E6D6D", "n[ c #6E6E6D", "o[ c #6D6E6E", "p[ c #6E6D6E", "q[ c #6E6F6E", "r[ c #6F6E6E", "s[ c #6E6E6F", "t[ c #6F6F6E", "u[ c #6E6F6F", "v[ c #6F6F6F", "w[ c #6F6E6F", "x[ c #6F6F70", "y[ c #6F706F", "z[ c #70706F", "A[ c #706F6F", "B[ c #6F7070", "C[ c #706F70", "D[ c #717070", "E[ c #707170", "F[ c #707071", "G[ c #717170", "H[ c #707171", "I[ c #717071", "J[ c #717171", "K[ c #717172", "L[ c #727171", "M[ c #727271", "N[ c #727172", "O[ c #717271", "P[ c #717272", "Q[ c #727372", "R[ c #737272", "S[ c #727273", "T[ c #737273", "U[ c #727373", "V[ c #737372", "W[ c #737373", "X[ c #747373", "Y[ c #747473", "Z[ c #737374", "`[ c #737474", " } c #737473", ".} c #747374", "+} c #747475", "@} c #757474", "#} c #757475", "$} c #747574", "%} c #757575", "&} c #757574", "*} c #747575", "=} c #757576", "-} c #757675", ";} c #767575", ">} c #767675", ",} c #757676", "'} c #767676", ")} c #767576", "!} c #777677", "~} c #767776", "{} c #767677", "]} c #777676", "^} c #777777", "/} c #777776", "(} c #767777", "_} c #777877", ":} c #777778", "<} c #787777", "[} c #787877", "}} c #787778", "|} c #777878", "1} c #797878", "2} c #787978", "3} c #787979", "4} c #787879", "5} c #797879", "6} c #797978", "7} c #797979", "8} c #79797A", "9} c #7A7979", "0} c #797A79", "a} c #7A797A", "b} c #7A7A7A", "c} c #7A7A79", "d} c #797A7A", "e} c #7B7A7A", "f} c #7A7B7A", "g} c #7B7B7A", "h} c #7B7B7B", "i} c #7B7A7B", "j} c #7A7A7B", "k} c #7A7B7B", "l} c #7C7B7B", "m} c #7B7C7B", "n} c #7C7B7C", "o} c #7B7B7C", "p} c #7C7C7C", "q} c #7B7C7C", "r} c #7C7C7B", "s} c #7D7C7C", "t} c #7C7C7D", "u} c #7C7D7D", "v} c #7C7D7C", "w} c #7D7C7D", "x} c #7D7D7C", "y} c #7E7D7D", "z} c #7D7D7E", "A} c #7D7E7E", "B} c #7D7E7D", "C} c #7E7D7E", "D} c #7E7E7E", "E} c #7E7E7D", "F} c #7E7E7F", "G} c #7E7F7F", "H} c #7E7F7E", "I} c #7F7E7E", "J} c #7F7F7E", "K} c #7F7E7F", "L} c #807F7F", "M} c #7F7F80", "N} c #7F807F", "O} c #807F80", "P} c #7F8080", "Q} c #808080", "R} c #80807F", "S} c #818080", "T} c #808081", "U} c #818180", "V} c #808181", "W} c #808180", "X} c #818081", "Y} c #818181", "Z} c #818281", "`} c #828281", " | c #818282", ".| c #828182", "+| c #828181", "@| c #818182", "#| c #828282", "$| c #828283", "%| c #838282", "&| c #838283", "*| c #828382", "=| c #838382", "-| c #838383", ";| c #828383", ">| c #848383", ",| c #838384", "'| c #838484", ")| c #838483", "!| c #848483", "~| c #848384", "{| c #848485", "]| c #848584", "^| c #858484", "/| c #858485", "(| c #858584", "_| c #848585", ":| c #858585", "<| c #858586", "[| c #858685", "}| c #858686", "|| c #868685", "1| c #868586", "2| c #868585", "3| c #868687", "4| c #878686", "5| c #868787", "6| c #878786", "7| c #878687", "8| c #878787", "9| c #868786", "0| c #888787", "a| c #878887", "b| c #878788", "c| c #888887", "d| c #878888", "e| c #888788", "f| c #888988", "g| c #898888", "h| c #888889", "i| c #898988", "j| c #898989", "k| c #898889", "l| c #888989", "m| c #8A8989", "n| c #898A89", "o| c #8A898A", "p| c #89898A", "q| c #8A8A89", "r| c #898A8A", "s| c #8A8B8A", "t| c #8A8B8B", "u| c #8A8A8B", "v| c #8B8A8B", "w| c #8B8A8A", "x| c #8B8B8A", "y| c #8B8B8B", "z| c #8C8B8B", "A| c #8B8C8B", "B| c #8B8B8C", "C| c #8B8C8C", "D| c #8C8C8C", "E| c #8C8B8C", "F| c #8C8C8B", "G| c #8C8C8D", "H| c #8D8C8C", "I| c #8C8D8D", "J| c #8C8D8C", "K| c #8D8D8C", "L| c #8D8C8D", "M| c #8D8D8D", "N| c #8D8D8E", "O| c #8E8D8D", "P| c #8E8E8D", "Q| c #8D8E8D", "R| c #8E8D8E", "S| c #8D8E8E", "T| c #8E8E8F", "U| c #8E8F8E", "V| c #8F8E8E", "W| c #8E8F8F", "X| c #8F8F8E", "Y| c #8F8F8F", "Z| c #8F8E8F", "`| c #8F8F90", " 1 c #908F8F", ".1 c #90908F", "+1 c #8F908F", "@1 c #8F9090", "#1 c #908F90", "$1 c #909090", "%1 c #919090", "&1 c #909091", "*1 c #909190", "=1 c #919191", "-1 c #909191", ";1 c #919091", ">1 c #919190", ",1 c #919291", "'1 c #919192", ")1 c #929291", "!1 c #919292", "~1 c #929191", "{1 c #929192", "]1 c #929292", "^1 c #929293", "/1 c #939292", "(1 c #929392", "_1 c #939293", ":1 c #939392", "<1 c #929393", "[1 c #939493", "}1 c #939394", "|1 c #949494", "11 c #949393", "21 c #949394", "31 c #939494", "41 c #949493", "51 c #949595", "61 c #959594", "71 c #959595", "81 c #959494", "91 c #949495", "01 c #949594", "a1 c #959495", "b1 c #969595", "c1 c #959596", "d1 c #969596", "e1 c #959695", "f1 c #959696", "g1 c #969695", "h1 c #969697", "i1 c #969796", "j1 c #979697", "k1 c #979696", "l1 c #979796", "m1 c #979797", "n1 c #969797", "o1 c #979897", "p1 c #979798", "q1 c #989797", "r1 c #989897", "s1 c #979898", "t1 c #989798", "u1 c #989998", "v1 c #999898", "w1 c #989999", "x1 c #989899", "y1 c #999899", "z1 c #999998", "A1 c #999A99", "B1 c #9A9999", "C1 c #99999A", "D1 c #999A9A", "E1 c #9A999A", "F1 c #9A9A9A", "G1 c #9A9A99", "H1 c #9A9B9A", "I1 c #9A9A9B", "J1 c #9B9A9A", "K1 c #9A9B9B", "L1 c #9B9B9B", "M1 c #9B9A9B", "N1 c #9B9B9C", "O1 c #9C9B9B", "P1 c #9B9C9B", "Q1 c #9C9B9C", "R1 c #9B9C9C", "S1 c #9C9C9B", "T1 c #9C9C9C", "U1 c #9D9C9C", "V1 c #9C9D9C", "W1 c #9D9C9D", "X1 c #9C9C9D", "Y1 c #9D9D9C", "Z1 c #9D9D9D", "`1 c #9C9D9D", " 2 c #9E9D9D", ".2 c #9E9E9D", "+2 c #9D9D9E", "@2 c #9D9E9D", "#2 c #9E9D9E", "$2 c #9E9E9E", "%2 c #9D9E9E", "&2 c #9F9E9E", "*2 c #9F9E9F", "=2 c #9E9F9E", "-2 c #9E9E9F", ";2 c #9E9F9F", ">2 c #9F9F9E", ",2 c #9F9F9F", "'2 c #9F9FA0", ")2 c #9FA09F", "!2 c #A0A0A0", "~2 c #A09F9F", "{2 c #A0A09F", "]2 c #A09FA0", "^2 c #9FA0A0", "/2 c #A1A0A0", "(2 c #A0A1A0", "_2 c #A0A0A1", ":2 c #A0A1A1", "<2 c #A1A0A1", "[2 c #A1A1A0", "}2 c #A1A1A2", "|2 c #A2A1A1", "12 c #A1A2A1", "22 c #A2A2A1", "32 c #A1A2A2", "42 c #A2A1A2", "52 c #A2A2A2", "62 c #A2A2A3", "72 c #A3A2A2", "82 c #A2A3A2", "92 c #A2A3A3", "02 c #A3A3A3", "a2 c #A3A2A3", "b2 c #A3A3A2", "c2 c #A3A3A4", "d2 c #A3A4A3", "e2 c #A4A4A3", "f2 c #A4A3A4", "g2 c #A4A3A3", "h2 c #A3A4A4", "i2 c #A4A5A5", "j2 c #A5A4A5", "k2 c #A4A4A5", "l2 c #A5A4A4", "m2 c #A4A5A4", "n2 c #A5A5A4", "o2 c #A5A5A5", "p2 c #A5A6A5", "q2 c #A5A5A6", "r2 c #A6A5A5", "s2 c #A6A6A6", "t2 c #A6A6A5", "u2 c #A5A6A6", "v2 c #A6A5A6", "w2 c #A6A6A7", "x2 c #A6A7A6", "y2 c #A7A6A7", "z2 c #A6A7A7", "A2 c #A7A7A6", "B2 c #A7A6A6", "C2 c #A8A7A7", "D2 c #A8A8A8", "E2 c #A8A8A7", "F2 c #A7A8A7", "G2 c #A7A8A8", "H2 c #A7A7A8", "I2 c #A8A7A8", "J2 c #A9A8A8", "K2 c #A8A9A9", "L2 c #A8A8A9", "M2 c #A9A9A8", "N2 c #A8A9A8", "O2 c #A9A8A9", "P2 c #A9A9A9", "Q2 c #A9AAA9", "R2 c #AAA9A9", "S2 c #AAAAA9", "T2 c #AAAAAA", "U2 c #A9A9AA", "V2 c #A9AAAA", "W2 c #AAA9AA", "X2 c #AAABAA", "Y2 c #ABAAAA", "Z2 c #ABABAA", "`2 c #AAABAB", " 3 c #AAAAAB", ".3 c #ABABAB", "+3 c #ABAAAB", "@3 c #ACABAB", "#3 c #ABACAB", "$3 c #ABABAC", "%3 c #ACACAB", "&3 c #ACABAC", "*3 c #ACACAC", "=3 c #ABACAC", "-3 c #ACACAD", ";3 c #ADACAC", ">3 c #ADADAC", ",3 c #ACADAD", "'3 c #ADACAD", ")3 c #ACADAC", "!3 c #ADADAD", "~3 c #AEADAD", "{3 c #ADAEAD", "]3 c #ADADAE", "^3 c #ADAEAE", "/3 c #AEAEAE", "(3 c #AEADAE", "_3 c #AEAEAD", ":3 c #AEAEAF", "<3 c #AEAFAE", "[3 c #AFAEAF", "}3 c #AFAFAE", "|3 c #AFAEAE", "13 c #AEAFAF", "23 c #B0AFAF", "33 c #AFB0AF", "43 c #AFAFB0", "53 c #B0AFB0", "63 c #AFB0B0", "73 c #B0B0AF", "83 c #B0B0B1", "93 c #B0B1B0", "03 c #B1B0B0", "a3 c #B1B1B0", "b3 c #B1B0B1", "c3 c #B1B1B1", "d3 c #B0B1B1", "e3 c #B1B1B2", "f3 c #B2B1B1", "g3 c #B2B1B2", "h3 c #B1B2B1", "i3 c #B2B2B1", "j3 c #B1B2B2", "k3 c #B3B2B2", "l3 c #B2B3B2", "m3 c #B2B3B3", "n3 c #B2B2B3", "o3 c #B3B3B2", "p3 c #B3B3B4", "q3 c #B3B4B3", "r3 c #B4B3B3", "s3 c #B4B4B4", "t3 c #B3B4B4", "u3 c #B4B3B4", "v3 c #B4B4B3", "w3 c #B5B4B4", "x3 c #B4B5B5", "y3 c #B4B4B5", "z3 c #B5B4B5", "A3 c #B4B5B4", "B3 c #B5B5B4", "C3 c #B6B5B5", "D3 c #B5B6B5", "E3 c #B5B6B6", "F3 c #B6B6B5", "G3 c #B5B5B6", "H3 c #B6B5B6", "I3 c #B7B7B6", "J3 c #B6B6B7", "K3 c #B7B6B7", "L3 c #B6B7B6", "M3 c #B6B7B7", "N3 c #B7B6B6", "O3 c #B7B7B8", "P3 c #B8B7B8", "Q3 c #B7B8B7", "R3 c #B8B7B7", "S3 c #B7B8B8", "T3 c #B8B8B7", "U3 c #B9B9B8", "V3 c #B8B8B9", "W3 c #B9B8B8", "X3 c #B8B9B8", "Y3 c #B9B8B9", "Z3 c #B8B9B9", "`3 c #BAB9B9", " 4 c #B9B9BA", ".4 c #B9BAB9", "+4 c #BABAB9", "@4 c #B9BABA", "#4 c #BAB9BA", "$4 c #BABBBA", "%4 c #BBBABA", "&4 c #BABABB", "*4 c #BABBBB", "=4 c #BBBBBA", "-4 c #BBBABB", ";4 c #BBBCBB", ">4 c #BCBBBB", ",4 c #BBBBBC", "'4 c #BCBCBB", ")4 c #BCBBBC", "!4 c #BCBCBC", "~4 c #BBBCBC", "{4 c #BDBCBC", "]4 c #BCBDBD", "^4 c #BCBDBC", "/4 c #BCBCBD", "(4 c #BDBCBD", "_4 c #BDBDBC", ":4 c #BDBEBD", "<4 c #BDBDBE", "[4 c #BEBDBD", "}4 c #BEBEBD", "|4 c #BDBEBE", "14 c #BEBDBE", "24 c #BEBEBF", "34 c #BFBEBE", "44 c #BEBFBE", "54 c #BEBFBF", "64 c #BFBFBF", "74 c #BFBEBF", "84 c #BFBFBE", "94 c #BFC0C0", "04 c #C0BFBF", "a4 c #BFBFC0", "b4 c #C0BFC0", "c4 c #BFC0BF", "d4 c #C0C0C0", "e4 c #C0C0BF", "f4 c #C0C1C0", "g4 c #C0C0C1", "h4 c #C1C0C0", "i4 c #C1C1C1", "j4 c #C0C1C1", "k4 c #C1C1C0", "l4 c #C1C0C1", "m4 c #C1C2C1", "n4 c #C2C1C1", "o4 c #C2C2C1", "p4 c #C2C1C2", "q4 c #C1C1C2", "r4 c #C1C2C2", "s4 c #C2C2C3", "t4 c #C3C2C2", "u4 c #C2C3C2", "v4 c #C3C3C3", "w4 c #C3C2C3", "x4 c #C2C3C3", "y4 c #C3C3C2", "z4 c #C3C4C3", "A4 c #C4C3C4", "B4 c #C3C3C4", "C4 c #C4C3C3", "D4 c #C3C4C4", "E4 c #C4C4C4", "F4 c #C4C4C3", "G4 c #C5C4C4", "H4 c #C4C5C4", "I4 c #C4C4C5", "J4 c #C5C5C4", "K4 c #C5C4C5", "L4 c #C4C5C5", "M4 c #C5C5C5", "N4 c #C5C6C5", "O4 c #C6C5C5", "P4 c #C5C5C6", "Q4 c #C6C6C5", "R4 c #C6C5C6", "S4 c #C5C6C6", "T4 c #C6C6C6", "U4 c #C7C6C7", "V4 c #C7C6C6", "W4 c #C6C7C6", "X4 c #C6C6C7", "Y4 c #C7C7C6", "Z4 c #C6C7C7", "`4 c #C7C7C7", " 5 c #C8C7C7", ".5 c #C8C7C8", "+5 c #C7C7C8", "@5 c #C7C8C7", "#5 c #C8C8C7", "$5 c #C8C8C8", "%5 c #C7C8C8", "&5 c #C9C8C8", "*5 c #C8C8C9", "=5 c #C8C9C9", "-5 c #C8C9C8", ";5 c #C9C8C9", ">5 c #C9C9C8", ",5 c #C9CAC9", "'5 c #CAC9C9", ")5 c #C9CACA", "!5 c #C9C9CA", "~5 c #CACAC9", "{5 c #CACACA", "]5 c #CAC9CA", "^5 c #CBCACA", "/5 c #CACACB", "(5 c #CACBCA", "_5 c #CBCBCA", ":5 c #CACBCB", "<5 c #CBCACB", "[5 c #CBCBCB", "}5 c #CCCBCB", "|5 c #CBCBCC", "15 c #CBCCCB", "25 c #CCCCCB", "35 c #CBCCCC", "45 c #CCCCCC", "55 c #CCCBCC", "65 c #CDCCCC", "75 c #CCCDCC", "85 c #CCCCCD", "95 c #CDCDCD", "05 c #CDCDCC", "a5 c #CCCDCD", "b5 c #CDCCCD", "c5 c #CECDCD", "d5 c #CDCECD", "e5 c #CDCECE", "f5 c #CDCDCE", "g5 c #CECECD", "h5 c #CECDCE", "i5 c #CECFCE", "j5 c #CECECF", "k5 c #CFCFCE", "l5 c #CFCECE", "m5 c #CECFCF", "n5 c #CFCFCF", "o5 c #CFCECF", "p5 c #CFCFD0", "q5 c #CFD0CF", "r5 c #CFD0D0", "s5 c #D0CFCF", "t5 c #D0D0CF", "u5 c #D0D0D0", "v5 c #D0CFD0", "w5 c #D0D0D1", "x5 c #D0D1D0", "y5 c #D1D0D0", "z5 c #D0D1D1", "A5 c #D1D1D1", "B5 c #D1D1D0", "C5 c #D1D0D1", "D5 c #D2D2D1", "E5 c #D1D1D2", "F5 c #D1D2D1", "G5 c #D2D1D1", "H5 c #D2D1D2", "I5 c #D1D2D2", "J5 c #D3D2D2", "K5 c #D3D2D3", "L5 c #D2D3D2", "M5 c #D3D3D2", "N5 c #D2D2D3", "O5 c #D3D3D3", "P5 c #D2D3D3", "Q5 c #D4D3D3", "R5 c #D3D4D3", "S5 c #D3D3D4", "T5 c #D4D4D3", "U5 c #D3D4D4", "V5 c #D4D3D4", "W5 c #D5D4D4", "X5 c #D4D5D4", "Y5 c #D5D5D4", "Z5 c #D4D4D5", "`5 c #D4D5D5", " 6 c #D5D4D5", ".6 c #D5D6D5", "+6 c #D5D5D6", "@6 c #D6D5D5", "#6 c #D6D5D6", "$6 c #D6D6D5", "%6 c #D5D6D6", "&6 c #D6D7D6", "*6 c #D7D6D6", "=6 c #D7D7D6", "-6 c #D6D6D7", ";6 c #D7D6D7", ">6 c #D6D7D7", ",6 c #D8D7D7", "'6 c #D7D8D7", ")6 c #D7D7D8", "!6 c #D7D8D8", "~6 c #D8D7D8", "{6 c #D8D8D7", "]6 c #D9D8D8", "^6 c #D8D9D8", "/6 c #D8D9D9", "(6 c #D9D8D9", "_6 c #D8D8D9", ":6 c #D9D9D8", "<6 c #D9D9D9", "[6 c #DAD9D9", "}6 c #D9D9DA", "|6 c #D9DAD9", "16 c #DAD9DA", "26 c #DADAD9", "36 c #D9DADA", "46 c #DADADB", "56 c #DBDADB", "66 c #DBDADA", "76 c #DADBDA", "86 c #DBDBDA", "96 c #DADBDB", "06 c #DBDCDB", "a6 c #DBDBDC", "b6 c #DBDCDC", "c6 c #DCDCDB", "d6 c #DCDBDB", "e6 c #DCDBDC", "f6 c #DCDDDC", "g6 c #DDDCDC", "h6 c #DCDCDD", "i6 c #DCDDDD", "j6 c #DDDCDD", "k6 c #DDDDDC", "l6 c #DDDEDD", "m6 c #DDDDDE", "n6 c #DEDEDD", "o6 c #DEDDDD", "p6 c #DDDEDE", "q6 c #DEDDDE", "r6 c #DFDEDE", "s6 c #DEDEDF", "t6 c #DEDFDE", "u6 c #DFDFDE", "v6 c #DFDEDF", "w6 c #DEDFDF", "x6 c #DFE0E0", "y6 c #DFDFE0", "z6 c #E0DFDF", "A6 c #DFE0DF", "B6 c #E0E0DF", "C6 c #E0DFE0", "D6 c #E0E0E1", "E6 c #E0E1E0", "F6 c #E1E0E0", "G6 c #E0E1E1", "H6 c #E1E0E1", "I6 c #E1E1E0", "J6 c #E1E1E2", "K6 c #E1E2E1", "L6 c #E2E1E1", "M6 c #E2E1E2", "N6 c #E2E2E1", "O6 c #E1E2E2", "P6 c #E3E2E2", "Q6 c #E3E3E2", "R6 c #E2E2E3", "S6 c #E2E3E3", "T6 c #E2E3E2", "U6 c #E3E2E3", "V6 c #E4E3E3", "W6 c #E3E4E3", "X6 c #E3E4E4", "Y6 c #E3E3E4", "Z6 c #E4E3E4", "`6 c #E4E4E3", " 7 c #E4E5E4", ".7 c #E5E4E5", "+7 c #E4E4E5", "@7 c #E5E4E4", "#7 c #E4E5E5", "$7 c #E5E5E4", "%7 c #E6E5E5", "&7 c #E5E6E5", "*7 c #E5E5E6", "=7 c #E5E6E6", "-7 c #E6E5E6", ";7 c #E6E6E5", ">7 c #E6E7E6", ",7 c #E6E6E7", "'7 c #E6E7E7", ")7 c #E7E6E6", "!7 c #E7E6E7", "~7 c #E7E7E6", "{7 c #E8E7E7", "]7 c #E7E7E8", "^7 c #E8E7E8", "/7 c #E8E8E8", "(7 c #E7E8E8", "_7 c #E7E8E7", ":7 c #E8E8E7", "<7 c #E9E8E8", "[7 c #E8E8E9", "}7 c #E9E8E9", "|7 c #E8E9E9", "17 c #E8E9E8", "27 c #E9E9E8", "37 c #E9E9EA", "47 c #EAE9E9", "57 c #E9EAE9", "67 c #EAEAE9", "77 c #E9EAEA", "87 c #EAE9EA", "97 c #EBECEB", "07 c #EBECEC", "a7 c #ECEBEB", "b7 c #EBEBEC", "c7 c #ECEBEC", "d7 c #ECECEB", "e7 c #EDEDEE", "f7 c #EEEDED", "g7 c #EDEEEE", "h7 c #EEEEED", "i7 c #EEEDEE", "j7 c #EDEEED", "k7 c #EEEEEF", "l7 c #EEEFEF", "m7 c #EFEEEF", "n7 c #F0F0F1", "o7 c #F0F1F1", "p7 c #F1F0F1", "q7 c #F1F1F2", "r7 c #F2F2F3", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . @ . . . . + @ # $ $ $ $ $ + @ . % & # * @ @ % + . + * % % + . * + + % % $ @ @ $ * % # * * * * + * * $ & * * # * * * * * ", "% * * * * * * * * * * * * * * * = - ; * > * ; ; ; = * = - ; ; * , - > * , * - * ' > ; , * , * ) ) , > ) * > ' ; > ) = ) ' ; , ) ) ' ' ) ) , ' ) ' , ' ' - ' ) ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ! ' ! ~ ' ", "' ~ ~ ' { ] { ~ ] ' ] ~ ~ ' ' ' ] { ! ~ ! ^ ! / ~ ] ] ] / { ^ ( ( ( ^ ( ^ ^ { ^ ^ ^ ( / / ^ ! ^ ( ^ ] ^ ^ ^ / / ^ . . ( ] ^ ^ ^ ( ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ _ ^ ^ : ^ ^ < : ^ ^ ^ _ : _ ^ _ < < _ [ < ^ ^ ", "} < | [ : | 1 ^ _ 1 : 1 [ | ^ ^ [ | < _ [ } | [ [ [ } } [ < | [ [ 1 } | [ [ } [ | [ | [ [ [ [ [ [ [ [ 2 [ [ [ [ * 3 4 5 [ 6 2 [ 7 [ 2 8 [ 9 6 0 [ [ [ 6 [ 2 0 2 [ 6 8 [ 9 0 8 8 7 9 a 6 0 7 9 2 6 0 [ 7 ", "[ a 8 0 a a a 0 9 a 0 8 a 8 8 8 7 a 8 8 a 0 a a a a a a a a a a a a a a a b a a . c d d . . . e a b e f b b e g h i j k l a m b e n o m e n b n f b n p m e b m o p e b m p p p b p m m m p p p p p p p ", "p m p p p p p p p p p p p q p p p r q p s q p t p p p s u q p t q s q r u p v w x y z z A B C D . q r r q r E F i G H I J K v L L v t r u s q r r s v r L v L L L L r L L L L L L L L L L L L M L L L L ", "L N N N L L N M L M O L P N Q N N R O L L N M R M Q P R M P R O Q N P P S P T U V W X Y Z ` ...+.@.. S S #.$.i %.&.*.J =.K R S S S S S S S S S S S S S S -.;.S -.S S -.>.S ;.S ;.S -.;.S >.>.,.>.,.S >.", "-.'.>.;.>.-.).-.'.S '.).!.-.).S ,.;.'.>.-.'.'.'.>.-.>.).>.>.).).).>.).'.'.~.{.].^./.(._.:.<.[.}.|.1.2.. 3.4.j 5.6.7.J g [ '.'.8.9.'.0.'.a.8.a.'.'.'.9.b.'.c.'.'.b.9.9.b.8.9.a.a.9.9.0.c.0.'.d.0.9.'.d.0.", "0.0.0.9.8.9.b.c.c.c.0.0.c.c.d.b.8.c.c.d.d.0.c.c.c.c.c.c.c.c.c.c.c.c.c.c.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.A.* B.c.B.C.C.c.D.E.C.C.F.E.D.E.G.E.C.C.G.E.D.F.G.F.G.F.D.H.E.E.F.H.H.E.E.B.E.E.H.F.", "E.H.E.E.E.G.F.E.E.E.E.E.E.E.E.I.J.E.E.E.E.E.K.E.E.L.E.K.K.M.E.N.I.E.L.. O.P.Q.R.S.T.U.V.W.X.Y.Z.`. +.+++@+#+$+%+z.&+c.N.L.M.M.I.N.L.I.E.N.M.M.*+L.*+*+*+M.*+M.*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+=+*+*+*+", "*+*+*+-+*+*+-+*+=+;+=+>+>+-+=+,+*+-+'+=+;+=+=+>+;+*+*+'+,+-+-+'+=+*+=+)+!+~+{+]+^+/+(+_+:+<+[+}+|+1+2+3+4+5+I 6+7+c.8+,+'+>+>+8+,+8+8+8+8+8+>+8+8+9+8+8+8+8+8+0+a+a+8+b+c+a+8+8+8+a+8+9+8+8+c+0+8+8+9+0+", "d+b+9+e+a+c+0+e+c+a+9+0+0+9+c+a+b+0+8+e+9+0+8+e+d+e+d+e+b+e+0+b+e+d+. f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+5+w+x+y+'.e+e+e+e+e+z+e+z+. e+A+e+B+A+B+C+D+D+e+D+E+F+e+e+A+C+A+C+C+A+e+e+B+D+A+B+z+A+D+A+C+E+e+", "C+C+F+F+C+D+E+A+D+D+D+D+F+C+C+E+D+F+F+F+D+F+F+F+F+F+F+E+F+F+F+F+F+F+G+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+%.v+5+h V+W+X+Y+. Z+F+`+ @Z+F+S .@+@@@F+F+F+Z+#@F+$@F+%@%@%@&@#@F+&@$@$@&@%@&@%@&@%@%@%@#@`+#@ @`+&@F+", "%@#@%@%@%@#@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@%@*@=@*@*@=@-@%@=@*@%@;@>@,@'@)@!@~@{@]@^@Q+/@(@_@:@v+5+<@[@}@|@1@2@3@. 4@%@5@4@8+6@7@@+8@9@*@4@*@-@0@=@-@a@5@*@a@5@0@a@a@5@5@5@5@5@5@5@5@5@0@5@5@5@5@5@5@", "5@b@5@5@5@5@5@c@5@5@5@c@5@5@5@5@5@d@5@5@e@f@g@d@5@d@d@g@e@5@5@b@c@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@$+<@x@y@z@A@B@C@D@E@. F@. d@G@i %.H H@I@d@d@d@d@d@d@d@d@d@d@J@d@K@d@d@d@d@J@L@d@J@K@K@d@d@M@d@N@d@L@d@", "L@K@J@J@O@N@O@N@J@L@N@K@9@9@M@9@L@O@9@9@J@M@J@O@N@9@9@N@9@J@9@9@9@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.#+#@###$#%#&#*#=#-#;#>#,#'#. d@H@)#!#x.<@6+~#9@{#]#9@9@{#^#9@9@9@9@9@^#/#]#(#^#(#]#(#(#9@^#(#_#^#/#_#_#9@/#", "^#^#^#/#{#/#/#:#(#_#]#/#{#_#_#_#_#/#_#{#_#/#_#:#_#:#_#_#_#_#_#_#_#<#[#}#|#1#2#3#4#5#6#7#8#9#9#.#0#a#b#c#d#e#f#=#g#h#i#j#k#I j l#$.m#n#o#p#q#r#s#s#s#q#s#t#s#q#r#s#q#q#s#_#u#v#t#r#q#v#p#p#p#q#q#p#t#t#r#", "v#v#p#v#p#r#q#p#p#t#p#t#p#p#p#p#p#p#w#p#w#p#p#p#p#p#x#p#y#p#w#y#w#z#A#B#C#D#E#F#G#H#I#J#K#L#M#N#.#O#P#Q#R#S#T#U#V#W#X#Y#Z#v.#+$+`#A. $.$w#+$@$#$#$x##$#$+$+$p#@$@$p#w#.$#$#$.$.$#$#$#$.$#$#$#$#$#$#$#$#$", "#$#$#$$$#$#$%$$$#$&$$$$$#$$$%$#$#$$$*$#$&$*$$$=$%$*$#$$$#$=$$$$$%$-$;$>$,$'$)$!$~${$]$^$/$($L#_$M#:$<$[$}$|$1$2$3$r+4$5$6$v+5+w+7$P@=$K =$K K K K K K K K K K K K K K K K K K K K K 8$K 9$K K 9$0$K a$K ", "0$0$K K 9$a$0$8$0$b$c$b$9$K b$8$b$a$0$K a$b$b$c$0$d$c$a$b$a$c$c$. e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$_$t$u$v$w$}$x$y$z$A$B$C$H D$E$F$G$b$b$b$b$b$b$H$b$H$H$b$I$J$J$H$I$K$I$H$b$J$L$J$J$b$M$K$H$K$H$I$N$I$N$N$", "J$I$K$H$M$K$L$N$I$K$K$I$K$b$L$L$L$L$M$L$L$H$L$L$K$K$L$L$L$L$L$L$. O$P$Q$R$S$T$U$V$W$X$Y$Z$`$ %r$s$_$9#u$.%+%@%#%$%4.u+H D$w+%%#$. &%*%L$=%L$L$*%-%=%&%L$*%-%;%;%-%;%;%>%&%;%,%-%=%*%>%;%,%-%>%,%;%;%,%;%", ";%,%;%;%=%,%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%'%)%!%;%'%;%)%)%;%. ~%{%Q$]%^%U$/%(%_%:%<%[%}%|%1%r$_$2%9#3%4%5%6%H %.v+7%`#8%9%0%a%b%c%d%e%f%g%h%i%j%k%l%k%k%'%k%j%k%j%k%k%k%k%k%k%k%k%k%k%k%!%k%k%k%k%k%", "k%i%k%k%k%k%k%k%k%m%n%n%m%k%i%m%o%k%p%m%n%k%q%p%i%i%m%k%q%o%i%o%. r%s%t%u%v%w%x%y%z%A%B%C%D%E%F%q$G%H%I%3%4%J%K%:@v+$+L%M%N%O%P%Q%R%S%T%U%V%W%X%Y%Z%q%q%q%q%q%q%q%q%q%q%q%q%q%`%q%q% &.& &+&+&q%q%.&q%+&", "q%.& & & &`%.&@&#&+&.&.&.&+&.&`%.&q%`%@& &`%#&q%+&#&q%$&#&@&#& &. %&&&*&=&-&;&>&,&z%'&)&!&~&{&]&^&/&(&_&`@:&4%<&[&5+}&|&1&2&3&4&5&6&7&8&9&0&a&b&c&d&e&#&#&#&#&f&g&f&#&f&h&g&#&i&h&#&h&g&h&i&g&j&k&#&j&h&", "i&g&k&j&h&h&l&h&f&g&h&#&k&l&f&l&j&l&h&l&j&l&k&l&k&l&h&l&l&l&h&l&. m&&&n&o&p&q&r&>&,&s&t&u&v&w&x&y&z&A&B&C&D&D&u@E&F&G&H&I&J&K&L&M&N&O&P&Q&R&S&T&U&V&W&X&Y&Z&`& * *`&.*l&X&.*.*+*Z&+*X&Z&.*X&`& *X&Y&Z&Z&", "X&+* *X&Z&Z&X&Y&X&Z&X&.* *Y&X&X&X&X&X&X&X&X&@*X&X&X&X&#*X&X&X&X&. $*%*&*u%**=*-*;*>*,*'*)*!*~*{*]*^*/*(*_*:*r@<*[*}*|*1*2*3*4*5*6*7*8*9*9*9*0*a*b*c*d*e*f*f*@*@*g*h*h*f*h*h*f*i*g*h*h*h*h*h*i*h*i*h*h*h*", "h*h*h*h*h*j*h*j*h*h*j*h*h*h*j*k*h*h*l*j*m*n*h*h*j*n*j*h*h*o*h*o*. p*q*r*s*t*u*]*-*v*>*r&w*x*y*z*A*B*C*8#D*E*F*G*H*I*J*K*L*M*N*O*P*Q*R*R*R*R*R*S*T*U*V*W*m*m*m*m*m*m*m*m*m*X*m*m*Y*m*Z*m*Z*Y*Y*m*Z*m*Y*X*", "m*X*X*Z*`*m*m*m*X* =Z*`*.=Y*m* =X*Y*X*m*+=m*.=`* =.=+=`* =+=`*`*. @=#=$=%=&=*==*==-=;=>=-=,='=)=!=~={=]=^=/=(=_=:=<=[=n+}=|=1=2=3=4=4=4=4=4=4=5=6=7=8=9=0=a=`*0=`*b=a=b=`*a=a=a=0=`*c=`*b=`*`*0=b=`*d=d=", "c=d=d=a=a=e=b=0=b=f=f=d=d=a=f=c=d=c=`*f=f=e=f=a=f=b=f=f=f=d=c=f=c=g=h=i=j=k=l=*=m=n=o=o=p=q=r=s=t=u=v=~@w=x=y=z=A=N+B=C=D=E=F=G=H=I=I=I=I=I=I=J=K=6=L=M=N=f=O=P=Q=R=P=S=O=S=P=f=O=T=N=S=S=f=O=Q=P=N=O=O=", "O=P=N=N=N=N=N=N=P=O=N=N=N=N=O=R=N=N=N=N=N=N=N=N=U=V=U=N=N=W=X=N=N=Y=Z=`= -.-+-l=l=@-#-@-$-%-&-{=*-=---;->-,-'-)-!-~-{-]-^-/-(-_-:-<-<-<-<-<-<-[-}-|-1-2-3-V=4-V=V=V=V=3-V=3-3-3-V=U=3-4-3-3-3-4-V=3-5-3-", "3-3-3-3-3-3-3-3-3-3-3-3-6-3-l 3-3-3-7-8-9-3-3-3-3-8-7-7-3-8-7-3-0-a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-]+s-t-u-v-w-x-y-z-A-B-C-D-E-F-F-F-F-F-G-H-}-I-J-l l l l K-l l l l l L-l l l l M-l l l N-L-l M-l ", "N-l N-O-P-N-l O-Q-L-L-M-R-N-O-O-L-R-M-R-O-l Q-L-R-Q-M-P-l R-M-P-Q-. S-T-U-V-W-X-Y-Z-`- ;.;+;@;#;q-$;%;&;*;=;-;;;>;,;';);!;~;{;];^;/;/;/;/;/;/;(;_;:;<;[;};|;};1;P-1;P-1;2;P-};P-1;|;1;P-3;4;2;P-|;G$|;1;", "|;P-P-3;G$1;P-|;};2;G$P-G$4;};|;P-2;4;G$2;3;G$};2;G$G$3;3;G$G$G$G$G$Y=5;6;7;8;9;0;&&8;a;b;c;$;j+d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;u;u;u;u;u;v;w;x;:;y;z;A;B;C;A;z;@@@@G$G$D;E;@@A;z;C;G$A;D;@@@@B;D;C;", "C;C;E;z;G$@@@@B;@@@@@@@@@@@@@@@@@@@@D;@@@@@@@@@@@@@@@@@@@@@@@@@@F;@@. G;H;I;J;K;L;L;M;%;s-N;O;f;P;Q;R;S;T;U;V;W;X;Y;Z;`; >.>+>@>#>$>$>$>$>$>$>%>&>*>=>->;>>>,>'>)>>>@@>>;>)>)>,>)>,>>>)>)>)>)>)>)>)>,>)>", ")>)>)>)>)>)>)>)>!>)>)>!>)>)>~>)>)>{>]>)>)>)>)>~>^>]>^>!>)>]>!>^>]>)>/>(>_>:><>[>[>}>|>=;1>2>3>4>S;5>6>l;7>8>9>0>a>b>c>d>e>f>g>h>i>j>k>k>k>k>k>l>m>n>o>p>^>q>r>q>q>q>q>q>q>q>q>q>q>q>q>q>q>s>q>q>q>q>q>q>", "q>q>q>q>q>t>q>q>s>q>s>s>s>q>u>v>v>w>q>v>s>q>x>x>s>v>w>u>v>w>u>t>s>p y>z>A>B>C>C>D>E>F>G>H>5>I>J>K>L>V;8>M>N>O>P>Q>R>S>T>U>V>W>X>Y>Z>Z>Z>Z>Z>Z>`> ,m>.,->+,+,@,@,#,+,#,@,$,%,+,@,$,+,#,$,+,%,&,*,%,+,*,+,", "=,*,+,@,#,@,%,%,=,+,*,&,%,$,*,#,@,*,@,*,%,*,=,&,=,=,*,*,*,*,*,*,' -,;,>,9@,,',),j;!,~,{,],^,7>7>/,(,_,:,<,[,},|,1,2,3,4,5,6,7,8,9,0,0,a,a,a,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,s,t,u,t,s,*,u,v,s,t,*,", "w,u,v,w,x,s,w,w,v,v,v,w,w,v,w,w,w,w,x,w,w,w,w,w,w,w,w,w,w,w,w,. y,z,A,h*. S e.B,C,D,E,F,F,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,`, '.'.'.'+'@'#'$'%'&'*'='-';'>',''')'!'~'{']'^'^'^'/'^'('^'^'^'/'_'", "^'^'^'^'^'^'^':'^'<'^'^'^'^'<'[':'^'^'^'^'<'^'['^'}'^'^'}'['<'|'&+1'2'. ^'^'<''.3'4'5'6'7'8'9'0'a'b'c'd'e'f'g'h'i'j'k'l'm'n'o'p'q'r's't'u'v'v'w'x'y'z'A'B'C'D'E'F'G'H'I'J'K'L'M'N'O'P'P'Q'R'P'P'P'S'T'P'", "P'P'P'P'P'P'Q'U'R'R'Q'U'P'P'V'S'V'P'V'P'V'S'R'T'Q'Q'S'R'W'Q'X&7$z>X'. h*Q'V'V'S'Y'K * Z'`' ).)+)@)#)$)%)&)*)=)-);)>),)')))!)~){)])^)/)()()()()_):)<)#'[)})|)1)2)3);'4)5)6)7)8)9)0)a)b)W'W'c)W'W'c)2'd)d)", "e)W'f)2'c)c)c)c)W'g)c)d)2'e)2'g)f)f)g)g)e)2'2'h)g)f)d)2'2'e+i)j)1'e+X&2'2'2'2'k)k)k)j)l)N=m)n)o)p)q)r)s)t)t)u)v)w)x)y)z)A)B)C)D)E)F)G)H)I)J)J)K)L)M)N)O)P)Q)R)S)T)U)V)W)X)Y)Z)`) !.!+!@!#!$!%!d d $!%!#!", "d #!d @!@!d d d %!d d @!d d @!%!d $!d @!$!d d d %!d d d d d z,&!f=X&d *!d =!d d k)k)k)k)k)-!;!>!,!'!)!!!~!{!]!^!/!(!_!:!~,~'~)~!~~~{~]~^~/~(~_~:~<~[~}~|~1~2~3~4~4~5~5~4~3~2~6~7~8~9~0~a~b~c~d~e~X!f~g~h~i~j~%~k~%~l~%~m~n~%~o~", "l~p~p~k~m~q~%~l~l~q~l~m~l~m~o~n~q~m~m~k~m~l~q~l~m~%~m~o~q~m~m~m~o~o~k~m~m~q~m~m~m~m~m~m~m~=~r~s~t~u~v~w~x~y~z~A~B~C~D~E~F~G~H~I~J~K~L~M~N~O~P~P~Q~R~S~T~U~V~W~X~Y~Z~`~ {e~.{+{@{#{${.~%{&{%{*{={&{%{={={", "*{-{-{={;{={={>{={%{={={>{>{-{&{>{-{*{={={={={={={={={={={={={={={={={,{={={={={,{={={={'{){!{~{{{]{^{/{({_{:{<{[{A~B~}{|{1{2{3{I~4{5{6{7{8{9{0{a{b{c{d{e{f{g{h{i{j{k{l{m{.{n{o{p{q{r{s{t{t{P@P@t{P@P@P@", "P@u{P@P@P@s{P@P@P@P@P@P@P@P@P@P@P@v{P@v{v{P@v{P@w{P@P@P@v{P@x{v{x{w{y{P@v{v{z{v{A{P@B{A{P@C{s!D{E{F{G{H{I{J{K{L{M{N{O{P{P{Q{R{S{T{U{V{W{X{Y{Z{Z{`{ ].]+]d{@]#]W~$]%]&]l{m{.{*]=]-];]>]y{y{y{y{y{,]y{y{y{", ",]'],]y{y{y{y{'])]y{,]!]~]|'y{,],],]']']y{']y{,]']{]'])]y{)],]~])])],],]|'|'{]']']~]~]']|']]!{D{^]/](]_]:]<][]}]|]1]2]3]4]5]6]7]8]9]T%Y{0]a]b]c]d]e]f]g]h]i]j]k]l]m]n]o]p]q]r]s]t]u]v]|'w]x]y]z]A]z]A]y]", "x]w]B]|'w]x]|'B]y]B]w]B]A]|'z]w]y]z]B]|'|'C]B]A]B]C]C]y]C]x]C]y]x]C]x]C]C]C]C]A]C]y]x]y]C]z]D]D{E]F]G]H]I]J]J]J]J]K]L]M]N]O]P]Q]R].]`{S]T]U]V]W]X]Y]Z]`] ^:).^+^@^n>#^$^%^&^*^=^-^;^/>>^,^>^'^'^>^)^C]!^", ")^'^'^/>!^>^)^C]/>!^/>/>,^,^/>/>/>~^!^/>)^,^/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>{^/>/>]^^^E]/^H](^_^:^<^<^:^_^[^}^M]|^O]P]1^ ]2^3^4^5^6^7^8^9^0^a^b^c^d^e^f^&>g^h^i^6=j^k^l^m^n^3.3.o^3.3.3.3.3.p^", "3.3.3.3.p^3.3.3.3.3.q^3.3.3.3.3.3.3.r^s^3.t^3.s^s^3.3.r^s^3.3.3.5 t^s^u^t^r^v^3.t^3.s^u^3.s^v^w^x^y^I]_^<^z^A^A^A^z^<^B^C^D^E^O]F^Z{b]V]G^H^I^J^8^K^L^M^N^O^P^Q^R^S^g^T^U^V^W^X^Y^5 5 u^5 5 5 5 5 5 5 5 ", "5 Z^5 Z^`^ /5 5 5 5 5 5 5 /5 5 ./Z^5 5 +/p!Z^ /@/5 5 ./p!./`^+/5 Z^p! /p!Z^`^p!p!p!+/./`^`^+/Z^p!#/$/%/&/&/&/&/*/&/*/=/-/C^;/>/,/'/3^)/H^!/~/{/]/^///(/_/:/(U/,(>(l)U/*(>(-(,(;(;(>(-(=(l)U/>(-(;(l)=(-(,(-(>(>(,(;(;(l)=(;(l)l),(l)'()(!(C^~({(0]4^](^(/(((_(:(<(K/l)l)l)l)l)l)l)l)l)l)[(l)}(l)l)l)l)l)l)|(l)l)l)[(", "|(1(2(l)[(|(3(l)l)}(l)l)1(}(2(3(|(}(4(|(4(1([(2(4(3(3(4(3(4(}(|(l)3(3(3(2(3(}(}(2(3(l)2(3(3(3(3(3(}(3(4(3(3(3(3(3(3(3(3(5(A^!(}^6(7(.]S]8(](9(0(_(a(b(c(d(d(d(3(d(3(e(3(f(e(g(3(3(3(h(d(d(h(f(e(f(h(h(g(", "3(3(f(e(Y'f(h(g(e(Y'Y'h(e(Y'g(Y'f(h(Y'Y'h(i(Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'Y'j(Y'Y'k(Y'Y'l(Y'Y'l(l(Y'Y'Y'j(j(m(A^:^[^n(o(p(q(`{ (4^r(s(t(u(v(w(x(j(k(j(l(x(j(x(x(k(w(w(x(k(j(w(x(x(x(k(x(y(x(", "y(w(x(x(x(x(x(x(x(x(x(k(x(x(x(x(z(x(x(x(x(x(x(x(x(x(x(A(x(x(x(x(A(x(B(A(x(C(x(C(x(x(D(A(D(x(C(z(B(E(E(E(D(C(B(C(C(X'E(A(F(A^:^G(H(I(J(K(L(M(+]N(O(P(V>v(B(B(X'X'B(E(X'X'X'X'X'X'D(z(E(X'X'X'X'X'X'X'X'X'", "X'X'X'Q(X'R(X'X'X'X'X'S(X'X'X'R(T(T(T(h@X'X'U(T(R(R(R(U(Q(X'Q(V(h@h@X'h@R(h@R(U(X'Q(U(h@h@V(V(V(R(Q(T(R(T(Q(R(h@Q(V(h@h@F(z^_^I]W(X(Y(Z(`( _g{._+_@_#_$_h@h@h@h@h@h@h@h@%_&_h@h@h@*_h@=_h@h@*_h@=_&_h@h@", "=_h@&_=_-_h@&_*_h@;_>_&_=_=_>_;_%_;_h@*_;_;_-_>_&_*_&_*_;_>_%_>_>_;_>_-_=_&_;_;_;_%_;_&_-_;_-_;_;_;_;_-_;_>_;_;_;_,_;_;_'_:^(^)_!_~_{_Z~j{%]]_^_/_(___:_<_<_[_;_;_<_}_|_}_,_,_<_,_;_1_}_,_1_;_;_<_2_<_[_", "<_[_1_1_<_2_1_<_}_<_1_1_|_1_[_1_[_1_1_,_[_1_1_1_,_[_1_[_1_1_1_2_1_1_1_1_1_1_1_1_1_1_1_1_1_1_3_1_1_3_1_1_1_1_1_1_4_1_1_3_5_[^6_7_8_e~9_d~ { {d~0_a_b_c_d_4_1_3_e_f_4_g_h_4_3_g_h_i_g_e_f_4_g_4_4_g_f_3_g_", "i_g_g_g_f_4_g_g_g_g_g_g_g_g_g_g_g_g_g_g_g_j_g_k_g_g_g_g_g_g_g_l_g_j_g_g_j_g_g_>,g_g_g_m_m_g_g_k_g_>,m_g_n_k_k_>,k_k_m_g_o_p_q_r_s_t_u_u_v_w_x_y_z_A_B_C_>,m_m_>,n_n_D_>,n_>,D_>,D_>,>,>,>,>,>,>,>,>,>,>,", ">,>,>,>,>,>,>,E_E_>,>,>,>,>,F_G_G_>,H_H_I_>,>,J_F_I_G_J_I_>,G_E_I_F_E_J_F_>,I_G_I_K_H_F_H_I_F_>,K_K_K_K_I_H_I_I_J_K_J_J_L_M_N_O_P_Q_R_S_T_U_V_W_X_Y_Z_L_J_J_J_J_J_J_J_J_`_J_J_J_J_ :L_J_J_J_J_ :.:.:.:.:", "J_J_+:L_+:`_+:.:`_.:J_@:L_ $L_@: $ : :L_L_+:L_ $ : :J_@:@: $@: $ $ $ : $ $ : $.:.: :@: $ $ $ $ $@:+: $ $ $ $ $ : $ $ $ $ $#:$:%:&:*:=:-:;:>:,:':):!:~:{:]:^: $ $ $ $ $ $/: ${:(:^:_:]:/:::_:^:{:/:/:_:(:", "::::^:_:/:/:::]:/:(:(:/:]: $::::/:/:_:/:_:(:(:_:(:/:/:(:/:/:/:/:::{:/:(:/:/:/:/:/:/:/:/:/:/:/:/:<:/:[:/:/:}:/:/:/:<:/:<:|:/:1:2:3:4:5:6:7:8:9:0:a:b:c:~#/:~#<:|:/:<:|:~#d:/:d:d:d:[:[:~#|:~#c:c:<:[:d:~#", "d:d:c:d:c:<:~#c:~#~#d:~#~#d:d:~#~#~#|:~#~#~#~#~#~#e:~#~#e:~#f:~#~#~#g:e:~#h:~#~#~#h:~#~#h:h:~#h:~#i:h:j:f:h:~#h:h:j:g:e:e:h:g:k:l:m:n:o:p:q:r:s:t:f:u:h:j:u:g:g:e:g:g:j:g:g:g:g:g:j:j:g:g:g:g:g:g:g:g:g:", "g:g:g:g:g:v:g:g:w:g:v:v:v:x:g:g:g:v:v:y:g:w:v:g:z:x:z:y:w:g:z:w:w:v:g:w:A:z:z:w:x:v:v:g:x:v:g:y:z:B:x:z:y:A:w:A:y:g:A:z:B:z:w:A:A:A:z:A:A:y:y:A:y:A:y:A:A:A:A:A:A:A:A:A:A:A:C:A:D:E:A:A:A:A:A:A:A:A:F:A:", "G:D:A:E:A:A:A:A:D:A:E:H:G:H:I:F:H:I:D:I:C:G:F:E:H:I:A:F:F:G:G:H:I:I:G:I:C:C:H:C:G:G:H:H:I:I:H:I:I:H:I:I:I:H:I:I:I:I:G:I:I:I:I:I:I:I:I:J:I:I:K:I:L:K:I:K:I:K:L:I:M:M:I:L:I:I:K:I:I:N:J:I:L:N:L:J:M:O:P:I:", "K:I:M:M:O:M:P:J:J:O:L:O:O:P:K:O:I:M:O:M:M:M:N:N:O:O:P:M:M:O:O:O:P:O:O:O:O:O:O:O:O:O:O:O:O:O:O:O:O:O:O:O:Q:R:O:S:O:S:O:O:R:O:Q:T:O:O:R:O:S:Q:U:U:Q:T:O:V:Q:R:A,S:V:T:A,S:S:V:Q:O:U:Q:T:T:A,U:U:T:O:V:U:A,", "R:R:A,A,U:A,A,U:A,Q:V:V:V:R:A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,W:A,X:Y:A,X:A,Z:A,Z:`:A,W:X:A,W:`:X:X: <-<,<><-<><*<=<><'<-<'<=<,<'<'<*<*<;[;[7+>[-[,[>['[7+-[*[;[-[*[*[>[,[;[*['[=[*['[,['['[,[>[*[-['[;['[>['['['['['[;[;[>['[,['['['[,['['['['['['['['['['['['[", "'[)[!['['[!['[~['[{[{[~['['[~['[~['[][!['[)[)[~[~[~[![][][)['[^[][^[![![~[][)[{[/['[^[^[^[^[~['[^[)[][![^[^[~[][^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[^[([^[_[:[^[^[:[:[<[^[([^[:[^[[[_[<[^[:[:[:[", "[[([<[:[:[:[([^[}[z><[:[^[<[^[:[z>[[:[z>^[z>z>}[z>^[}[([}[}[<[z>z>z>z>z>z>}[z>z>z>z>}[z>z>z>z>z>z>z>z>z>z>z>z>z>z>z>z>z>z>z>|[z>z>1[2[|[3[z>2[z>|[z>z>|[1[z>2[1[2[3[|[1[z>2[1[4[3[2[1[|[z>2[3[2[z>1[1[z>", "1[4[5[4[4[4[5[4[3[5[4[4[6[3[|[6[4[4[4[5[6[4[4[4[4[4[4[4[4[4[4[4[7[4[4[4[4[8[4[8[7[4[4[9[4[7[7[8[8[0[4[a[4[0[8[a[b[a[4[b[8[9[7[8[9[9[4[c[0[4[8[c[c[0[a[c[9[a[7[8[c[9[a[0[0[9[9[7[c[7[b[c[0[9[9[c[9[c[9[9[", "c[c[c[c[c[c[c[c[c[c[c[c[c[c[c[d[c[c[c[c[e[c[c[c[e[d[c[c[c[c[d[c[f[c[e[d[g[f[d[c[g[c[d[h[d[i[e[e[j[j[h[h[h[g[g[h[f[f[h[i[h[j[h[h[i[c[h[h[h[g[j[h[j[i[h[h[h[g[g[h[h[g[h[h[h[i[h[g[h[h[h[h[h[h[h[h[h[h[h[h[", "k[h[k[l[h[l[h[h[m[h[h[h[m[k[l[h[n[k[k[=.l[h[m[o[k[h[k[o[m[=.k[h[=.k[=.=.k[n[o[n[n[h[=.=.o[p[=.=.p[p[=.=.n[=.k[o[=.=.=.=.=.o[o[=.o[=.o[=.=.=.=.=.=.=.=.=.=.q[=.r[q[=.=.s[=.r[r[=.=.q[s[=.=.=.s[t[=.s[=.q[", "u[=.q[q[t[=.q[t[s[s[=.q[u[v[v[q[w[q[t[q[u[v[w[r[w[t[v[u[v[s[r[u[w[v[v[q[t[v[v[u[v[v[t[v[v[t[u[v[v[v[v[v[v[v[v[v[v[v[v[v[v[v[v[x[v[y[v[v[v[z[v[y[A[z[v[v[v[v[v[y[v[B[B[v[x[;,y[y[z[z[v[v[z[z[x[C[A[B[A[v[", "z[;,A[x[y[;,C[z[B[B[B[C[;,z[y[C[;,;,;,;,C[;,;,z[;,B[;,;,;,;,;,;,;,;,;,;,;,D[E[;,F[;,F[;,;,D[E[;,;,D[D[F[D[F[D[E[G[E[;,E[;,F[F[H[E[E[E[D[H[F[F[F[I[J[H[I[J[J[J[H[F[I[J[J[I[I[;,G[I[J[;,D[D[G[J[F[J[J[H[G[", "H[J[J[J[J[H[J[J[J[J[J[J[J[J[J[J[J[J[J[J[K[J[K[J[J[J[J[J[J[J[K[L[J[J[J[J[L[M[M[&!L[J[L[N[&!M[O[M[M[K[K[N[N[L[M[P[N[O[M[&!L[M[P[&!&!M[N[O[&!M[P[O[&!N[&!&!P[L[&!N[&!N[&!K[&!P[&!&!N[&!&!&!&!&!&!&!&!&!&!&!", "Q[&!R[Q[Q[S[R[&!S[S[T[S[R[S[U[&!V[T[&!S[Q[R[Q[U[R[&!U[R[W[S[T[S[U[T[Q[W[V[W[Q[&!T[V[U[V[S[W[R[V[W[U[U[W[W[R[R[S[V[W[W[W[U[U[W[T[W[W[W[W[W[U[W[W[T[W[W[W[W[W[W[W[W[W[X[W[X[Y[W[W[W[X[W[Z[W[Z[W[`[Z[W[ }W[", "W[`[W[Y[j) }W[W[X[ }j)X[`[X[Y[X[.}j)X[j)`[j)Z[Y[j)X[`[.}`[j)j)`[.}Y[Y[j)`[.}`[W[j)j)`[`[`[j)`[j)`[j)`[j)j)j)j)j)j)j)j)+}+}j)j)j)j)j)@}j)@}j)+}j)@}#}$}j)j)j)j)+}j)@}+}+}$}$}j)+}@}j)%}&}&}&}#}*}%}%}*}j)", "*}#}*}#}#}&}%}@}*}*}*}%}&}%}&}*}%}%}%}%}*}%}#}&}&}#}%}%}%}%}%}%}%}%}%}%}%}%}%}%}%}=}%}%}-}%}%}%}%}-}%}%}%}%}%}=}-}%};}=}-}=}%}>}-}%}=},}%}-}'}-},},};};}=})},}'})}'}%}%};}'};}'}>};},})}'}'}>}'}=},}'}'}", "'}'})}'}'})}'}'}'}'}'}'}'}'}'}'}'}'}'}!}'}'}~}'}'}'}~}'}{}'}'}'}'}'}'}'}]}'}]}!}]}'}!}~}{}^}]}^}{}'}]}^}/}^}!}]}^}(}'}]}/}(}^}^}(}]}(}~}^}/}^}{}^}{}'}^}!}^}^}^}^}^}^}!}(}/}^}^}^}/}^}^}^}^}^}^}^}^}^}^}", "_}:}:}^}:}^}<}^}:}^}:}<}[}^}:}_}<}[}<}:}}}[}:}:}<}^}<}_}<}|}<}[}-,-,[}:}-,}}-,<}:}}}^}|}-,[}-,}}-,-,}}|}<}|}-,-,|}|}-,-,-,|}}}-,[}-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,1}-,1}-,-,-,-,1}-,2}-,3}2}4}2}1}5}", "2}5}-,-,1}5}6}6}-,-,3}5}5}5}3}-,2}-,7}2}2}1}2}7}6}7}1}7}4}4}5}1}6}6}4}7}7}7}7}7}6}7}3}3}7}7}5}7}7}6}7}7}7}7}7}7}7}7}7}7}7}7}7}8}9}7}7}8}0}7}9}7}a}7}7}8}7}7}7}7}0}a}9}8}9}0}9}8}7}b}9}0}c}7}b}9}b}a}a}0}", "b}a}a}b}d}c}d}a}7}a}b}b}c}c}b}b}d}c}b}9}b}b}c}8}d}b}b}b}b}b}b}b}a}b}b}b}b}b}b}b}b}b}b}e}b}e}b}e}b}b}b}b}f}e}e}b}e}f}b}b}g}e}e}b}g}h}h}e}b}i}f}j}f}i}b}b}j}e}k}i}e}i}h}h}k}g}g}i}j}h}k}f}h}g}h}h}h}h}h}h}", "h}h}f}i}g}h}h}h}h}h}h}h}h}h}k}h}h}h}h}h}h}l}m}n}h}h}n}h}h}h}l}o}h}h}h}l}h}m}h}h}h}h}n}n}p}h}m}l}n}o}n}q}r}o}o}n}n}q}l}q}m}p}p}q}p}r}n}p}n}q}n}l}r}r}q}l}m}r}p}p}p}p}p}q}p}p}q}r}p}p}p}q}p}p}p}p}p}p}p}p}", "p}s}s}s}s}s}t}u}p}p}s}t}p}p}t}p}v}s}s}p}p}w}v}p}w}x}v}v}p}p}w}k)s}u}x}v}v}u}k)w}x}x}x}k)k)k)p}w}k)u}w}k)w}k)u}k)u}k)k)x}v}w}u}k)w}k)k)k)u}u}x}k)k)k)k)k)k)k)k)k)k)k)y}k)k)k)k)k)k)k)k)k)y}z}k)k)z}k)k)k)", "y}A}k)k)B}A}B}y}C}z}z}k)k)A}k)B}B}D}B}k)D}z}E}E}C}D}E}D}E}C}E}D}D}A}D}C}B}C}D}D}D}C}D}D}D}D}D}D}D}C}D}D}D}D}D}D}D}D}D}D}D}D}D}D}D}F}D}D}D}D}D}G}D}D}D}F}D}D}H}G}D}H}I}G}H}I}D}F}G}J}I}F}F}J}J}F}D}F}G}D}", "z,G}J}G}G}J}z,G}J}K}G}z,G}J}F}J}K}F}z,J}K}K}z,J}G}z,G}z,J}K}K}z,G}z,G}z,z,z,L}z,z,z,L}M}z,z,z,N}z,z,M}z,z,z,z,z,z,z,z,O}N}z,M}N}z,P}M}L}z,P}L}z,M}Q}P}O}L}M}z,R}z,L}P}N}P}z,R}R}N}Q}Q}L}N}Q}Q}P}Q}N}L}Q}", "N}Q}M}Q}P}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}P}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}Q}S}Q}Q}Q}T}Q}Q}Q}S}Q}U}T}T}T}V}W}T}X}S}T}W}S}W}W}W}V}U}V}V}Q}U}X}Y}Y}V}U}Y}Y}U}V}Y}U}T}Y}U}Y}W}V}Y}Y}U}Y}T}W}X}Y}Y}Y}Y}Y}U}Y}X}Y}Y}Y}Y}Y}Y}Y}", "Z}Y}Y}Y}Y}Y}Y}Y}`}Y}Y}Z}Y}Y} |Y}.|`}Y}+|Y}Z}Y}Y}Z}`}Y}+|Y}Y}@|+|Z}Y}Y}+|Y}@|Z}Z}@|Y}Z} |`}@|#|Z}#| | |`}#|`}#|`}Z}#| |#|.|#|.| |#|#| |#|#|#|#|#|#|`}#|#|#|#|#|#|#|#|#|#|#|$|$|#|#|%|#|%|&|#|#|$|*|=|%|&|", "*|%|%|#|#|$|#|%|#|$|#|$|*|*|%|&|#|=|*|$|#|$|*|&|*|-|#|&|=|=|&|%|=|;|%|&|=|*|*|-|=|-|%|=|-|-|%|-|-|*|&|-|-|=|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|>|>|-|-|,|-|>|'|)|,|)|-|>|-|-|,|)|-|'|,|,|-|)|)|!|!|,|~|-|", ")|'|'|>|,|3 ~|~|~|'|!|'|'|)|3 3 3 3 !|3 3 '|3 3 3 ~|3 3 '|3 >|3 !|3 3 3 3 3 3 3 3 3 3 3 {|{|]|3 3 3 3 3 ^|^|]|3 3 /|^|{|/|3 3 {|/|/|{|^|{|^|3 /|(|3 3 /|]|_|{|{|3 /|^|(|]|{|^|(|:|:|]|/|_|]|:|:|:|3 _|{|", "^|_|:|:|:|/|:|:|(|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|:|<|:|:|:|:|<|[|[|:|:|[|}|||[|:|:|:|||:|[|<|:|}|1|}|:|:|:|}|:|:|2|}|:|<|<|||<|||[|:|<|2|<|}|1|g ||}|||<|}|}|||g 1|g g g g ||g g ||||g g ||g }|}|g 1|g g ", "g g g g 3|4|g g g g 4|g g 5|6|g g 7|7|3|3|g g 4|3|g 3|g 8|5|9|5|6|4|4|g 3|8|6|4|7|7|6|4|5|5|6|4|5|8|5|8|8|8|8|7|7|8|6|6|8|8|8|8|6|9|8|9|5|8|5|8|8|8|8|8|7|8|8|8|8|8|0|8|8|8|8|8|a|8|b|8|8|8|8|8|8|8|8|c|", "d|c|b|e|a|a|d|0|8|c|8|0|e|e|0|e|b|a|e|e|d|c|b|c|b|8|0|b|a|0|c|e|8|c|0|F$F$d|c|d|e|F$0|F$F$d|b|F$F$d|F$d|F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$F$f|F$F$f|F$g|F$h|i|F$F$F$g|i|F$F$F$F$F$i|g|f|h|h|F$g|h|g|", "j|h|i|h|k|h|l|h|i|l|f|g|j|j|i|f|l|i|k|l|h|h|i|j|k|j|j|f|j|j|k|j|j|i|j|j|k|j|j|j|j|j|j|j|m|j|j|j|j|j|j|j|n|j|j|j|j|n|j|j|o|j|n|j|n|j|i)n|m|p|o|j|q|q|n|p|j|r|o|p|p|q|i)p|m|n|p|q|o|o|n|n|j|q|r|n|i)n|n|q|", "i)r|i)o|q|i)r|i)i)r|i)i)i)i)r|i)i)i)i)i)i)i)i)i)i)i)i)i)i)i)i)i)i)i)s|s|t|i)s|i)u|i)u|u|t|i)s|v|t|v|u|i)w|i)w|x|u|w|i)i)x|x|s|i)s|i)x|v|u|y|u|s|i)v|t|v|x|x|x|y|v|y|y|x|y|t|t|x|t|y|y|y|t|y|y|x|y|y|y|y|", "y|y|y|y|y|z|y|y|y|y|y|y|z|y|y|y|y|y|A|y|z|B|A|z|A|y|y|y|y|y|A|A|A|B|A|C|y|z|D|B|y|D|C|D|y|E|D|B|C|C|D|D|E|C|D|D|D|F|E|D|C|C|D|E|D|y|z|D|D|D|E|D|D|D|D|D|C|C|D|D|D|D|D|D|D|D|D|D|D|D|G|H|H|D|G|G|D|D|D|D|", "I|D|J|D|D|D|D|D|G|K|L|H|H|L|G|K|G|D|K|H|H|D|H|D|L|M|G|H|H|M|I|M|J|M|H|J|M|H|J|M|L|M|I|I|K|M|I|M|I|M|M|M|L|M|L|M|M|M|M|M|M|M|M|M|M|M|M|M|M|M|M|N|O|M|M|M|M|M|N|M|P|O|O|M|M|M|M|O|M|Q|N|Q|R|M|M|N|N|M|R|Q|", "&+O|O|Q|N|R|R|O|R|P|S|O|P|P|O|O|P|O|S|S|&+&+&+&+Q|&+&+Q|R|R|Q|&+R|&+&+P|&+R|&+&+&+&+&+&+&+&+&+&+T|&+U|&+T|&+&+&+&+&+&+T|V|U|T|&+T|V|U|U|&+&+W|&+&+U|&+U|&+T|W|U|V|W|U|X|U|U|Y|&+&+T|V|U|Z|Y|U|Z|Z|Y|Z|Z|", "Y|Y|V|Z|Y|Y|Y|Y|Y|Z|Y|W|X|Y|Y|W|Y|X|Y|Y|Y|Y|Y|Y|Y|Y|`|Y|Y|Y|`|Y|Y|Y|Y|Y| 1.1+1`|.1Y|+1+1Y| 1`|.1`| 1@1Y|@1`|Y| 1@1+1.1.1`|@1#1#1@1@1Y|@1#1`|.1#1Y|#1@1$1+1 1`|$1 1@1@1 1$1$1$1$1@1+1.1#1$1@1$1$1$1 1.1.1", "$1$1.1$1$1$1$1$1$1$1%1%1$1$1$1&1&1$1$1$1$1$1$1&1%1%1$1*1=1%1-1;1$1&1$1&1%1$1&1$1%1=1-1$1=1*1$1*1&1%1=1;1%1=1%1*1=1=1=1;1*1-1>1>1;1$1%1=1>1&1-1=1=1=1=1=1>1=1=1;1=1=1=1=1=1=1=1=1=1=1=1=1,1=1'1=1=1=1=1=1", ")1=1'1,1=1,1=1'1!1~1,1~1,1{1!1=1{1{1'1{1,1)1'1~1!1{1!1'1,1]1!1~1)1,1!1]1,1)1{1]1{1!1!1~1!1~1]1]1]1]1~1)1]1]1]1!1]1]1]1]1!1]1]1!1)1]1]1]1]1]1]1]1^1^1]1]1]1/1]1]1]1]1]1(1_1_1/1]1:1]1^1/1(1:1/1]1_1]1_17$", "<1^1<17$/1]1<1^17$/1_1/17$<1(17$:17$]17$7$_1:1:17$:1^17$7$7$7$7$7$7$_17$7$7$:17$:17$7$7$7$7$7$7$7$7$[17$7$}17$7$7$}17$7$7$}1[17$7$[1[17$|17$7$7$117$117$[1[121}17$21317$|1417$7$}141|1|1}1|17$21417$21|1", "1121|121|131|1|1|1|1|1212131[1213131|1|131|1|1|1|1|1|1|1|1|151|1|1|1|1|161|1|1|1|1|1|171|18181|161|191918101518191|161|1|19101|161a1916161a151a171517101717171617171717171716191a1715161a171017171a17171", "7171717171717171717171717171717171b17171717171717171b1c1d1c1d17171e1e171f1e1c1e17171g1d1f1b1g1d1b1d1c1f1f1d1f1g1d1A.g1A.A.f1f1g1d1A.b1A.f1e1g1g1f1d1A.A.A.A.A.A.f1A.A.A.A.A.A.A.A.A.A.A.A.A.h1A.A.A.A.i1", "A.A.h1h1j1k1l1A.h1k1i1A.A.A.l1h1h1m1j1j1h1i1h1i1A.i1i1m1h1j1i1k1n1l1m1k1h1m1m1i1k1i1m1h1m1j1k1m1l1n1j1n1i1m1m1m1m1i1j1m1n1m1m1m1m1m1m1m1m1m1o1m1m1m1m1p1m1p1m1m1m1q1p1r1m1s1m1t1m1m1p1q1m1p1q1m1p1o1s1s1", "r1n#t1m1q1n#n#s1r1p1q1r1r1o1s1t1q1s1n#o1s1s1n#n#q1p1r1t1n#n#s1n#n#n#n#n#r1n#n#n#n#n#n#n#n#r1n#n#n#n#n#u1n#n#n#n#n#u1n#n#v1w1v1v1n#n#x1y1z1n#n#u1x1n#v1u1n#x1w1x1z1n#y1z1y16+6+w1n#y1y1z16+y1u16+y1y16+6+", "v16+y1u16+6+6+y16+y16+6+v16+6+6+6+z1y1z1u1w1y16+6+6+6+6+6+6+6+6+A1B16+6+6+B16+6+A16+6+C1A1D16+B1E1B16+B16+C1C1B16+6+A1C16+F16+E1D1E1C16+D1F1B1C16+F1E1F1D1B1F1A1F1G1C1F1F1C1G1F1G1D1F1E1F1F1A1F1E1F1F1F1", "F1F1F1F1F1F1F1F1F1F1F1H1F1F1I1F1F1F1J1F1J1K1F1I1F1K1H1H1J1F1I1F1H1H1J1F1L1F1M1K1F1H1H1M1L1J1K1F1F1K1H1K1I1I1M1M1I1L1F1L1K1L1H1I1M1K1L1L1M1L1M1M1M1J1L1K1K1K1L1K1L1L1L1H1M1L1L1L1L1L1L1L1N1L1L1L1L1L1L1L1", "L1L1L1N1N1L1O1L1L1O1O1P1L1L1N1Q1O1P1N1R1S1S1O1L1S1S1T1N1S1T1T1R1N1Q1O1T1Q1T1Q1T1N1O1R1T1R1Q1S1Q1T1Q1N1T1R1T1R1T1S1T1T1T1Q1T1T1T1T1T1T1T1T1T1T1T1T1T1T1U1T1T1U1T1U1T1U1T1V1T1W1X1X1T1T1V1T1T1X1Y1T1U1V1T1", "Z1V1T1U1Y1T1Z1Z1`1V1U1Z1`1V1W1Z1W1X1T1Y1Z1Y1W1W1W1Z1Z1Z1W1Z1`1Z1W1T1Z1U1`1Z1Z1Z1`1Y1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1Z1 2.2Z1+2Z1 2@2Z1@2Z1Z1Z1@2@2.2Z1#2Z1 2Z1.2@2 2 2+2 2.2@2$2$2$2.2 2 2%2.2", "#2%2$2$2Z1#2#2$2$2%2 2$2$2$2%2.2Z1#2$2@2#2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2$2&2*2$2$2=2$2-2$2;2&2$2&2&2-2$2*2&2;2=2-2*2;2>2=2-2=2=2*2*2$2&2>2-2-2&2&2,2,2,2;2&2;2=2,2>2;2=2;2,2>2,2>2,2,2*2,2;2,2,2", ",2>2,2,2,2,2,2,2,2,2,2,2,2,2'2)2,2,2,2,2,2,2,2)2,2'2,2,2,2!2,2,2)2~2~2'2,2'2{2]2,2,2'2'2)2)2'2~2^2'2^2~2'2!2)2{2)2]2!2'2]2~2]2!2!2!2,2]2{2)2'2{2!2^2{2{2]2!2!2!2!2{2!2!2!2!2!2!2!2!2!2!2!2!2!2!2!2!2!2!2", "!2!2!2/2!2/2(2_2(2m#!2/2/2(2_2:2(2<2!2_2/2(2[2_2(2/2/2:2[2_2:2_2<2!2(2:2<2:2!2/2m#m#:2<2m#<2m#(2(2_2[2:2m#[2m#:2m#m#<2m#m#m#m#<2m#m#m#m#m#m#m#m#m#m#m#m#m#m#m#m#m#m#}2}2m#m#|212}2m#12m#22|2|232}2m#}212", "}242423212|252322222|2}2|232525242m#m#123252522222}25252124232325222225252525252|23242322252522252525252525252627252528252525272525262627272725252927272825202520252a272025272b29252b202828292a202a26252", "62b292b20202b2b2a28202920202620202b272a2020202b2b20202020202b2020202c2020202020202c20202d202d2d2020202d2e202f2c2e202g20202f2f2g2c2c202h2.@d2h2f2e2c2h2h2e202g2d2d2c2c2e202e2f2h2f2d2g2.@f2g2d2f2f2.@.@.@", "h2.@.@.@.@.@f2.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@i2.@j2.@.@.@j2k2.@k2k2l2m2.@i2j2n2l2n2o2k2l2.@.@m2j2i2i2i2l2m2k2j2m2n2o2o2m2k2l2j2n2o2j2n2o2o2j2n2n2o2k2m2o2o2n2o2o2o2o2o2o2o2o2o2o2o2o2o2o2p2q2", "o2o2o2o2o2q2q2r2q2o2o2o2o2o2o2o2p2s2o2o2o2q2t2u2r2u2r2t2s2v2p2s2s2s2p2t2r2v2r2q2v2v2p2t2q2s2s2t2s2s2r2t2r2q2u2s2t2s2v2v2u2t2s2v2t2u2s2s2s2v2s2s2s2s2s2s2s2w2s2x2s2x2y2s2x2z2s2A2s2y2B2x2B2w2y2w2w2x2w2s2", "y2s2z2A2z2z2w2y>y2B2y>B2B2w2A2z2A2x2y>A2z2B2y>z2x2x2s2z2y>y>s2A2B2B2w2y>y>z2z2A2y>y>y>y>y>z2y>y>y>y2y>A2y>y>y>y>y>y>y>C2y>y>y>y>y>C2C2y>y>C2C2y>y>D2y>C2C2D2E2y>y>F2F2C2G2C2H2F2C2G2E2G2F2F2I2H2G2F2G2I2", "D2D2F2C2D2D2D2G2D2H2D2D2I2E2G2D2D2I2D2D2D2D2D2D2D2D2D2D2D2D2D2I2D2D2D2D2D2D2D2D2D2D2D2D2D2J2D2K2D2L2K2K2L2D2D2L2J2D2M2M2M2D2J2D2N2O2D2L2L2P2L2P2K2D2N2D2J2N2L2P2D2O2K2L2P2N2P2M2L2P2J2P2M2P2M2P2P2N2O2P2", "P2P2O2P2P2O2P2P2P2P2P2P2P2P2P2P2Q2P2R2P2S2P2P2T2U2P2P2P2P2P2P2P2Q2V2S2U2U2P2P2Q2U2Q2V2Q2W2Q2Q2V2U2P2S2U2R2W2R2P2P2W2V2W2V2V2S2T2R2S2U2T2T2T2T2R2P2W2S2W2T2V2T2S2S2T2T2T2T2T2T2W2T2T2T2T2T2T2T2T2T2T2T2T2", "T2T2X2X2Y2T2T2Z2Z2T2T2X2T2X2T2T2X2X2`2Y2X2 3Y2T2Z2T2T2Y2.3Z2.3Y2X2.3 3`2Z2 3`2Y2 3+3X2.3.3+3X2T2`2+3Z2+3+3.3+3Z2.3+3X2.3Y2Z2`2.3.3.3.3.3 3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3.3@3#3#3.3$3$3.3#3%3.3.3.3.3.3", "#3@3@3.3@3%3$3@3&3.3#3#3&3&3.3@3#3$3%3*3#3@3*3=3=3.3%3&3%3=3&3@3%3#3=3=3*3*3&3#3*3*3*3*3%3*3*3*3*3*3*3*3*3*3=3*3*3*3*3-3;3*3*3*3*3*3*3*3*3*3-3-3>3;3*3*3*3-3,3-3-3'3-3;3*3>3)3;3*3)3*3,3>3!3)3-3-3*3'3-3", ",3)3*3'3'3'3-3-3'3,3!3'3>3*3)3-3!3)3!3>3,3>3!3!3!3!3-3!3!3,3!3'3!3!3!3!3!3!3!3!3!3!3!3!3!3!3!3~3{3!3]3{3!3{3{3^3{3!3!3!3!3!3{3~3!3!3^3/3(3~3!3(3^3]3]3~3^3!3]3^3_3{3_3(3^3~3]3]3/3/3_3^3]3/3/3/3/3/3/3_3", "_3/3/3/3/3/3(3/3(3(3^3^3_3/3/3/3/3/3/3/3/3/3/3/3:3/3/3/3/3/3<3/3/3:3/3/3:3[3<3}3|3/3<3[3<3:3<3/3}3[38@:3[3[3:3/3<3:3[3<3|3|3<3}3/38@/3}3}3[3<38@[3}38@8@8@138@8@}3[313<38@8@138@8@8@8@[38@8@8@}38@8@8@8@", "8@8@238@8@8@8@8@338@238@8@8@8@8@8@4333532333433343636373638@2363338@436@7323636@238@43636353536323536@6@6353436@6@7363636@5333436@6@6@636343736@6@6@6@636@6@6@836@6@6@6@6@6@936@6@6@6@93036@6@6@036@936@", "6@6@93a3a303b39393836@836@6@c3a36@83c30383d383c3b3a3a3c3d36@c3d3a3c3b3d3b3c3c3c3c3d383b3c3c3c3c3a3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3c3e3c3c3f3c3c3g3f3h3f3h3h3e3c3c3c3f3c3c3c3e3i3e3e3c3j3e3h3h3e3c3i3h3c3z.", "c3h3i3z.h3i3j3z.c3g3j3j3z.z.i3c3g3i3z.f3z.g3z.z.g3z.i3z.z.z.z.j3z.g3z.z.z.z.z.z.z.z.z.z.k3z.z.l3z.z.z.z.m3k3z.l3z.z.n3k3z.m3z.o3k3k3z.n3k3n3z.z.o3k3n3l3z.k3k3n3z.l3J m3m3m3m3m3J o3k3k3J J J J m3J J J ", "J J J J m3J m3o3l3J J J J J o3J J J J J J J J J J J J p3J J J q3J p3q3J J p3J r3p3J p3s3q3J J s3q3s3J J t3r3t3r3s3J p3J J J p3u3v3r3q3s3u3r3s3q3s3s3u3s3t3s3t3v3J s3s3s3s3v3u3s3p3s3s3s3s3s3s3s3s3s3s3s3", "s3s3s3s3s3s3s3s3s3s3s3w3s3x3y3s3s3w3s3s3z3s3A3s3A3x3w3A3E$y3B3E$s3z3E$E$w3s3x3y3E$x3E$z3w3y3A3B3y3E$E$z3A3E$B3x3E$E$E$E$E$E$E$z3w3B3E$E$A3x3x3x3E$B3E$E$E$E$E$E$C3E$E$E$E$D3E$E$E$E$E$E$E$E3C3D3E$F3G3E$", "E$E$G3H3D3C3E$E3G3E$G3E$w+D3F3w+C3C3C3w+F3E3G3G3H3w+F3H3D3E3H3F3w+H3D3E3w+C3C3w+E3H3D3w+H3w+w+E3w+H3w+w+w+w+w+w+w+w+w+w+w+w+w+w+w+I3w+w+w+w+w+J3w+w+K3L3I3L3w+w+M3L3L3w+w+N3w+w+N3N3N3M3w+I3K3J3w+`#J3N3", "L3K3`#`#w+w+J3L3J3M3J3w+M3I3`#`#N3`#I3I3I3`#K3M3`#`#`#`#`#M3`#`#`#`#`#I3`#`#`#`#`#`#`#`#`#`#`#`#`#O3P3`#`#`#Q3`#`#R3R3`#R3O3S3T3T3`#S3`#S3`#`#`#R3`#`#Q3S3`#`#`#R3S3R3Q3`#R3`#P3h h P3T3O3h h O3R3h T3h ", "T3Q3h h R3P3h T3P3h P3h h h h h h h h h h h h U3h h V3W3h h W3U3h W3h U3W3h V3h h U3U3h V3X3W3W3Y3V3L%h U3W3h X3h X3Y3X3U3h Z3U3U3h W3L%X3U3X3Z3W3X3Y3V3V3L%h X3L%Y3Z3L%L%Y3U3L%L%L%Y3L%L%L%L%L%L%L%L%Y3", "L%L%L%L%L%L%L%L%L%L%L%L%`3 4L%.4<@L%L%.4`3.4+4L% 4L%L%@4 4@4L%<@.4@4.4+4L%L%@4L%<@@4`3`3+4`3+4<@.4 4 4@4#4<@+4@4.4#4+4@4<@+4+4.4#4+4+4`3 4<@#4+4<@<@<@<@<@<@<@<@<@<@<@<@<@<@<@<@<@<@$4%4<@%4<@%4%4<@&4&4", "*4<@&4%4&4<@$4*4<@$4&4=4=4%4%4*4=4$4$4&4$4=4}&}&%4*4}&=4}&&4=4*4=4=4%4=4}&*4*4$4}&%4-4}&-4-4-4=4=4=4=4}&}&*4*4}&$4}&}&}&*4}&}&}&}&}&}&;4}&}&>4}&}&;4}&}&}&}&>4}&}&}&,4}&>4}&;4'4}&,4;4>4}&}&;4'4}&'4,4)4", "'4'4}&>4)4'4!4~4;4~4>4!4}&!4!4)4;4!4~4'4!4!4'4)4!4!4!4!4!4!4!4~4~4!4!4'4)4!4!4!4!4!4!4!4!4!4!4{4!4!4!4!4!4!4]4!4!4!4!4{4^4!4!4]4!4/4!4^4(4/4!4!4^4!4!4G@_4(4/4]4{4/4G@G@G@]4G@{4G@_4G@_4G@{4G@^4^4]4G@G@", "G@_4_4G@G@_4G@G@(4]4G@(4_4(4G@G@G@^4G@G@G@G@G@G@G@G@G@G@G@G@G@G@G@:4:4:4<4[4G@<4G@:4[4}4G@G@G@<4:4<4|4G@+@G@:414G@G@:4G@14<4+@+@[4}4+@14<4|4141414}4+@+@+@}4G@G@+@:414}4+@<4+@+@+@+@+@|4+@+@+@14+@+@|4+@", "+@+@+@+@+@24+@+@34+@+@+@+@+@+@24+@4454+@44+@+@24+@+@+@+@+@24645444746424347484548424+@4424843434+@642484648424846424845464+@848474643474646464847484646464746464646464646464646464646464940464646464a464", "64b46404c4c4c4d4c46464c464e4e4c464c4b40404c4c46464a4c494b40494b4d4b4b4d4a4b4d404e4d4d4d4d4d4e4d4d4e4d4b4a4b4d4d4d494d4d4d4d4b4d4d4d4d4d4d4d4f4g4f4h4h4d4f4d4d4d4d4d4d4g4d4d4d4i4d4d4f4d4d4j4f4i4k4g4k4g4", "h4d4g4g4h4f4h4g4k4d4d4g4k4j4k4k4d4g4k4k4k4f4i4i4i4h4k4k4i4j4i4l4j4f4l4l4i4j4l4k4i4i4i4i4i4i4i4i4i4i4i4i4i4i4m4i4i4i4i4i4i4i4n4o4n4i4i4p4q4i4m4i4n4i4n4n4p4k k n4q4m4i4q4n4r4o4q4p4p4p4o4p4p4m4k q4o4r4n4", "p4k q4p4k r4o4p4r4k k r4k k k p4o4r4k p4k k k k k s4k t4k k k u4k k k s4k k k k k k k t4k v4k t4k u4k k w4t4x4u4u4t4s4x4t4s4u4u4v4v4t4w4k v4t4v4t4v4s4v4k w4w4v4s4v4x4x4w4w4k s4y4v4v4y4v4y4w4v4v4v4w4v4", "v4v4v4v4v4v4v4v4v4v4v4v4z4A4v4B4v4v4A4v4v4v4v4v4v4v4z4z4C4v4v4B4D4A4D4B4v4z4D4E4v4E4z4z4v4B4v4E4B4B4A4D4B4v4C4E4E4A4D4E4B4z4A4F4E4F4E4E4E4E4E4F4D4E4E4E4z4E4E4A4E4E4E4E4E4E4E4E4E4E4E4G4H4E4E4I4E4E4I4E4", "E4E4H4E4E4J4E4H4H4H4K4H4G4L4H4H4E4H4J4E4M4G4I4K4M4M4H4M4H4K4M4M4L4K4K4H4J4K4G4L4M4M4L4H4L4L4M4L4M4K4M4M4M4M4K4M4L4M4M4M4M4M4M4M4K4M4M4M4M4N4M4M4N4M4M4O4M4M4M4M4M4O4M4P4M4Q4M4M4Q4R4M4M4R4P4O4O4S4Q4R4P4", "R4M4N4O4M4T4P4R4R4S4R4Q4M4P4T4O4M4R4T4R4O4P4R4S4S4T4T4T4T4T4T4R4M4S4T4S4N4T4S4T4T4T4T4T4T4T4T4T4T4T4T4T4T4T4U4T4T4T4T4T4T4V4T4T4U4W4T4T4X4W4Y4V4Y4U4Z4Z4Y4T4V4T4Y4V4X4Z4X4`4V4Y4W4`4T4U4Z4`4V4U4Z4Y4V4V4", "U4`4`4V4`4Z4W4`4`4`4Y4`4Z4`4`4`4`4`4`4`4`4`4`4`4`4`4`4`4`4`4 5`4`4`4 5`4`4.5`4`4`4`4+5`4 5`4`4`4`4`4+5+5 5.5.5+5`4@5+5+5@5 5@5+5#5.5.5+5.5`4+5@5$5@5`4%5$5$5`4+5%5#5#5$5$5@5.5$5`4$5%5$5$5$5$5$5$5`4$5$5", "%5$5$5$5$5.5$5$5&5$5$5$5$5*5$5$5$5=5&5$5$5$5$5$5&5-5*5*5$5;5&5$5$5-5*5-5$5>5*5*5;5$5;5$5*5-5;5*5H@*5-5&5H@;5=5>5-5>5=5;5;5H@=5H@&5H@H@-5;5>5&5=5;5=5H@H@*5H@H@H@;5H@H@H@H@H@H@H@H@H@H@H@,5H@'5H@H@H@H@H@", ")5,5H@'5!5H@'5,5!5,5H@'5~5)5'5,5H@!5{5!5{5!5{5H@!5]5)5{5!5!5H@~5{5!5]5{5~5]5{5]5{5{5]5)5{5{5{5]5{5{5]5~5)5{5]5{5~5{5{5{5{5{5{5{5{5{5{5{5{5{5{5^5{5{5{5{5{5{5{5{5{5^5/5{5{5{5(5{5{5/5^5(5_5{5(5/5(5/5/5:5", "<5(5<5{5(5{5(5(5(5_5[5<5:5^5[5_5[5:5_5:5[5_5_5_5(5/5[5<5[5_5<5[5[5[5[5[5[5[5[5[5[5[5[5[5[5<5[5[5[5[5[5[5}5|515[5[5[5[5[5[5|5}5|5[525[5[535[545[5}53535[52555[5[515[5}5|5}5[5154545[5|5|53525|545[5[545|5", "25}52545}5453535354545453545254545254555454545454545454545456545454545754545757585954545450505857575454575a5a575b575459505b5758595a5b5b5a59545a56595458545a5a5a54575a5b595950595959565956595959595950595", "9595959595959595959595c59595959595c59595c59595c59595d5c5e59595f595c5g59595c5e5c5c5c54 f5f5c595d595c5h5g5h5e5f5h5g5f5d54 g54 f5d5e54 e5d5h5c54 4 4 g5d54 g5g5g54 g54 e54 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ", "4 i54 j54 k5j54 4 l54 l5l5l54 4 j54 m5n5k5i5i5j5l54 n5m54 i5i5k5m5k5m5n5m5j5j5j54 n5m5o5j5k5n5o5n5k5j5l5o5i5k5o5n5n5n5j5o5n5n5n5n5m5n5n5n5n5n5n5n5n5n5n5n5n5p5n5n5n5n5n5q5n5n5n5n5q5n5q5n5p5r5r5n5s5s5n5", "q5n5n5t5n5q5t5u5r5s5u5p5q5t5u5v5u5t5u5t5r5u5n5v5v5n5u5v5r5v5u5v5v5u5u5u5u5u5u5r5r5u5u5u5u5u5u5u5u5u5u5u5u5u5u5w5x5y5y5u5y5u5u5u5z5y5y5A5u5y5u5u5u5B5y5x5u5y5y5A5u5C5y5z5w5u5B5B5B5y5z5x5y5u5B5z5C5x5z5B5", "C5A5C5z5y5A5A5z5A5z5z5z5A5z5w5B5z5A5A5A5A5A5A5A5A5A5A5B5z5A5A5A5A5A5A5A5A5A5A5A5A5D5A5A5E5F5E5G5F5D5G5A5A5H5A5H5E5F5G5F5A5A5E5A5D5H5A5F5I E5H5E5G5A5I5D5E5F5I A5I D5E5I G5G5I D5D5I5I5I E5E5I H5G5F5D5I ", "D5I D5I I I I I I I I I I I I I I I I I I J5I I K5L5M5J5I J5N5L5J5J5I O5I I I I N5J5P5O5I M5I P5M5O5I O5O5O5I P5N5J5M5L5J5O5O5L5O5M5P5K5K5N5O5O5P5O5M5O5P5L5K5K5O5O5M5O5O5O5K5O5O5O5O5O5O5O5O5O5Q5R5O5O5", "O5O5O5Q5Q5O5O5Q5O5O5S5T5S5%+Q5O5S5T5U5%+R5T5Q5R5R5S5Q5Q5R5V5U5%+R5%+Q5T5O5T5S5V5T5T5U5Q5S5V5T5%+%+V5V5%+T5U5%+%+V5%+U5%+U5%+%+U5%+%+U5%+%+%+%+%+%+%+%+W5%+%+%+W5%+%+%+%+X5%+%+Y5W5Z5%+%+%+%+`5W5 6 6`5%+", "%+%+X5W5W5%+Z5X5y. 6Y5Y5Z5 6X5y.`5%+y.Y5Y5Y5%+X5Y5y.Y5y. 6`5`5y.`5`5Z5y.y.y.Z5`5 6y.y.y.y.y.Y5y.y.y.y.y.y.y.y.y.y.y.y..6y..6y.+6y.y.@6.6y.y.y.@6.6+6y.#6y.#67..6+6+6$6+6y.@6.6+67.$6%6$6$6%6$67.y.@6#6$6", "%6.6#67.#6+67.@67.7.7.$67.#6#6%6#67.%67.7.7.7.#67.7.#67.$67.7.7.7.7.7.7.7.7.7.&67.*67.7.*6&6&6=67.-67.7.;67.-6&6=6*6&6-6-6&67.*6*.;6*6;6-6-6*.>6-6>6*.&6*.=6*.=6=6*67.-6-67.=6>6;6*.=6>6=6*.*.=6>6*.*.*.", "*.*.*.*.=6;6*.*.*.*.*.*.*.*.*.*.,6*.*.*.*.'6*.*.*.'6*.*.*.)6)6*.'6*.*.*.*.*.,6)6'6)6!6*.'6F ,6~6*.{6'6~6~6{6)6{6{6F *.{6F )6F !6~6F ,6!6!6!6F '6!6F '6)6!6~6~6F F ~6F ,6F F F F F F {6F F F F F F F F F ", "F F F ]6F ^6^6F F ]6F F F F ]6F F /6(6^6F (6F F /6_6_6^6:6^6F (6_6_6<6:6<6(6_6^6F F <6<6<6_6^6<6_6(6(6:6(6]6<6<6<6]6<6<6<6<6(6<6<6(6(6/6<6(6<6<6<6<6<6<6<6<6<6<6<6[6}6}6<6}6<6<6<6[6|6D$<6[6<616<626}6<6", "|616}6D$<6<63636162616}636|616}6D$|636|636D$[6[626162626D$2616[6161616D$16D$36D$D$D$163636D$26D$D$D$D$D$D$D$D$D$D$D$D$D$D$46D$D$D$D$D$D$D$D$D$56D$D$D$6676867%D$D$86D$4646967676D$D$66665656D$767%669686", "D$867%7%7%667%665656764656867%7%567%7%865646867%86867%7%7%967%7%7%7%7%7%067%7%7%7%7%a67%7%7%7%7%b6a67%06a6c606b6067%7%067%0606a67%06a67%7%7%d6d6e6e6d6d6b6d6c6b65+7%7%5+5+7%d65+5+5+5+c65+d6b65+5+b65+5+", "5+c6e65+5+5+5+5+5+5+5+5+5+5+5+5+5+5+5+5+5+f65+5+5+5+5+g6h65+i6f65+h6f6h65+h6f6h6f65+f6j6k65+g65+5+$+$+5+f6j6g6j65+5+h6i6j65+h6$+5+f6$+k6k6$+$+$+i6h6k6i6h6$+$+j6$+i6$+j6$+$+h6$+$+$+$+$+$+$+$+$+$+$+$+$+", "$+$+$+$+$+$+l6m6$+n6o6p6m6m6$+$+$+$+l6q6l6m6p6n6p6$+l6$+$.m6$.q6l6n6n6q6m6o6m6m6n6p6$+q6$.n6p6p6n6$.o6$.m6q6n6p6q6q6n6$.n6$.m6$.$.p6$+p6$.$.o6$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.r6$.$.$.s6$.$.$.$.$.t6u6t6$.", "t6s6r6$.v6r6v6x.w6t6s6s6s6x.v6t6t6v6t6v6s6w6x.x.v6$.t6s6u6t6v6w6r6x.v6v6w6u6w6v6x.x.x.x.u6x.x.x.u6x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x.x6x.x.y6z6A6y6x.y6y6z6z6B6x.z66.A6x.y6x.z6A6C6y6x6C6x6x6z6x6x.x.", "6.6.C66.6.z6C66.y6C6z6B6x6x66.6.B66.x66.6.A6B66.x66.6.6.6.C66.6.6.x66.6.6.6.D66.6.6.6.6.6.D66.6.E66.D6D6D6F6G6G6E6&.D6G66.H66.E6D6D66.G66.D6D6F6H66.D6&.&.D6H6G66.E6I6G6F6H6F6H6&.&.G6G6G6F6F6G6&.H6&.&.", "E6H6&.6.&.&.&.&.&.&.&.&.&.&.&.&.&.&.&.&.&.&.&.J6K6&.&.&.L6J6&.&.M6J6&.L6N6&.L6&.K6&.&.&.J6L6K6K6M6J6J6J6J6L6K6K6O6N6K6O6J6L6u.u.L6N6M6N6L6O6L6u.N6u.u.L6u.K6L6u.N6M6M6K6u.O6O6u.u.O6u.O6u.u.u.u.u.u.u.u.", "u.u.u.u.P6P6u.Q6R6u.u.P6R6u.R6P6R6R6u.S6R6T6R6u.U6R6Q6Q6u.u.Q6U6P6T6S6P6T64.4.P6T6U6S6u.U6T6S6Q64.U6u.Q64.4.4.4.4.R64.Q64.4.4.Q64.Q6T64.4.S64.4.4.4.4.4.4.4.4.4.4.V64.4.4.4.4.4.4.4.4.4.4.W6W6X64.4.V6V6", "V64.H H Y6Y64.Z6X6H 4.V64.Y6W6H X6X6X6Z64.Y6Z6V6H X6`6X6Z6`6H `6`6`6H H `6H Z6H H X6Z6H H H X6`6`6H H H H H H H H H H H H H H 7.7H +7H @7H H 7+7H H H H H @7H .7 7H H @7H @7#7+7v+$7$7H @7H .7H .7$7 7", " 7#7@7#7#7#7v+v++7$7$7 7v++7.7.7.7#7v+$7#7+7v+v+v+v+@7v+v+$7v+v+v+v+v+v+v+v+v+v+v+v+v+v+v+v+v+%7v+v+&7v+v+v+*7*7%7v+4+v+*74+&7&7&7&7v+=7v+v+4+*7=7v+%7-7=7;7=7%7v+=7&7-7-7%7;74+4+-7=7&7&74+%7%7*7-7=74+", "4+4+%7;74+4+-74+4+4+4+4+=74+4+4+4+4+4+4+4+4+4+4+4+4+>74+4+4+,7'74+4+)7)7)74+4+4+!7>74+,7,7!74+)7'7)74+'7)7,74+>7)7#+!7,7#+'7#+'7#+#+~7!7!7'7~7#+!7'7)7#+#+#+~7)7'7#+'7#+#+#+>7#+#+#+#+#+!7!7#+#+#+#+#+#+", "#+#+{7#+#+#+#+]7{7#+#+#+^7#+{7/7(7#+_7(7_7]7#+#+#+_7_7#+:7:7_7:7]7/7(7#+^7#+^7/7{7]7]7(7_7:7{7^7^7(7/7]7:7#+_7/7/7_7:7(7/7(7/7/7:7/7/7:7/7/7/7/7/7/7/7/7/7/7/7/7/7/7/7/7<7/7<7/7/7[7/7}7/7<7|7/7/7<7l#<7", "/717}7[7[717[717l#/727<7l#|717|717l#}7|7[7l#[7[7|7[7l#[7l#}7}7l#<7l#27}717|7l#|7}7<7l#}7l#l#|7l#l#l#l#}7l#l#l#l#l#l#l#l#l#l#l#l#l#37l#374737l#37375767l#l#l#l#47374757l#47477757l#4737!#37!#7737l#57!#47", "37774777878767678747!#675787575777!#6747!#!#!#7757!#!#87676787!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#97!#970797a7b7a7b7b7c7a7b7!#!#b7b707!#!#07b7c7!#!#97a7b7:@d7c7a79707a7a7d7d7:@b7b7b70707d7:@97", "97:@07:@:@c7:@:@:@d7:@d7:@:@:@:@:@:@:@:@:@:@:@e7f7:@:@:@:@e7e7g7:@g7e7h7h7:@f7e7:@f7e7g7i7j7g7g7f7:@:@i7j7e7f7k7j7i7g7:@g7i7j7i7i7k7i7h7e7h7k7k7k7k7h7k7i7k7k7h7k7i7j7k7k7k7g7h7g7k7k7k7k7k7k7k7k7h7k7k7", "k7k7k7l7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7k7m7k7l7k7k7k7k7m7m7l7m7k7m7u+k7k7k7m7C$k7C$l7C$C$u+l7C$m7m7l7l7u+C$l7m7l7l7u+u+C$l7k7C$C$C$C$C$m7C$C$u+C$C$u+C$C$C$C$C$C$C$C$C$C$n7C$C$C$C$C$C$C$C$C$C$", "C$n7C$C$C$n7C$n7C$C$C$n7n7n7C$n7C$C$n7C$n7n7n7n7n7C$n7C$n7C$n7n7C$n7n7C$n7n7n7C$n7n7C$n7n7n7n7C$n7n7n7n7n7n7n7n7n7n7n7n7n7n7n7n7o7n7n7n7n7o7o7n7p7p7n7o7p7o7o7n7p7o7o7p7n7G p7p7o7o7n7p7n7n7n7n7o7p7n7p7", "n7p7o7p7n7n7o7o7o7n7q7q7G G n7n7q7o7p7q7q7p7q7G p7G q7q7q7q7p7o7q7q7o7q7q7o7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7q7r7q7q7q7q7q7r7r7q7q7r7q7r7q7", "q7r7r7r7r7q7r7q7r7r7r7r7r7r7r7r7q7r7q7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7", "r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7r7"}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CManageDataSourceNames.h0000644000175000001440000000277211506076310020074 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CMANAGEDATASOURCENAMES_H #define CMANAGEDATASOURCENAMES_H #include "CODBCInst.h" #include #define ODBC_HELP_DATASOURCES "The most common way to connect to a Data Source is via a Data Source Name (DSN). A DSN is a saved set of connection options - a very convenient way to repeatedly connect to a Data Source." class CDataSourceNames; class CDataSourceNamesFile; /*! * \class CManageDataSourceNames * * \brief Widget to allow the Data Source Name's (DSN's) to be managed. * * This widget presents a set of 3 tabs where DSN's can be managed; * * \li User DSN's * \li System DSN's * \li File DSN's * * \note System DSN's and often File DSN's - can only be managed when elevated privileges * such as 'root' is in effect. * * \sa CManageDrivers */ class CManageDataSourceNames : public QTabWidget { Q_OBJECT public: CManageDataSourceNames( QWidget *pwidgetParent = 0 ); virtual ~CManageDataSourceNames(); QString windowHelp() { return QString( tr( ODBC_HELP_DATASOURCES ) ); } bool saveData() { return true; } public slots: void slotLoad(); protected: CDataSourceNames * pDataSourceNamesUser; CDataSourceNames * pDataSourceNamesSystem; CDataSourceNamesFile * pDataSourceNamesFile; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverPrompt.h0000644000175000001440000000203111506076310016366 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDRIVERPROMPT_H #define CDRIVERPROMPT_H #include "CODBCInst.h" #include class CDriverList; /*! * \class CDriverPrompt * * \brief Allows the User to select a Driver. * * Displays a list of installed Drivers and allows a User to; add, delete, configure and * ultimately - return a selection. This is used to support a request to create a DSN. * * \sa CUserDataSources * CSystemDataSources */ class CDriverPrompt : public QDialog { Q_OBJECT public: CDriverPrompt( QWidget* pwidgetParent = NULL ); virtual ~CDriverPrompt(); QString getFriendlyName(); QString getDescription(); QString getDriver(); QString getSetup(); protected slots: void slotOk(); protected: CDriverList * pDriverList; void doSaveState(); void doLoadState(); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNames.h0000644000175000001440000000377611506076310016770 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDATASOURCENAMES_H #define CDATASOURCENAMES_H #include "CODBCInst.h" #define ODBC_HELP_DATASOURCES_USER "User Data Source Names (DSN's) exist for use by a specific system account (User). The DSN's are typically stored somewhere in the User's home directory. These have precedence over System DSN's when DSN exists in both." #define ODBC_HELP_DATASOURCES_SYSTEM "System Data Source Names (DSN's) exist for use by all system accounts. Elevated privileges (such as 'root') are normally required to manage these." class CDataSourceNameList; /*! * \class CDataSourceNames * * \brief Widget to allow Data Source Names (DSN's) to be managed. * * This is used to support \sa CManageDataSourceNames by implementing * the bulk of the features in a way which is useful for a specific scope. * This widget can be instantiated with ODBC_USER_DSN to support managing * User DSN's or with ODBC_SYSTEM_DSN to support managing System DSN's. * * Basically; this widget wraps some buttons around a CDataSourceNames so that * the DSN's can be; Added, Edited, or Removed. * * \note Do NOT try to use this to manage ODBC_BOTH_DSN. See \sa CManageDataSourceNames * for that. * * \sa CManageDataSourceNames * CDataSourceNamesFile */ class CDataSourceNames : public QWidget { Q_OBJECT public: CDataSourceNames( QWidget* pwidgetParent = NULL, int nSource = ODBC_USER_DSN ); virtual ~CDataSourceNames(); QString getDataSourceName(); QString windowHelp() { if ( nSource == ODBC_USER_DSN ) return QString( tr( ODBC_HELP_DATASOURCES_USER ) ); return QString( tr( ODBC_HELP_DATASOURCES_SYSTEM ) ); } public slots: void slotLoad(); protected: int nSource; CDataSourceNameList * pDataSourceNameList; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDataSourceNamesFile.cpp0000644000175000001440000000537511506076451020303 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDataSourceNamesFile.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDataSourceNamesFile.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDataSourceNamesFile.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDataSourceNamesFile[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 5, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 22, 21, 21, 21, 0x0a, 33, 21, 21, 21, 0x09, 43, 21, 21, 21, 0x09, 54, 21, 21, 21, 0x09, 67, 21, 21, 21, 0x09, 0 // eod }; static const char qt_meta_stringdata_CDataSourceNamesFile[] = { "CDataSourceNamesFile\0\0slotLoad()\0" "slotAdd()\0slotEdit()\0slotDelete()\0" "slotSetDefault()\0" }; const QMetaObject CDataSourceNamesFile::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CDataSourceNamesFile, qt_meta_data_CDataSourceNamesFile, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDataSourceNamesFile::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDataSourceNamesFile::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDataSourceNamesFile::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDataSourceNamesFile)) return static_cast(const_cast< CDataSourceNamesFile*>(this)); return QWidget::qt_metacast(_clname); } int CDataSourceNamesFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotLoad(); break; case 1: slotAdd(); break; case 2: slotEdit(); break; case 3: slotDelete(); break; case 4: slotSetDefault(); break; default: ; } _id -= 5; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardEntre.h0000644000175000001440000000137011506076310016541 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARDENTRE_H #define CDSNWIZARDENTRE_H #include "CODBCInst.h" #include /*! * \class CDSNWizardEntre * \brief First page of create data source name wizard. * * This page describes what the wizard is for. * * \sa CDSNWizard */ class CDSNWizardEntre : public QWizardPage { Q_OBJECT public: CDSNWizardEntre( CDSNWizardData *pWizardData, QWidget *pwidgetParent = 0 ); int nextId() const; void initializePage(); void cleanupPage(); protected: CDSNWizardData *pWizardData; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitorProcesses.cpp0000644000175000001440000001011011506076310017577 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CMonitorProcesses.h" #define MAXPROCESSES 100 #define MAXHANDLES 4 CMonitorProcesses::CMonitorProcesses( QWidget* pwidgetParent ) : QTableWidget( pwidgetParent ) { setToolTip( tr( "list of processes currently owning one or more ODBC handles" ) ); setWhatsThis( tr( "This shows a list of processes currently owning one or more ODBC handles. The number of handles are shown. This is revised frequently while in view. This is useful for debugging and monitoring performance." ) ); // lets assume, for the moment, that we can get monitoring info from DM... bEnabled = true; // setup table... { // we remember rows from last load so we can optimize next load... nRowsWithValues = 0; // we use a fixed number of row/cols so init here... setRowCount( MAXPROCESSES ); setColumnCount( 5 ); // init headers and decorations... { QStringList stringlist; setHorizontalHeaderLabels( stringlist << "PID" << "Environments" << "Connections" << "Statements" << "Descriptors" ); setSelectionBehavior( QAbstractItemView::SelectRows ); setSelectionMode( QAbstractItemView::SingleSelection ); verticalHeader()->setVisible( false ); } // preload table with item objects... for ( int nRow = 0; nRow < rowCount(); nRow++ ) { for ( int nCol = 0; nCol < columnCount(); nCol++ ) { setItem( nRow, nCol, new QTableWidgetItem( "" ) ); } } } // init timer... { hStats = 0; pTimer = new QTimer( this ); connect( pTimer, SIGNAL(timeout()), SLOT(slotLoad()) ); pTimer->start( 2000 ); // 1000 = 1second } } CMonitorProcesses::~CMonitorProcesses() { if ( hStats ) uodbc_close_stats( hStats ); } void CMonitorProcesses::slotLoad() { // only bother with this if we are visible... if ( !isVisible() ) return; if ( !bEnabled ) return; // init coms with DM but don't even bother the DM until (if) we become visible... if ( !hStats ) { if ( uodbc_open_stats( &hStats, UODBC_STATS_READ ) != 0 ) { // char szError[512]; // QMessageBox::critical( this, tr( "Monitor Processes" ), QString( "uodbc_open_stats failed\n%1" ).arg( uodbc_stats_error( szError, 512 ) ) ); // bEnabled = false; return; } } // get current processes info... { uodbc_stats_retentry aPIDs[MAXPROCESSES]; int nPIDs = uodbc_get_stats( hStats, 0, aPIDs, MAXPROCESSES ); for ( int nPID = 0; nPID < MAXPROCESSES; nPID++ ) { if ( nPID < nPIDs ) { // get handle count for current process... uodbc_stats_retentry aHandles[MAXHANDLES]; int nHandles = uodbc_get_stats( hStats, aPIDs[nPID].value.l_value, aHandles, MAXHANDLES ); if ( nHandles > 0 ) { item( nPID, 0 )->setText( QString( "%1" ).arg( aPIDs[nPID].value.l_value ) ); for ( int nHandle = 0; nHandle < MAXHANDLES; nHandle++ ) { item( nPID, nHandle + 1 )->setText( QString( "%1" ).arg( aHandles[nHandle].value.l_value ) ); } } else clearRow( nPID ); } else { // no need to clear remaining rows if no data in them... if ( nPID >= nRowsWithValues ) { nRowsWithValues = nPID; return; } clearRow( nPID ); } } } } void CMonitorProcesses::clearRow( int nRow ) { int nCol; for ( nCol = 0; nCol < columnCount(); nCol++ ) { item( nRow, nCol )->setText( "" ); } } unixodbc-gui-qt-2.3.0/odbcinstQ4/CTracing.h0000644000175000001440000000270011506076310015323 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CTRACING_H #define CTRACING_H #include "CODBCInst.h" class CFileSelector; #define ODBC_HELP_TRACING "The ability to trace ODBC activity is important to anyone trying to debug an ODBC application centric problem. When tracing is on; all calls are logged to a file. It is very bad to leave tracing on after a debugging session as it slows application performance an causes disk space to be used up." /*! * \class CTracing * \brief This widget allows User to view/change tracing options. * * With this widget the User can; * * \li turn tracing on/off * \li elect to force tracing * \li specify a trace file * * \sa CManageDataSourceNames * CManageDrivers * CMonitor * CAdvanced * CAbout */ class CTracing : public QWidget { Q_OBJECT public: CTracing( QWidget* pwidgetParent = NULL ); virtual ~CTracing(); QString windowHelp() { return QString( tr( ODBC_HELP_TRACING ) ); } bool loadData(); bool saveData(); public slots: bool slotApply(); bool slotDefault(); protected: QCheckBox * pcheckboxEnable; QCheckBox * pcheckboxForce; CFileSelector * pfileselectorTraceFile; CFileSelector * pfileselectorTraceLibrary; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CManageDrivers.h0000644000175000001440000000263311506076310016470 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CMANAGEDRIVERS_H #define CMANAGEDRIVERS_H #include "CODBCInst.h" #define ODBC_HELP_DRIVERS "An ODBC Driver allows your ODBC enabled applications to get to your data. Many ODBC drivers can be downloaded from the Internet while others are obtained from your database vendor. Typically; you must be a 'root' user to manage drivers." /*! * \class CManageDrivers * \brief Widget to allow User to manage Drivers. * * This widget presents a list of installed Drivers. The Drivers listed will be 64bit if source * of unixODBC built with PLATFORM64 - otherwise they will be 32bit. * * The User may (given proper privs); add, delete, and configure a selected Driver. * * This widget is used as a tab for CODBCConfig. * * \sa CManageDataSourceNames * CStats * CTracing * CAbout */ class CManageDrivers : public QWidget { Q_OBJECT public: CManageDrivers( QWidget* pwidgetParent = NULL ); virtual ~CManageDrivers(); QString windowHelp() { return QString( tr( ODBC_HELP_DRIVERS ) ); } bool saveData() { return true; } signals: void signalChanged(); public slots: void slotDoubleClick( QTableWidgetItem *pItem ); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CODBCInst.cpp0000644000175000001440000001426111506076310015641 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CODBCInst.h" #include CDSNWizardData::CDSNWizardData( const QString &stringDataSourceName ) { this->stringDataSourceName = stringDataSourceName; nType = TypeUser; hFirstProperty = 0; } CDSNWizardData::~CDSNWizardData() { if ( hFirstProperty ) ODBCINSTDestructProperties( &hFirstProperty ); } /*! * \brief Save Data Source Name. * * Call this to save User, System and File DSN's based upon a property list. * * \param pwidgetParent Input. Widget to use as parent for messages. Null is ok. * \param hFirstProperty Input. First property in NULL terminated property list. * \param nType Input. Type of DSN. * \param stringIni Input. Default is QString::null. * * \li User and System DSN. This can be a QString::null to use * default location or it can be a fully qualified path and name. * \li File DSN. This can be a QString::null to use default * location or it can be an abs directory. In either case the file * name itself will be derived from the Name property. * * \return bool * \retval true Hey - it worked :) * \retval false Call failed for some reason. Error message(s) is shown in message dialog. */ bool CODBCInst::saveDataSourceName( QWidget *pwidgetParent, HODBCINSTPROPERTY hFirstProperty, CDSNWizardData::Type nType, const QString &stringIni ) { // sanity checks... if ( !hFirstProperty ) { QMessageBox::critical( pwidgetParent, QObject::tr( "ODBC Administrator" ), QObject::tr( "Programmer error: Uninitialized property list." ) ); return false; } if ( (QString( hFirstProperty->szValue )).simplified().isEmpty() ) { QMessageBox::critical( pwidgetParent, QObject::tr( "ODBC Administrator" ), QObject::tr( "Missing 'Name' property value." ) ); return false; } // init UWORD nConfigMode = ODBC_BOTH_DSN; bool bReturn = false; QString stringFileName = stringIni; switch ( nType ) { case CDSNWizardData::TypeUser: SQLGetConfigMode( &nConfigMode ); SQLSetConfigMode( ODBC_USER_DSN ); if ( stringFileName.isEmpty() ) stringFileName = "odbc.ini"; break; case CDSNWizardData::TypeSystem: SQLGetConfigMode( &nConfigMode ); SQLSetConfigMode( ODBC_SYSTEM_DSN ); if ( stringFileName.isEmpty() ) stringFileName = "odbc.ini"; break; case CDSNWizardData::TypeFile: // should we calc the dir and file name (do not allow the special purpose names)... if ( stringFileName.isEmpty() || stringFileName.at( 0 ) != QChar( '/' ) ) { char szDirectory[FILENAME_MAX]; szDirectory[0] = '\0'; _odbcinst_FileINI( szDirectory ); stringFileName = QString( "%1/%2.dsn" ).arg( szDirectory ).arg( hFirstProperty->szValue ); } else if ( stringFileName.at( 0 ) == QChar( '/' ) ) stringFileName = QString( "%1/%2.dsn" ).arg( stringFileName ).arg( hFirstProperty->szValue ); else { QMessageBox::critical( pwidgetParent, QObject::tr( "ODBC Administrator" ), QObject::tr( "File DSN directory expected but seems to be a name or file name." ) ); return false; } break; default: QMessageBox::critical( pwidgetParent, QObject::tr( "ODBC Administrator" ), QObject::tr( "Unhandled Data Source Name Type" ) ); return false; } // save... if ( nType == CDSNWizardData::TypeFile ) { // create the file with a section called "ODBC"... if ( !SQLWriteFileDSN( stringFileName.toAscii().data(), "ODBC", NULL, NULL ) ) { showErrors( 0, QString( "Could not write to (%1)" ).arg( stringFileName ) ); goto CODBCInstExit1; } // add all of the properties... for ( HODBCINSTPROPERTY hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { if ( !SQLWriteFileDSN( stringFileName.toAscii().data(), "ODBC", hCurProperty->szName, hCurProperty->szValue ) ) { showErrors( 0, QString( "Could not write to (%1)" ).arg( stringFileName ) ); goto CODBCInstExit1; } } } else { // create a section called using Name property (always 1st property)... if ( SQLWritePrivateProfileString( hFirstProperty->szValue, NULL, NULL, stringFileName.toAscii().data() ) == FALSE ) { showErrors( pwidgetParent, QString( QObject::tr( "Could not write to (%1). You may need additional system privileges." ) ).arg( stringFileName ) ); goto CODBCInstExit1; } // add all of the properties... for ( HODBCINSTPROPERTY hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { SQLWritePrivateProfileString( hFirstProperty->szValue, hCurProperty->szName, hCurProperty->szValue, stringFileName.toAscii().data() ); } } bReturn = true; // fini CODBCInstExit1: if ( nType != CDSNWizardData::TypeFile ) SQLSetConfigMode( nConfigMode ); return bReturn; } int CODBCInst::showErrors( QWidget *pwidgetParent, const QString &stringConsequence ) { DWORD nCode; char szMessage[FILENAME_MAX+1]; int nMessage = 1; for ( ; nMessage <= 10; nMessage++ ) { if ( SQLInstallerError( nMessage, &nCode, szMessage, FILENAME_MAX, NULL ) != SQL_SUCCESS ) break; QMessageBox::critical( pwidgetParent, QObject::tr( "ODBC Administrator" ), szMessage ); } if ( !stringConsequence.isEmpty() ) QMessageBox::warning( pwidgetParent, QObject::tr( "ODBC Administrator" ), stringConsequence ); return (nMessage - 1); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesDialog.cpp0000644000175000001440000000402111506076310017541 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CPropertiesDialog.h" #include "CPropertiesModel.h" #include "CPropertiesDelegate.h" #include "ODBC.xpm" CPropertiesDialog::CPropertiesDialog( QWidget *pwidgetParent, HODBCINSTPROPERTY hFirstProperty ) : QDialog( pwidgetParent ) { QVBoxLayout * playout = new QVBoxLayout; QTableView * ptableview = new QTableView; QFrame * pframe = new QFrame; QDialogButtonBox * pdialogbuttonbox = new QDialogButtonBox( QDialogButtonBox::Cancel | QDialogButtonBox::Ok | QDialogButtonBox::Help ); pframe->setFrameStyle( QFrame::HLine ); ppropertiesmodel = new CPropertiesModel( 0, hFirstProperty ); ppropertiesdelegate = new CPropertiesDelegate; ptableview->setModel( ppropertiesmodel ); ptableview->setItemDelegateForColumn ( 1, ppropertiesdelegate ); ptableview->verticalHeader()->hide(); connect( pdialogbuttonbox, SIGNAL(accepted()), this, SLOT(accept()) ); connect( pdialogbuttonbox, SIGNAL(rejected()), this, SLOT(reject()) ); playout->addWidget( ptableview, 10 ); playout->addWidget( pframe ); playout->addWidget( pdialogbuttonbox ); setWindowIcon( QPixmap( xpmODBC ) ); setLayout( playout ); doLoadState(); } CPropertiesDialog::~CPropertiesDialog() { doSaveState(); delete ppropertiesdelegate; delete ppropertiesmodel; } void CPropertiesDialog::doLoadState() { QSettings settings; int nW = settings.value( "CPropertiesDialog/w", geometry().width() ).toInt(); int nH = settings.value( "CPropertiesDialog/h", geometry().height() ).toInt(); resize( nW, nH ); } void CPropertiesDialog::doSaveState() { QSettings settings; settings.setValue( "CPropertiesDialog/w", width() ); settings.setValue( "CPropertiesDialog/h", height() ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/DataSourceNameUser48.xpm0000644000175000001440000003571111506076310020064 00000000000000/* XPM */ static const char * xpmDataSourceNameUser48[] = { "48 48 652 2", " c None", ". c #C37E12", "+ c #C37F13", "@ c #C27E12", "# c #C17D12", "$ c #CC8B25", "% c #D99D3D", "& c #DDA346", "* c #E1A84D", "= c #DEA446", "- c #DB9D3B", "; c #D49431", "> c #C58117", ", c #C17E12", "' c #D29534", ") c #E6B15C", "! c #E7B25F", "~ c #E5AD53", "{ c #E5AB4E", "] c #E4A848", "^ c #E4A746", "/ c #E4A747", "( c #E5A849", "_ c #E5AB50", ": c #DDA03F", "< c #C8851C", "[ c #C58219", "} c #E3AC56", "| c #E8B360", "1 c #E6AC51", "2 c #E5AB4F", "3 c #E5AA4E", "4 c #E5A84A", "5 c #E4A644", "6 c #E2A23C", "7 c #E19E34", "8 c #E3A23C", "9 c #E5A94C", "0 c #D59530", "a c #C7851D", "b c #E7B360", "c c #E6B05A", "d c #E6AC52", "e c #E7AF58", "f c #E7B15D", "g c #E8B25F", "h c #E7B15C", "i c #E7AF57", "j c #E4A748", "k c #E3A33E", "l c #E19E33", "m c #E09A2C", "n c #C28015", "o c #E4AF59", "p c #E7AE56", "q c #E6AD54", "r c #E7B25E", "s c #E9B565", "t c #E9B86B", "u c #EAB96E", "v c #EAB96D", "w c #E9B86A", "x c #E8B564", "y c #E6AC53", "z c #E19C30", "A c #DF9826", "B c #D49430", "C c #DCA144", "D c #E7B15B", "E c #E8B25E", "F c #E9B769", "G c #EBBB72", "H c #ECBE79", "I c #ECC07C", "J c #EBBE78", "K c #EABB70", "L c #E9B667", "M c #E6AB50", "N c #E2A037", "O c #E0992A", "P c #DF9828", "Q c #C8861C", "R c #C7851C", "S c #E8B361", "T c #E7B05A", "U c #EBBC73", "V c #ECC17D", "W c #EEC586", "X c #EEC78A", "Y c #EDC484", "Z c #EABB71", "` c #E9B564", " . c #E5A94A", ".. c #E3A23D", "+. c #E09C2F", "@. c #DF9725", "#. c #DDA03E", "$. c #D99D3E", "%. c #E7AE55", "&. c #ECBF7A", "*. c #EEC587", "=. c #EFCA92", "-. c #F0CE99", ";. c #F0CD98", ">. c #EFC990", ",. c #EDC485", "'. c #E3A441", "). c #E19D32", "!. c #E5AA4C", "~. c #C68319", "{. c #E4AD56", "]. c #E5A94B", "^. c #E8B462", "/. c #ECC17F", "(. c #EFC88D", "_. c #F1CE9B", ":. c #F2D4A6", "<. c #F2D3A5", "[. c #E3A543", "}. c #DF9726", "|. c #E3A33F", "1. c #D2922E", "2. c #C48016", "3. c #E7B05B", "4. c #E4A645", "5. c #EDC27F", "6. c #EFC88E", "7. c #F1CF9C", "8. c #F3D5A9", "9. c #F2D4A7", "0. c #EEC78B", "a. c #ECC07D", "b. c #EABA6E", "c. c #E19E35", "d. c #DB9D3A", "e. c #C8861D", "f. c #E6AE56", "g. c #EEC689", "h. c #F0CC94", "i. c #F1CF9B", "j. c #EFCB93", "k. c #ECBF79", "l. c #EAB86C", "m. c #DEA141", "n. c #C37F12", "o. c #C98820", "p. c #E3A440", "q. c #E9B768", "r. c #EBBD75", "s. c #EDC280", "t. c #EFC98E", "u. c #EEC688", "v. c #ECC17E", "w. c #E9B666", "x. c #E7B059", "y. c #E09B2E", "z. c #E0A343", "A. c #C58319", "B. c #E5AC52", "C. c #E2A13B", "D. c #E6AD55", "E. c #ECC07B", "F. c #E9B76A", "G. c #E4A646", "H. c #E2A039", "I. c #E09A2B", "J. c #DC9F3D", "K. c #C27E13", "L. c #E19F35", "M. c #E6AE55", "N. c #E2A139", "O. c #D89935", "P. c #E2A13A", "Q. c #E2A038", "R. c #E8B463", "S. c #E6AD53", "T. c #E29F36", "U. c #E09A2A", "V. c #CA8923", "W. c #C17D11", "X. c #D08F29", "Y. c #E5AA4D", "Z. c #E3A84A", "`. c #E2A547", " + c #E19D31", ".+ c #E09B2D", "++ c #E2A23B", "@+ c #D1922C", "#+ c #B87811", "$+ c #B57610", "%+ c #C98822", "&+ c #E09929", "*+ c #E19F36", "=+ c #DF9827", "-+ c #E1A444", ";+ c #A97520", ">+ c #D39431", ",+ c #BE801C", "'+ c #815E26", ")+ c #214B88", "!+ c #31568D", "~+ c #587292", "{+ c #B87C1C", "]+ c #D49530", "^+ c #E2A748", "/+ c #C2841F", "(+ c #897042", "_+ c #1D4074", ":+ c #41699F", "<+ c #5781B4", "[+ c #38659D", "}+ c #506C8C", "|+ c #B07D28", "1+ c #C98A25", "2+ c #E3A84B", "3+ c #D79834", "4+ c #C07D15", "5+ c #8A7956", "6+ c #456892", "7+ c #4A6D9A", "8+ c #29518C", "9+ c #204A87", "0+ c #476FA5", "a+ c #5782B8", "b+ c #376BAD", "c+ c #3364A2", "d+ c #3C689E", "e+ c #5E7D9D", "f+ c #887856", "g+ c #BF7D14", "h+ c #CF902D", "i+ c #DDA040", "j+ c #E4A94A", "k+ c #E4A94C", "l+ c #D99B37", "m+ c #C38521", "n+ c #B67C1D", "o+ c #6C7372", "p+ c #577AA0", "q+ c #2D578C", "r+ c #456EA1", "s+ c #5980B1", "t+ c #2A548E", "u+ c #486FA4", "v+ c #5380B7", "w+ c #376BAC", "x+ c #366BAE", "y+ c #366AAC", "z+ c #3565A2", "A+ c #5E84AD", "B+ c #597BA1", "C+ c #55718F", "D+ c #84734F", "E+ c #BD8122", "F+ c #C17F16", "G+ c #C48421", "H+ c #C88A28", "I+ c #C58724", "J+ c #C2811B", "K+ c #C17E14", "L+ c #AD7E31", "M+ c #766F5A", "N+ c #507091", "O+ c #57799D", "P+ c #5278A3", "Q+ c #2E5B93", "R+ c #3363A1", "S+ c #426FA8", "T+ c #587EAF", "U+ c #28528D", "V+ c #3C649B", "W+ c #5681B7", "X+ c #366AAB", "Y+ c #366BAD", "Z+ c #376CAF", "`+ c #376DB0", " @ c #5480B1", ".@ c #5F85AD", "+@ c #597CA2", "@@ c #375D8B", "#@ c #A0A4AA", "$@ c #A8A39B", "%@ c #A79983", "&@ c #A8926F", "*@ c #A69478", "=@ c #A49A88", "-@ c #A5A39F", ";@ c #5B718C", ">@ c #3C5F88", ",@ c #587A9F", "'@ c #5E83AA", ")@ c #456FA2", "!@ c #3365A3", "~@ c #3263A1", "{@ c #436FA7", "]@ c #567DAE", "^@ c #234C89", "/@ c #2B538D", "(@ c #5B83B6", "_@ c #396CAC", ":@ c #386DB1", "<@ c #386EB3", "[@ c #4174B3", "}@ c #678FBB", "|@ c #527CA9", "1@ c #2F5C96", "2@ c #6C85A4", "3@ c #BBBBBB", "4@ c #B5B5B5", "5@ c #B2B2B2", "6@ c #B4B4B4", "7@ c #B6B7B8", "8@ c #305787", "9@ c #2C5589", "0@ c #5B81AB", "a@ c #638BB7", "b@ c #3769A7", "c@ c #3466A5", "d@ c #3364A1", "e@ c #32629F", "f@ c #4A74AA", "g@ c #4A70A5", "h@ c #5279AC", "i@ c #4372AE", "j@ c #3569AA", "k@ c #386FB3", "l@ c #3970B5", "m@ c #5385BE", "n@ c #4C7BB4", "o@ c #3F6AA3", "p@ c #CECECF", "q@ c #CBCBCB", "r@ c #C8C8C8", "s@ c #CACACA", "t@ c #A2AEBD", "u@ c #2E5A91", "v@ c #2F5D97", "w@ c #5681B3", "x@ c #4576B2", "y@ c #3467A7", "z@ c #32629E", "A@ c #557CAD", "B@ c #375F97", "C@ c #325891", "D@ c #5680B5", "E@ c #3567A8", "F@ c #3569A9", "G@ c #376DB1", "H@ c #386EB2", "I@ c #386FB4", "J@ c #3970B6", "K@ c #4178BB", "L@ c #366AAA", "M@ c #B5C1D2", "N@ c #DDDDDD", "O@ c #DBDBDB", "P@ c #DCDCDC", "Q@ c #7F9ABB", "R@ c #3364A3", "S@ c #3D70AF", "T@ c #3568A8", "U@ c #31619D", "V@ c #3A67A0", "W@ c #557BAB", "X@ c #214C87", "Y@ c #4E74A8", "Z@ c #4170AB", "`@ c #3568A9", " # c #366AAD", ".# c #85A5CE", "+# c #F1F1F1", "@# c #EFEFEF", "## c #F0F0F0", "$# c #F2F2F2", "%# c #5783BB", "&# c #3466A6", "*# c #3365A4", "=# c #31609B", "-# c #4F77A8", ";# c #3A6196", "># c #254E8A", ",# c #5A81B2", "'# c #3465A4", ")# c #3669AB", "!# c #386EB1", "~# c #497AB8", "{# c #ECEDED", "]# c #EEEEEE", "^# c #DAE0E7", "/# c #305E98", "(# c #31629E", "_# c #31619C", ":# c #305F9A", "<# c #3C679F", "[# c #4E74A5", "}# c #335A92", "|# c #517AAF", "1# c #3467A6", "2# c #3365A5", "3# c #376BAE", "4# c #376CB0", "5# c #BCC9D9", "6# c #E7E7E7", "7# c #A3B7D0", "8# c #3263A0", "9# c #305E99", "0# c #315F99", "a# c #597EAB", "b# c #224C87", "c# c #3B6298", "d# c #4974AB", "e# c #32639F", "f# c #2D5A92", "g# c #83A0C4", "h# c #E1E1E1", "i# c #7294BE", "j# c #31619E", "k# c #2C558B", "l# c #415E84", "m# c #2D548B", "n# c #41679B", "o# c #4570A7", "p# c #2D5991", "q# c #305E97", "r# c #3467A8", "s# c #3569AB", "t# c #5A82B5", "u# c #4F7AB0", "v# c #334C73", "w# c #686071", "x# c #474459", "y# c #203F68", "z# c #4E6A8E", "A# c #C2C2C3", "B# c #5F6A78", "C# c #1D447C", "D# c #3F659A", "E# c #4571A7", "F# c #2C568B", "G# c #396AA8", "H# c #D0D1D3", "I# c #CCCFD2", "J# c #3567A6", "K# c #364264", "L# c #C04943", "M# c #B55552", "N# c #C7706D", "O# c #B24844", "P# c #534C57", "Q# c #CCCCCC", "R# c #475465", "S# c #1D447B", "T# c #385E94", "U# c #4973A7", "V# c #2B5489", "W# c #2C588E", "X# c #31629F", "Y# c #3466A4", "Z# c #ADB8C5", "`# c #A9B5C4", " $ c #2C5990", ".$ c #A54948", "+$ c #D23932", "@$ c #D08E8B", "#$ c #DC9895", "$$ c #B78786", "%$ c #E5DDDD", "&$ c #B3B1B1", "*$ c #495565", "=$ c #385F93", "-$ c #2A528C", ";$ c #557BAA", ">$ c #2F5D96", ",$ c #295284", "'$ c #2C578D", ")$ c #889EB8", "!$ c #879DB8", "~$ c #31609C", "{$ c #495576", "]$ c #D8322E", "^$ c #E6534C", "/$ c #D28784", "($ c #D29593", "_$ c #CBBDBD", ":$ c #B2AEAE", "<$ c #B26B6A", "[$ c #5E3034", "}$ c #284875", "|$ c #5A5E64", "1$ c #C0C0C0", "2$ c #204883", "3$ c #5377A7", "4$ c #39659C", "5$ c #2C578B", "6$ c #2A5387", "7$ c #2E5A92", "8$ c #6887AE", "9$ c #6A88AE", "0$ c #30609B", "a$ c #784858", "b$ c #DF2620", "c$ c #F5ABA7", "d$ c #E25754", "e$ c #D8A09D", "f$ c #BB8B88", "g$ c #956A69", "h$ c #DF9998", "i$ c #D16865", "j$ c #6E5959", "k$ c #909090", "l$ c #335A90", "m$ c #5378A8", "n$ c #2B5487", "o$ c #4C74A4", "p$ c #5076A5", "q$ c #305F99", "r$ c #2F5E97", "s$ c #91343A", "t$ c #EB5651", "u$ c #FAD7D3", "v$ c #F76C69", "w$ c #DF8D8A", "x$ c #DAA3A0", "y$ c #CA928F", "z$ c #C38887", "A$ c #C0A1A1", "B$ c #E1E0E0", "C$ c #787777", "D$ c #1F467F", "E$ c #496D9E", "F$ c #3B6190", "G$ c #2B5488", "H$ c #2F5E98", "I$ c #34629B", "J$ c #38649B", "K$ c #2F5C95", "L$ c #902C2D", "M$ c #F17971", "N$ c #F7756F", "O$ c #F85D58", "P$ c #F54744", "Q$ c #DC9E9B", "R$ c #D89F9C", "S$ c #B38583", "T$ c #A99494", "U$ c #590D0A", "V$ c #27508A", "W$ c #5578A5", "X$ c #426897", "Y$ c #2E5B94", "Z$ c #2E5C95", "`$ c #2E5C94", " % c #8E3234", ".% c #F2756A", "+% c #F11A15", "@% c #F51612", "#% c #F54D45", "$% c #EA3D39", "%% c #D49592", "&% c #D49895", "*% c #B08381", "=% c #AA7473", "-% c #AC3D39", ";% c #244D88", ">% c #476C9C", ",% c #5378A5", "'% c #456C9E", ")% c #386398", "!% c #345F96", "~% c #315D96", "{% c #2F5C94", "]% c #2F5D95", "^% c #2F5D94", "/% c #2F5B93", "(% c #305B93", "_% c #2F5B92", ":% c #2F5A91", "<% c #743A43", "[% c #E63B33", "}% c #EB1510", "|% c #EE1410", "1% c #EA120E", "2% c #E21E16", "3% c #D93530", "4% c #CD8380", "5% c #CB8B88", "6% c #C58381", "7% c #BD6E6B", "8% c #290100", "9% c #1E457D", "0% c #2A528B", "a% c #3D6296", "b% c #4D71A1", "c% c #5276A5", "d% c #567AA6", "e% c #597DA8", "f% c #597DA9", "g% c #5A7DA9", "h% c #5A7CA9", "i% c #597CA9", "j% c #587CA8", "k% c #587BA8", "l% c #587BA7", "m% c #55485A", "n% c #DA3530", "o% c #E0140C", "p% c #DF120C", "q% c #D90F0A", "r% c #D20D08", "s% c #C50B06", "t% c #BF1E19", "u% c #C05652", "v% c #C3706D", "w% c #B54844", "x% c #200200", "y% c #193A6A", "z% c #1F4780", "A% c #204984", "B% c #204985", "C% c #204A86", "D% c #2A3F5E", "E% c #AC3C38", "F% c #C60E07", "G% c #C30C06", "H% c #BC0A05", "I% c #B50904", "J% c #AB0803", "K% c #A00B06", "L% c #9C0D09", "M% c #920D0A", "N% c #620C08", "O% c #5B5B5B", "P% c #1B1717", "Q% c #6C211E", "R% c #9D120D", "S% c #A10703", "T% c #9E0703", "U% c #960603", "V% c #8E0804", "W% c #850E0B", "X% c #470806", "Y% c #272121", "Z% c #525252", "`% c #303030", " & c #565656", ".& c #646464", "+& c #484646", "@& c #4E3736", "#& c #542D2B", "$& c #522B29", "%& c #4A302E", "&& c #383636", " ", " . + @ @ + @ ", " @ # $ % & * = - ; > . ", " , ' ) ! ~ { ] ^ / ( _ : < @ ", " + [ } | 1 2 1 1 3 4 5 6 7 8 9 0 # ", " a b c d e f g g h i _ j k l m / - @ ", " n o p q r s t u v w x h y j 8 z A ] B @ ", " @ C D y E F G H I I J K L h M 5 N O P 9 Q ", " R S 2 T L U V W X X Y I Z ` e ...+.@.N #.@ ", " @ $.%.1 g v &.*.=.-.;.>.,.J w f 2 '.).@.@.!.~. ", " @ {.].q ^.K /.(._.:.<.;.X I u | 1 [.7 }.@.|.1.@ ", " 2.3.4.q ^.Z 5.6.7.8.9.-.0.a.b.| 1 [.7 }.@.c.d.+ ", " e.f.5 d | u I g.h.7.i.j.*.k.l.E _ '.l @.@.z m.n. ", " o.1 p.3 D q.r.s.g.t.6.u.v.U w.x.9 k z @.@.y.z.@ ", " A.B.C.] D.S l.r.I s.5.E.U F.g d G.H.I.@.@.).J.n. ", " K._ L.'.9 i S F b.Z Z u L g M. .k ).@.@.@.N.O.n. ", " @ #.P.Q.[.!.M.h S R.R.| 3.S.].'.T.U.@.@.@.^ V. ", " W.X.4.y.Q.'.] 3 d D.q d Y./ |.T.m @.@.@.m Z.W. ", " # `. +.+c.++'.5 ^ ^ 5 p.P.l I.@.@.@.@.5 @+#+ ", " $+%+].&+P y.l T.Q.N *+)..+=+@.@.@.@.Q.-+W. ", " ;+>+] P @.@.P &+&+=+@.@.@.@.@.@.7 Z.,+'+ ", " )+!+~+{+]+Y.c.@.@.@.@.@.@.@.@.@.}.C.^+/+(+_+ ", " )+:+<+[+}+|+1+2+5 l }.@.@.@.@.I.P.Y.3+4+5+6+7+8+9+ ", " )+0+a+b+c+d+e+f+g+h+i+3 j+4./ Y.k+l+m+n+o+p+q+r+s+t+)+ ", " )+u+v+w+x+y+z+A+B+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+ ", " )+V+W+X+Y+Z+`+X+ @.@+@@@#@$@%@&@*@=@-@;@>@,@'@)@c+!@~@{@]@^@ ", " /@(@_@y+Y+Z+:@<@[@}@|@1@2@3@4@5@5@6@7@8@9@0@a@b@c@!@d@e@f@g@)+ ", " )+h@i@j@y+x+Z+:@k@l@m@n@!@o@p@q@r@r@s@t@u@v@w@x@y@c@!@d@e@z@A@B@9+ ", " C@D@E@F@X+Y+Z+G@H@I@J@K@k@L@M@N@O@O@P@Q@R@E@S@T@y@c@!@~@e@U@V@W@X@ ", " )+Y@Z@y@`@j@y+ #Z+:@H@I@l@l@l@.#+#@###$#%#Y+X+j@T@&#*#c+~@e@U@=#-#;#9+ ", " >#,#'#&#E@`@)#R@x+Z+`+!#H@<@<@~#{#]#]#^#Y+y+j@T@y@c@!@c+/#(#_#:#<#[#)+ ", " }#|#!@c@1#T@:#2#y+Y+3#Z+4#`+`+4#5#6#6#7#X+j@T@y@c@*#c+8#9#U@=#:#0#a#b# ", " c#d#c+!@c@e#f#T@j@)#y+y+Y+Y+Y+Y+g#h#h#i#`@T@y@c@*#c+~@e@j#k#:#9#v@l#m# ", " n#o#8#d@!@p#q#1#r#T@`@j@j@j@s#j@t#O@O@u#y@&#c@!@c+~@e@v#w#x#y#v@z#A#B#C# ", " D#E#z@8#1@F#_#*#c@&#y@y@r#T@T@T@G#H#I#J#c@*#R@d@8#e@K#L#M#N#O#P#P@Q#R#S# ", " T#U#_#j#V#W#X#c+R@!@*#Y#c@c@c@c@c@Z#`#!@c+d@8#e@(# $.$+$@$#$$$%$&$*$=$ ", " -$;$:#>$,$'$e@e@8#~@d@c+c+c+c+c+c+)$!$8#8#e@(#U@~${$]$^$/$($_$:$<$[$}$|$1$ ", " 2$3$4$5$6$7$~$U@j#z@e@e@e@8#8#e@e@8$9$(#U@_#~$0$:#a$b$c$d$e$f$g$h$i$j$h#k$ ", " l$m$,$n$9#:#:#=#~$~$_#U@U@U@U@U@o$p$=#0$:#q$/#r$s$t$u$v$w$x$y$z$A$B$C$ ", " D$E$F$G$>$v@H$/#9#q$:#:#:#:#:#:#I$J$9#/#r$v@>$K$L$M$N$O$P$Q$R$S$O@T$U$ ", " V$W$X$Y$Z$K$>$>$v@v@v@v@r$v@v@v@>$>$1@K$`$Q+Q+ %.%+%@%#%$%%%&%*%=%-% ", " ;%>%,%'%)%!%~%Y$`${%]%]%]%^%]%K${%{%/%(%_%:%<%[%}%|%1%2%3%4%5%6%7%8% ", " 9%0%a%b%c%d%e%f%g%h%h%i%i%j%j%k%l%l%l%l%l%m%n%o%p%q%r%s%t%u%v%w%x% ", " y%z%A%B%9+C%C%C%C%C%C%C%C%C%C%C%C%9+C%D%E%F%G%H%I%J%K%L%M%N% ", " O%P%Q%R%S%T%U%V%W%X%Y% ", " Z%`% &.&+&@&#&$&%&&& ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNamesFileModel.cpp0000644000175000001440000002301211506076310021065 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include #include "CDataSourceNamesFileModel.h" #include "CDriverPrompt.h" #include "CPropertiesDialog.h" CDataSourceNamesFileModel::CDataSourceNamesFileModel( QObject *pobjectParent ) : QDirModel( QStringList( "*.dsn" ), QDir::Files, QDir::Name, pobjectParent ) { } CDataSourceNamesFileModel::~CDataSourceNamesFileModel() { } /*! * \brief Adds a file-based Data Source Name to the specified directory. * * Call this method to invoke a process of interacting with the User * to create a new file-based Data Source Name. * * This relies upon the selected driver having a viable setup library. By * viable we mean that it implements ODBCINSTGetProperties. * * \todo Need to look at supporting driver setups which provide their own UI for this. * * \param stringDirectory Input. The directory where we want to create the Data Source Name. * * \return bool * \retval true It was created. * \retval false Failed to create it (or User simply cancelled). * */ bool CDataSourceNamesFileModel::addDataSourceName( const QString &stringDirectory ) { QString stringDriverName; HODBCINSTPROPERTY hFirstProperty = NULL; // ask for a driver... { CDriverPrompt driverprompt; if ( !driverprompt.exec() ) return false; stringDriverName = driverprompt.getFriendlyName(); } // get dsn properties from driver setup... if ( ODBCINSTConstructProperties( stringDriverName.toAscii().data(), &hFirstProperty ) != ODBCINST_SUCCESS ) { QMessageBox::warning( 0, tr( "ODBC Administrator" ), QString( "Could not construct a property list for (%1).\nThis is probably because a viable driver setup library could not be found/used.\nYou may want to try configuring the driver to use a generic setup library." ).arg( stringDriverName ) ); return false; } // allow properties to be edited... { CPropertiesDialog propertiesdialog( 0, hFirstProperty ); propertiesdialog.setWindowTitle( tr( "Data Source Properties (new)" ) ); if ( !propertiesdialog.exec() ) { ODBCINSTDestructProperties( &hFirstProperty ); return false; } } // save properties... { HODBCINSTPROPERTY hCurProperty = NULL; QString stringFileNameAndPath = QString( "%1/%2.dsn" ).arg( stringDirectory ).arg( hFirstProperty->szValue ); // create the file with a section called "ODBC"... if ( !SQLWriteFileDSN( stringFileNameAndPath.toAscii().data(), "ODBC", NULL, NULL ) ) { CODBCInst::showErrors( 0, QString( "Could not write to (%1)" ).arg( stringFileNameAndPath ) ); ODBCINSTDestructProperties( &hFirstProperty ); return false; } // add all of the properties... for ( hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { if ( !SQLWriteFileDSN( stringFileNameAndPath.toAscii().data(), "ODBC", hCurProperty->szName, hCurProperty->szValue ) ) { CODBCInst::showErrors( 0, QString( "Could not write to (%1)" ).arg( stringFileNameAndPath ) ); ODBCINSTDestructProperties( &hFirstProperty ); return false; } } } // free memory used by properties... ODBCINSTDestructProperties( &hFirstProperty ); // refresh file(s) display... refresh( index( stringDirectory ) ); return true; } /*! * \brief Edits Data Source Name specified by modelindex. * * Call this method to invoke a process of interacting with the User * to edit an existing file-based Data Source Name. * * This relies upon the selected driver having a viable setup library. By * viable we mean that it implements ODBCINSTGetProperties. * * \todo Need to look at supporting driver setups which provide their own UI for this. * * \param modelindex Input. Index to a viable Data Source Name file. * * \return bool * \retval true Any changes were saved. * \retval false Failed to edit or save changes (or User simply cancelled). * */ bool CDataSourceNamesFileModel::editDataSourceName( const QModelIndex &modelindex ) { HODBCINSTPROPERTY hFirstProperty = NULL; char szDriver[FILENAME_MAX]; QFileInfo fileinfo = fileInfo( modelindex ); // find out which driver the DSN is using... szDriver[0] = '\0'; if ( !SQLReadFileDSN( fileinfo.absoluteFilePath().toAscii().data(), "ODBC", "DRIVER", szDriver, FILENAME_MAX, NULL ) || strlen( szDriver ) < 1 ) { // the driver is not specified in the DSN file so perhaps we are simply a reference to a regular DSN... // \note me thinks this is creative use of the DSN property with limited practical use char szDsn[FILENAME_MAX]; szDsn[0] = '\0'; if ( SQLReadFileDSN( fileinfo.absoluteFilePath().toAscii().data(), "ODBC", "DSN", szDsn, FILENAME_MAX, NULL ) && strlen( szDsn ) >= 1 ) { UWORD n; SQLGetConfigMode( &n ); SQLSetConfigMode( ODBC_BOTH_DSN ); SQLGetPrivateProfileString( szDsn, "Driver", "", szDriver, sizeof( szDriver ), "odbc.ini" ); SQLSetConfigMode( n ); if ( strlen( szDriver ) < 1 ) { CODBCInst::showErrors( 0, tr( "Unable to extract driver from FILE DSN" ) ); return false; } } else { CODBCInst::showErrors( 0, tr( "Unable to extract driver from FILE DSN" ) ); return false; } } // get properties from drivers setup library... if ( ODBCINSTConstructProperties( szDriver, &hFirstProperty ) != ODBCINST_SUCCESS ) { CODBCInst::showErrors( 0, QString( "Could not construct a property list for (%1)" ).arg( szDriver ) ); return false; } // apply property values from file to properties list... { // set the name property value... ODBCINSTSetProperty( hFirstProperty, "Name", fileinfo.baseName().toAscii().data() ); // set other property values... for ( HODBCINSTPROPERTY hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { char szAttr[ 256 ]; szAttr[ 0 ] = '\0'; if ( SQLReadFileDSN( fileinfo.absoluteFilePath().toAscii().data(), "ODBC", hCurProperty->szName, szAttr, sizeof( szAttr ), NULL )) { ODBCINSTSetProperty( hFirstProperty, hCurProperty->szName, szAttr ); } } } // present properties for editing... { CPropertiesDialog propertiesdialog( 0, hFirstProperty ); propertiesdialog.setWindowTitle( "Data Source Properties (edit)" ); if ( !propertiesdialog.exec() ) { ODBCINSTDestructProperties( &hFirstProperty ); return false; } } // save changes... { if ( !SQLWriteFileDSN( fileinfo.absoluteFilePath().toAscii().data(), "ODBC", NULL, NULL ) ) { CODBCInst::showErrors( 0, QString( "Could not write to (%1)" ).arg( fileinfo.absoluteFilePath() ) ); ODBCINSTDestructProperties( &hFirstProperty ); return false; } for ( HODBCINSTPROPERTY hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { if ( !SQLWriteFileDSN( fileinfo.absoluteFilePath().toAscii().data(), "ODBC", hCurProperty->szName, hCurProperty->szValue )) { CODBCInst::showErrors( 0, QString( "Could not write to file DSN (%1)" ).arg( fileinfo.absoluteFilePath() ) ); ODBCINSTDestructProperties( &hFirstProperty ); return false; } } } // free memory used by properties list... ODBCINSTDestructProperties( &hFirstProperty ); // refresh file(s) display in case we have created a new file (if Name was changed)... refresh( index( fileinfo.absolutePath() ) ); return true; } /*! * \brief Deletes Data Source Name specified by modelindex. * * Call this method to permantly remove the Data Source Name file. * * This relies upon the selected driver having a viable setup library. By * viable we mean that it implements ODBCINSTGetProperties. * * \todo Need to look at supporting driver setups which provide their own UI for this. * * \param modelindex Input. Index to a viable Data Source Name file. * * \return bool * \retval true File deleted. * \retval false Failed delete file - probably a privs issue. * */ bool CDataSourceNamesFileModel::deleteDataSourceName( const QModelIndex &modelindex ) { // \todo we want to refresh with the current root but doing it this way undermines the usefullness of the model QString stringRoot = fileInfo( modelindex ).absolutePath(); // delete the file... if ( unlink( filePath( modelindex ).toAscii().data() ) ) { QMessageBox::critical( 0, tr( "ODBC Administrator" ), QString( "Unable to unlink %1" ).arg( filePath( modelindex ) ) ); return false; } // refresh file(s) display... refresh( index( stringRoot ) ); return true; } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCODBCConfig.cpp0000644000175000001440000000521711506076451016315 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CODBCConfig.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CODBCConfig.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CODBCConfig.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CODBCConfig[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 3, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 60, 13, 12, 12, 0x09, 110, 12, 12, 12, 0x09, 121, 12, 12, 12, 0x09, 0 // eod }; static const char qt_meta_stringdata_CODBCConfig[] = { "CODBCConfig\0\0" "plistwidgetitemCurrent,plistwidgetitemPrevious\0" "slotChangePage(QListWidgetItem*,QListWidgetItem*)\0" "slotHelp()\0slotAccept()\0" }; const QMetaObject CODBCConfig::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_CODBCConfig, qt_meta_data_CODBCConfig, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CODBCConfig::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CODBCConfig::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CODBCConfig::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CODBCConfig)) return static_cast(const_cast< CODBCConfig*>(this)); return QDialog::qt_metacast(_clname); } int CODBCConfig::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotChangePage((*reinterpret_cast< QListWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QListWidgetItem*(*)>(_a[2]))); break; case 1: slotHelp(); break; case 2: slotAccept(); break; default: ; } _id -= 3; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/mCHelp.cpp0000644000175000001440000000431011506076451015341 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CHelp.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CHelp.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CHelp.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CHelp[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 7, 6, 6, 6, 0x09, 0 // eod }; static const char qt_meta_stringdata_CHelp[] = { "CHelp\0\0slotToggleView()\0" }; const QMetaObject CHelp::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CHelp, qt_meta_data_CHelp, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CHelp::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CHelp::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CHelp::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CHelp)) return static_cast(const_cast< CHelp*>(this)); return QWidget::qt_metacast(_clname); } int CHelp::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotToggleView(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardEntre.cpp0000644000175000001440000000214011506076310017070 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CDSNWizardEntre.h" #include "CDSNWizard.h" CDSNWizardEntre::CDSNWizardEntre( CDSNWizardData *pWizardData, QWidget *pwidgetParent ) : QWizardPage( pwidgetParent ) { this->pWizardData = pWizardData; QHBoxLayout * pLayout = new QHBoxLayout( this ); QTextBrowser * pTextBrowser = new QTextBrowser; pTextBrowser->setHtml( "

This is the Create Data Source Name Wizard.

A Data Source Name (DSN) is a convenient way to connect to a data source since the connect options can be set in advance and simply reused, by name, during a connect.

This wizard will guide you through the process of creating a new Data Source Name.

" ); pLayout->addWidget( pTextBrowser ); setTitle( tr( "Introduction" ) ); } int CDSNWizardEntre::nextId() const { return CDSNWizard::PageType; } void CDSNWizardEntre::initializePage() { } void CDSNWizardEntre::cleanupPage() { } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizardFini.cpp0000644000175000001440000000411511506076451017067 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizardFini.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizardFini.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizardFini.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizardFini[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CDSNWizardFini[] = { "CDSNWizardFini\0" }; const QMetaObject CDSNWizardFini::staticMetaObject = { { &QWizardPage::staticMetaObject, qt_meta_stringdata_CDSNWizardFini, qt_meta_data_CDSNWizardFini, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizardFini::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizardFini::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizardFini::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizardFini)) return static_cast(const_cast< CDSNWizardFini*>(this)); return QWizardPage::qt_metacast(_clname); } int CDSNWizardFini::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizardPage::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizardEntre.cpp0000644000175000001440000000413411506076451017260 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizardEntre.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizardEntre.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizardEntre.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizardEntre[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CDSNWizardEntre[] = { "CDSNWizardEntre\0" }; const QMetaObject CDSNWizardEntre::staticMetaObject = { { &QWizardPage::staticMetaObject, qt_meta_stringdata_CDSNWizardEntre, qt_meta_data_CDSNWizardEntre, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizardEntre::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizardEntre::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizardEntre::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizardEntre)) return static_cast(const_cast< CDSNWizardEntre*>(this)); return QWizardPage::qt_metacast(_clname); } int CDSNWizardEntre::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizardPage::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CAdvanced.h0000644000175000001440000000224211506076310015442 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CADVANCED_h #define CADVANCED_h #include "CODBCInst.h" #include #define ODBC_HELP_ADVANCED "Most of the features which usually require elevated privileges (read; 'root' access) are administered here." class CManageDrivers; class CPooling; class CTracing; class CThreading; /*! * \class CAdvanced * \brief Groups the advanced administration features. * * This widget presents a set of tabs for the various 'advanced' features. * * \sa CManageDataSourceNames * CManageDrivers * CStats * CAbout */ class CAdvanced : public QTabWidget { Q_OBJECT public: CAdvanced( QWidget* pwidgetParent = NULL ); virtual ~CAdvanced(); QString windowHelp() { return QString( tr( ODBC_HELP_ADVANCED ) ); } bool saveData(); signals: void signalChanged(); protected: CManageDrivers *pManageDrivers; CPooling * pPooling; CTracing * pTracing; CThreading * pThreading; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCTracing.cpp0000644000175000001440000000474211506076451016051 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CTracing.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CTracing.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CTracing.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CTracing[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 15, 9, 10, 9, 0x0a, 27, 9, 10, 9, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CTracing[] = { "CTracing\0\0bool\0slotApply()\0slotDefault()\0" }; const QMetaObject CTracing::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CTracing, qt_meta_data_CTracing, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CTracing::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CTracing::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CTracing::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CTracing)) return static_cast(const_cast< CTracing*>(this)); return QWidget::qt_metacast(_clname); } int CTracing::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: { bool _r = slotApply(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 1: { bool _r = slotDefault(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverPrompt.cpp0000644000175000001440000000416411506076310016732 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDriverPrompt.h" #include "CDriverList.h" #include "ODBC.xpm" CDriverPrompt::CDriverPrompt( QWidget *pwidgetParent ) : QDialog( pwidgetParent ) { QVBoxLayout * playout = new QVBoxLayout; QLabel * pLabel = new QLabel( tr( "Select a driver for which you want to set up a data source..." ) ); QDialogButtonBox * pdialogbuttonbox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help ); pDriverList = new CDriverList; playout->addWidget( pLabel ); playout->addWidget( pDriverList ); playout->addWidget( pdialogbuttonbox ); connect( pdialogbuttonbox, SIGNAL(accepted()), this, SLOT(slotOk()) ); connect( pdialogbuttonbox, SIGNAL(rejected()), this, SLOT(reject()) ); setLayout( playout ); setWindowTitle( tr( "Create New Data Source..." ) ); setWindowIcon( QPixmap( xpmODBC ) ); doLoadState(); } CDriverPrompt::~CDriverPrompt() { doSaveState(); } QString CDriverPrompt::getFriendlyName() { return pDriverList->getFriendlyName(); } QString CDriverPrompt::getDescription() { return pDriverList->getDescription(); } QString CDriverPrompt::getDriver() { return pDriverList->getDriver(); } QString CDriverPrompt::getSetup() { return pDriverList->getSetup(); } void CDriverPrompt::slotOk() { if ( getFriendlyName().isEmpty() ) QMessageBox::information( this, tr( "ODBC Administrator" ), tr( "please select a Driver" ) ); else accept(); } void CDriverPrompt::doLoadState() { QSettings settings; int nW = settings.value( "CDriverPrompt/w", geometry().width() ).toInt(); int nH = settings.value( "CDriverPrompt/h", geometry().height() ).toInt(); resize( nW, nH ); } void CDriverPrompt::doSaveState() { QSettings settings; settings.setValue( "CDriverPrompt/w", width() ); settings.setValue( "CDriverPrompt/h", height() ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CPooling.h0000644000175000001440000000174411506076310015352 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CPOOLING_H #define CPOOLING_H #include "CODBCInst.h" #define ODBC_HELP_POOLING "Connection pooling is most useful for ODBC enabled server processes. It can increase performance but its usefulness is dependent upon the stability of the driver. Additional Pooling options are set for individual drivers." class CPooling : public QWidget { Q_OBJECT public: CPooling( QWidget* pwidgetParent = NULL ); virtual ~CPooling(); QString windowHelp() { return QString( tr( ODBC_HELP_POOLING ) ); } bool loadData(); bool saveData(); public slots: bool slotApply(); bool slotDefault(); protected: QCheckBox * pcheckboxEnable; // QSpinBox * pspinboxTimeout; /* * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CPage.h" #include "CHelp.h" CPage::CPage( QWidget* pwidgetParent, const QString &stringTitle, QWidget *pwidgetContent, const QIcon &icon, const QString &stringHelp ) : QWidget( pwidgetParent ) { Q_ASSERT(pwidgetContent); QVBoxLayout * playout = new QVBoxLayout; this->pwidgetContent = pwidgetContent; if ( !stringTitle.isEmpty() ) { QLabel * plabel = new QLabel( stringTitle ); QFrame * pframe = new QFrame; QFont font( plabel->font() ); font.setPointSize( font.pointSize() + 2 ) ; font.setBold( true ); plabel->setFont( font ); pframe->setFrameStyle( QFrame::HLine ); playout->addWidget( plabel, 1 ); playout->addWidget( pframe ); } playout->addWidget( pwidgetContent, 10 ); if ( !stringHelp.isEmpty() ) { CHelp *pHelp = new CHelp( pwidgetContent->metaObject()->className(), icon, stringHelp ); playout->addWidget( pHelp ); } setLayout( playout ); } CPage::~CPage() { } unixodbc-gui-qt-2.3.0/odbcinstQ4/CODBCInst.h0000644000175000001440000000260011506076310015300 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CODBCINST_H #define CODBCINST_H #include #include #ifndef odbcinst_system_file_path #if defined(__cplusplus) extern "C" { #endif char * INSTAPI odbcinst_system_file_path( char *buffer ); char * INSTAPI odbcinst_system_file_name( char *buffer ); BOOL _odbcinst_FileINI( char *pszPath ); #ifdef __cplusplus } #endif #endif #ifndef SHLIBEXT #define SHLIBEXT ".so" #endif #include class CDSNWizardData { public: enum Type { TypeUser, TypeSystem, TypeFile }; CDSNWizardData( const QString &stringDataSourceName = QString::null ) ; ~CDSNWizardData(); Type nType; QString stringDriver; QString stringDataSourceName; HODBCINSTPROPERTY hFirstProperty; }; /*! * \brief A namespace. * */ class CODBCInst { public: static bool saveDataSourceName( QWidget *pwidgetParent, HODBCINSTPROPERTY hFirstProperty, CDSNWizardData::Type nType, const QString &stringIni = QString::null ); static int showErrors( QWidget *pwidgetParent = 0, const QString &stringConsequence = QString::null ); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesDialog.h0000644000175000001440000000132111506076310017206 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CPROPERTIESDIALOG_H #define CPROPERTIESDIALOG_H #include "CODBCInst.h" #include class CPropertiesModel; class CPropertiesDelegate; class CPropertiesDialog : public QDialog { Q_OBJECT public: CPropertiesDialog( QWidget* pwidgetParent = NULL, HODBCINSTPROPERTY hTheFirstProperty = NULL ); virtual ~CPropertiesDialog(); protected: void doLoadState(); void doSaveState(); private: CPropertiesModel * ppropertiesmodel; CPropertiesDelegate * ppropertiesdelegate; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/Driver128.xpm0000644000175000001440000011220211506076310015673 00000000000000/* XPM */ static const char *xpmDriver128[] = { /* columns rows colors chars-per-pixel */ "128 128 257 2", " c none", ". c #01081700", "X c #00072600", "o c #010B2600", "O c #000C3700", "+ c #04132B00", "@ c #05183A00", "# c #000D4700", "$ c #01144800", "% c #01165300", "& c #00146300", "* c #001B7B00", "= c #00177600", "- c #0A234900", "; c #09245400", ": c #08296700", "> c #03257900", ", c #0E336B00", "< c #0D337700", "1 c #13396900", "2 c #11397700", "3 c #184A7B00", "4 c #001E8C00", "5 c #001C8500", "6 c #001D9400", "7 c #001EA500", "8 c #02258600", "9 c #00239600", "0 c #00239B00", "q c #032B9400", "w c #0D378600", "e c #0C3B9800", "r c #193B8E00", "t c #123D8400", "y c #1A3F9200", "u c #163E9200", "i c #0023A400", "p c #0025AB00", "a c #012AA800", "s c #0027B200", "d c #0028B500", "f c #002BBC00", "g c #0027B800", "h c #0737A800", "j c #0134BC00", "k c #013BBD00", "l c #0739B800", "z c #0234C200", "x c #053BC400", "c c #013CC900", "v c #083EC500", "b c #0F409D00", "n c #14438D00", "m c #1B429500", "M c #1D469A00", "N c #1F4B9F00", "B c #14469800", "V c #1E549700", "C c #1E518B00", "Z c #0E44AA00", "A c #0043BD00", "S c #004CBD00", "D c #0D43B600", "F c #0056BE00", "G c #0258BF00", "H c #0D58BE00", "J c #144AA700", "K c #144CB900", "L c #1952A900", "P c #1656BB00", "I c #1E63BC00", "U c #204EA200", "Y c #2250A600", "T c #2255AA00", "R c #2559AF00", "E c #265BB100", "W c #285FB600", "Q c #245EB900", "! c #2964BC00", "~ c #2664BB00", "^ c #286AB100", "/ c #0A44CB00", "( c #0B4BCC00", ") c #0446C300", "_ c #004AD300", "` c #064BD200", "' c #0255C300", "] c #0655C800", "[ c #035BC200", "{ c #095EC300", "} c #0758CB00", "| c #0054DC00", " . c #0B57D500", ".. c #124EC800", "X. c #104FD300", "o. c #1A5AC400", "O. c #1756C800", "+. c #1354D600", "@. c #145AD500", "#. c #175BD900", "$. c #005EE300", "%. c #0364CE00", "&. c #0C62C400", "*. c #0D69CC00", "=. c #026BDC00", "-. c #0466D500", ";. c #0C75DE00", ":. c #1166C500", ">. c #1469C600", ",. c #156AC900", "<. c #1A6DC900", "1. c #1962C900", "2. c #1B65D800", "3. c #1E71CA00", "4. c #1576D800", "5. c #036EE100", "6. c #0368E800", "7. c #0175EB00", "8. c #0675E700", "9. c #0073F400", "0. c #017CF500", "q. c #007DFB00", "w. c #0A79F200", "e. c #1D67E200", "r. c #1C74E500", "t. c #205BC000", "y. c #2D6BC400", "u. c #2E6FC900", "i. c #2368C900", "p. c #236BDC00", "a. c #2067DB00", "s. c #2375CB00", "d. c #2C7BCE00", "f. c #2877D600", "g. c #3074CE00", "h. c #317ECE00", "j. c #3177D000", "k. c #337BD500", "l. c #397EDD00", "z. c #226CE400", "x. c #226EE800", "c. c #2B73E300", "v. c #2674E900", "b. c #337BE600", "n. c #0183FE00", "m. c #0788FE00", "M. c #0C8CFE00", "N. c #0B84F800", "B. c #1987ED00", "V. c #118EFD00", "C. c #1788F300", "Z. c #1491FE00", "A. c #1B96FE00", "S. c #1F98FE00", "D. c #0A80EE00", "F. c #2985DC00", "G. c #3280CF00", "H. c #3581D000", "J. c #3682DC00", "K. c #3B85D200", "L. c #3E89D400", "P. c #3B87DB00", "I. c #2B86E800", "U. c #2B87F200", "Y. c #239AFE00", "T. c #2A9EFE00", "R. c #2795F700", "E. c #3885E200", "W. c #3989E400", "Q. c #3A8EEA00", "!. c #3687E900", "~. c #3D92EE00", "^. c #3595EB00", "/. c #3D95F200", "(. c #3598F800", "). c #318FF400", "_. c #2FA0FE00", "`. c #34A3FE00", "'. c #3AA6FE00", "]. c #3EA8FE00", "[. c #438BD400", "{. c #498ED500", "}. c #4287DE00", "|. c #4D91D600", " X c #4D92D800", ".X c #5194D700", "XX c #5496D800", "oX c #5798D900", "OX c #5B9ADA00", "+X c #4589E700", "@X c #4799E500", "#X c #4099F600", "$X c #419CF900", "%X c #489DF700", "&X c #5697E400", "*X c #43A0FD00", "=X c #43ABFE00", "-X c #4AAEFE00", ";X c #4AA6F600", ":X c #4EB0FE00", ">X c #59A5E900", ",X c #55A9F600", " O O 8 d D P ! ! ! ! ! ! ! ! ! ! ! W ! ! ! ! ! ! ! ! ! ! ! ~ s.Z.Z.V.M.V.M.M.M.M.6.f * ", " 5 f A F F [ m.-XnXnXnXcXnXnXcXcXcXnXqXM.s.! ! y.Q v > . $ q x ..! ! y.y.! y.! y.! ! y.y.! ! ! ! ! ! ! ! ! ! ! f.Z.Z.Z.Z.M.V.V.V.M._ g % ", " f f s g g g s s s f f f f k %.=.n.aXcXcXcXnXcXnXcXcXcXnX:XM.u.y.y.O.h O o 8 v o.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.B.Z.Z.V.V.V.Z.V.V.N.c p ", " s j _ | | | | | | 6.6.6.6.6.n.n.A.cXcXcXcXcXcXcXcXcXcXcX-XM.y.y...q o q / t.y.y.y.y.y.u.y.y.u.y.y.u.y.y.y.y.y.y.y.y.y.C.Z.Z.Z.Z.Z.V.V.V.w.z 0 ", " f A =.n.A.A.A.T.'.'.].].qXqXqXqXcXcXcXcXcXcXcXcXcXcXcXcX-XV.g.O.q % l O.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.f.A.V.Z.Z.Z.Z.Z.V.V.6.f * ", " & f S =.n.nXcXcXcXcXcXcXcXcXcXcXcXcXcXcXcXcXxXcXcXcXxXcXcX-XV.i.q q ..u.j.g.g.g.j.j.g.g.g.g.g.g.g.g.g.g.g.g.g.I.A.Z.Z.Z.Z.Z.Z.V.Z.` f s s p i ", " 9 f F %.n.wXcXcXcXcXcXcXcXcXcXcXcXcXcXcXcXxXcXcXcXxXcXcXxX-XV.h % / i.h.j.j.j.j.h.g.h.j.j.j.j.j.j.j.j.j.g.j.A.A.A.Z.A.Z.Z.V.V.V.w. .` f f f g s p * ", " p f F %.n.2XcXcXxXcXxXcXxXxXcXxXcXcXxXxXxXcXxXxXcXxXxXxXcX-XA.8 . l #.j.j.j.j.k.k.k.j.j.k.j.k.j.k.j.j.j.k.F.A.A.A.A.A.A.Z.A.V.Z.Z.Z.V.N.6.| / f s ", " p j F %.n.:XxXcXxXxXxXcXxXcXxXcXcXcXcXcXxXxXxXcXxXcXxXxXcXqXA.Z e #.k.l.k.k.k.k.k.l.k.k.k.k.k.k.k.k.k.k.R.A.A.A.A.A.A.A.V.A.Z.V.Z.V.V.V.M.6.f % ", " s k F F n.'.cXxXcXxXcXxXcXxXcXxXxXxXxXxXcXxXcXxXcXcXxXxXxXqXA... e #.J.J.J.J.J.l.l.l.l.K.l.J.J.J.J.l.J.I.Y.A.A.A.A.A.A.A.A.A.A.V.Z.Z.Z.V.V.z 9 ", " g A F F n.'.xXxXcXxXxXxXxXcXxXxXcXxXxXcXxXxXcXxXxXxXxXxXxXxXA.r. h 2.P.J.J.J.P.P.J.J.J.J.P.J.J.J.J.J.J.Y.A.A.A.A.A.A.A.A.A.V.V.A.Z.Z.V.Z.6.d X ", " f S F F 7.A.xXxXxXcXxXcXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX_.C.% h 2.E.E.E.E.E.P.E.E.E.W.E.E.E.P.E.E.).Y.Y.Y.A.A.Y.A.A.A.A.A.Z.Z.A.Z.Z.V.f 4 ", " 6 f F F F 7.A.xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxX-XA.w Z f.W.W.W.W.W.W.W.W.W.W.W.W.W.W.W.Q.Y.Y.Y.Y.Y.S.S.S.A.A.A.A.Z.A.Z.Z.Z. .d X ", " 6 f F F F 5.M.xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXwXY.:. ..c.Q.Q.Q.Q.Q.Q.Q.W.Q.Q.Q.Q.Q.Q.Q.T.Y.Y.Y.Y.Y.Y.S.S.A.A.A.A.A.A.A.Z.V.z 9 ", " p j F F F =.m.xXxXxXfXxXfXxXfXfXxXfXxXxXxXxXxXxXxXxXxXxXxXxXxXxXT.U.o o @.!.~.Q.Q.Q.~.Q.Q.Q.Q.Q.Q.Q.~.Q.(.Y.Y.Y.Y.Y.Y.Y.S.S.S.A.A.A.A.A.Z.Z. .g o ", " p j F F F -.m.wXfXxXfXfXfXfXfXfXfXxXfXfXxXfXxXfXfXxXxXxXfXxXxXxX:XY.B : e.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.T.T.T.Y.Y.Y.Y.Y.S.S.S.A.S.A.A.A.A.C.f 4 ", " i j F F F %.M.M.Y.Y.`.=X=XqX2XaXfXfXfXfXfXfXxXfXxXxXxXfXfXxXxXxXsXT.r. J c././././.#X#X/././.#X/./././._._.Y.Y.Y.T.Y.Y.Y.Y.S.S.S.A.A.A.A.A. .g X ", " 0 j F F ' [ =.8.D.D.M.V.Z.Z.Z.Z.A.A._.`.2XfXxXfXfXfXfXxXfXxXfXxXxX].R.n + @./.#X$X$X#X#X#X#X#X#X#X#X/.#X_._._._._.Y.Y.Y.Y.Y.Y.S.S.S.Y.A.A.A.V.f 4 ", " 9 f F F F F F F F F F F F %.%.-.;.;.B.C.S.sXfXfXfXxXfXxXxXfXfXxXxXwX`.4. < v.$X$X$X#X$X$X$X$X$X$X$X$X$X`._._._._.T.T.T.T.Y.Y.B.*.%.%.%.} F A f & ", " 5 f F F F F F F F F F F F F F F F F F [ A.=XfXfXfXfXfXfXfXxXxXfXxXxX=X`.B O./.*X*X;X$X$X*X*X*X*X*X*X*X`._._._._.T._.T.T.T._.B.' F F F F S f = ", " * f S F F F F F F F F F F F F F F F F F ;.Y.sXfXfXfXfXxXfXfXfXfXxXxXwX`.I.@ - v.%X*X*X*X*X*X*X*X*X*X*X*X(.`.`.`.T.T._.T.T.T.Y.B.F F F F S f 5 ", " f S F F F F F F F F F F F F F F F F F [ Y.=XfXfXfXfXfXfXxXfXfXfXfXxX ", " 8 z z z z z k ) A A ' S F F F F F F F F F F F F ^.-XdXdXfXfXfXfXxXxXfXxXxXxXxXxXsX * q a a z z z j z F F F F F F F F F 4.].wXdXfXfXfXfXxXfXxXxXxXxXxXxXxXdX ", " l v I.X@X I.%X,XwXwXwXaXqXaXaXqXqXqXqX2X2X2X1X1X ", " > / ' F F F F F F.X&.F F F F G *.>XxXxXxXxXcXcXcXcXcXcXnXnXnXnXnXnXnXMXMXMXMXMXMXMXMXMXMXnXMXnXcXMXcXcXcXcXcXcXcXxXxXxXfXfXfXdXdXdXsXaXaXaXaXaXwX^.F F F F F F F F F F F F F F ' ( / ", " ( ' F F F F F F F F F ^.2XqXqXqXqXaXaXaXaXqXF.F F F F F F F F F F.aXcXxXcXcXcXnXnXnXnXnXnXMXMXMXMXMXMXMXMXMXMXMXMXMXMXMXMXMXMXMXnXnXnXcXcXcXcXcXxXxXxXxXfXfXdXdXdXsXsXsXsXsX,XF F F F F F F F F F F F F F F ] / @ ", " h X.' F F F F F F F F F F ,XqXqXwXwXqXaXaX,X*.F F F F F F F F F F F &.P.cXcXnXnXMXMXMXMXMXMXNXNXMXNXNXNXNXNXNXNXNXNXNXMXNXMXMXMXMXMXMXnXnXnXcXcXcXcXxXxXxXxXfXfXfXfXdXsXdXsXqX[ F F F F F F F F F F F F F F ( / @ ", " ..( F F F F F F F F F F F G ;XwXwXwXaXaXF.F F F F F F F F F F F F G G G *.0XnXMXMXMXMXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXNXMXNXMXMXMXnXnXnXcXcXcXcXcXxXxXfXfXfXdXdXdXsXsX&.F F F F F F F F F F F F F ] X.@ ", " ( ] F F F F F F F F F F F F G ,XaXaX,X*.F F F F F F F F F F F G G G G G &.&.s.fXMXMXNXNXNXNXNXVXNXNXNXVXVXVXVXVXNXVXNXVXNXNXNXNXNXNXMXMXMXMXMXMXnXnXcXcXcXcXxXxXxXfXfXdXdXsXsX^.G G F F F F F F F F F F ] +.: ", " ..X.F F F F F F F F F F F F F [ qXW.[ F F F F F F F F F F G G G G G G G &.&.&.&. XnXNXNXNXNXVXVXVXVXVXCXVXVXVXVXCXVXVXVXVXVXVXNXNXNXNXNXNXNXMXMXMXnXnXcXcXcXcXxXxXxXfXfXdXdXsXsX&.G F F F F F F F F F ] +.: ", " : X. .F F F F F F F F F F F F F F F F F F F F F F F F F G G G G G &.&.&.&.&.:.:.:.<.VXVXVXVXVXCXCXCXVXCXCXCXCXCXCXCXCXCXCXVXVXVXVXNXNXNXNXNXNXMXMXMXnXnXcXcXcXxXxXxXfXfXfXfXdXsX@XG F F F F F F F F ] X.: ", " % X.( F F F F F F F F F F F F F F F F F F F F F F F G G G &.G &.&.&.&.:.:.:.>.>.>.VXVXVXCXCXZXCXCXZXZXZXZXCXZXZXCXZXCXZXCXCXCXVXVXCXNXNXNXNXNXMXMXMXnXnXnXcXcXcXxXfXfXfXfXfXdXeX .' F F F F F F ] +.: ", " : +.( F F F F F F F F F F F F F F F F F F F F F G G G &.&.&.&.&.&.:.:.:.>.<.<.<.CXCXCXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXCXCXCXCXNXVXNXNXNXMXMXMXMXnXnXcXcXcXxXxXxXfXdXsXsXE.+.X.' F F ' } +.: ", " < +.] F F F F F F F F F F F F F F F F } ' ' F G &.G &.&.&.&.:.:.:.>.<.<.<.<.3.CXZXZXZXZXZXZXZXSXZXZXZXSXSXZXSXZXZXZXZXZXZXCXZXCXCXCXNXCXNXNXNXMXMXMXMXnXnXcXcXcXxXxXxXfXdXdXeX+.O.+.X.' } +.e ", " w +.' F F F F F F F F F F F F F [ +.X.@. .[ &.&.&.&.&.:.:.>.>.<.<.<.<.<.3.s.ZXZXZXZXZXSXSXZXSXFXZXFXFXSXSXZXSXSXCXvXvXuX9X9X9X9X>X9X>XL.L.L.9XMXMXMXMXnXcXcXcXxXxXxXxXdXdXdXb.Z : ..+.+.e ", " Z #.' F F F F F F F F F F F } #.Z . @ K .} &.&.&.:.:.>.>.<.<.<.3.3.s.s.s.ZXZXZXFXZXSXFXFXFXFXFXFXFXFXFXFXSXSX8XG.h.d.h.h.G.d.d.d.d.s.d.s.s.vXNXMXMXMXnXnXnXcXxXxXxXfXfXdXeX#.% : e ", " K +.' F F F F F F F F ' .#.< w +.#.{ :.>.>.,.<.<.3.s.s.s.s.s.d.ZXSXSXFXFXFXFXGXFXGXGXGXGXFXGXFXFXFX8XG.k.h.h.h.h.h.h.h.d.d.d.d.s.K.NXNXNXMXnXnXnXcXcXxXxXxXfXfXdXb.K ", " o ..@.F F F F F F F ' #.K @ . Z #.@.,.,.<.<.3.s.s.s.s.s.d.d.SXSXFXFXFXFXGXGXGXGXGXGXGXGXGXGXGXGXoXK.K.K.K.K.K.G.G.G.h.d.d.d.d.s.>XNXMXNXMXnXnXcXnXxXxXxXxXfXdXeX+.: ", " . ..@.F F F F ' .#.b . ; ..#.1.3.s.s.s.s.s.d.d.h.h.mXFXGXGXGXGXGXGXGXGXGXGXGXGXGXJXGXGX|.K.K.K.K.K.K.K.H.G.G.G.G.h.h.d.d.vXNXNXMXnXnXnXcXxXxXxXxXfXfXdX!.+. ", " ; +. .F F [ @.+.; e #.2.p.s.d.d.d.d.h.h.G.mXGXGXGXGXGXGXJXJXJXJXJXJXJXJXGXJXGX[.[.[.[.[.[.K.K.K.K.K.K.H.G.h.h.d.L.nXNXNXMXMXnXcXcXcXxXxXfXfXfXeX#.e ", " ; #. .} #.P + + K #.2.d.d.h.G.H.H.K.mXGXGXGXGXJXJXJXJXJXKXJXKXJXJXJXJXBX|.{.{.{.[.[.[.[.[.L.K.K.H.K.H.h.h.h.>XNXNXMXMXMXMXcXcXxXxXxXfXdXiXz.+. ", " w 2.#.w : @.#.f.G.H.K.K.K.mXGXJXJXJXJXKXKXKXLXKXKXKXKXKXKXKXmX|.|.{.{.{.{.{.[.[.[.[.[.K.K.K.K.H.H.h.zXNXNXMXMXMXcXcXcXcXxXfX@X,.#.J ", " w ; . J a.G.K.K.K.L.mXJXJXJXKXKXKXKXLXLXLXLXLXLXLXLXLXvX.X.X.X|.|.|.|.{.{.{.[.[.[.[.K.K.K.K.G.[.mXNXMXMXMXcXcXcXcX>Xs.,.2.... ", " b p.K.K.K.[.[.BXJXJXKXLXLXLXLXLXLXLXLXPXLXLXLXLXyXoXoXoXXXXXXX.X.X|.|.{.{.[.[.[.[.K.K.K.G.9XNXNXMXMXnXcX>XG.3.<.2.#.. ", " J z.[.[.[.[.|.BXKXKXKXLXLXPXLXPXPXPXPXPXLXPXLXIXtXOXOXOXOXOXoXXXXXXX.X.X{.{.{.[.[.[.[.K.K.H.iXMXNXMX0Xk.s.3.3.2.#.@ ", " P p.[.[.[.|.|.AXKXKXKXLXLXPXPXPXPXPXPXPXIXIXPXDX+Xb.}.l.l.l.l.l..XoXXXXX.X.X.X{.{.[.[.[.K.K.K.MX0XK.G.d.s.s.<.e., ", " o.z.{.|.|. X X.X8XyXbXDXLXPXPXIXUXUXUXIXIXIXIX4X#.K P K P K P #.p.OXOXoXXXXX.X|.{.{.[.[.[.K.K.H.G.G.G.d.d.s.e.< ", " O.p.{.|..X.XoXoXOXOXOXOX5X6XyXbXAXJXUXUXUXUXUX+Xt ; e.}.3XOXoXoXXXoX.X|.{.{.[.[.K.L.H.G.G.d.f.e.J ", " o.p. X.XoXoXoXOXOX3X5X5X5X5X6X6X6X6X6XhXbXAXJXb.w J z.OX3X3XOXoXoXoX.X|.|.{.[.[.L.H.K.H.d.e.o. ", " o.c..XoXOXOXOX3X5X5X5X5X5X7X7X7X7XrXrX7X7X7X5Xz.; o #.b.3X3X3X3XOXoXoX.X.X{.{.[.[.L.K.H.z.O.. ", " O.c.oXoXOXOX3X5X5X5X6X8X7X7XrXrXrXrXtXtXtX7Xc.P , z.&X5X3X3X3XOXoXoX.X.X{.{.[.[.L.f.2.@ ", " o.c.OXOX3X5X5X5X6X7X7X8XrXrXrXtXtXyXyXyXyXE.2.. P z.3X6X3X3XOXOXoXoXoX.X{.{.[.f.r.; ", " o.c.3X3X3X5X5X6X6X7XrXrXtXtXtXyXyXgXgXgX&Xz.; + a.E.6X6X5X3X3X3XOXoXXX.XJ.z.a., ", " o.b.3X3X5X6X6X7X7XrXrXtXtXgXgXgXgXgXgX8Xx.u t x.&X6X6X5X3X3XOXoX}.x.x.L . ", " o.b.3X5X6X6X7XrXtXtXyXgXgXgXgXgXhXhXgXb.o. o.c.6X7X6X5X3X&Xb.z.L + ", " i.b.5X6X7X7XrXtXtXyXgXgXgXgXhXhXhXhX+Xp.. + z.+X8X7XOXb.x.Q @ ", " #.b.6X6XrXrXtXtXgXgXgXgXhXlXhXkXkX&Xv.; J x.&X+Xz.P ; ", " i.v.b.+X&X8XtXgXgXgXhXhXlXlXkXkXgXv.n i.x.2., ", " 2 n N 1.z.v.v.E.+X4XrXlXlXkXbXkXb.o. - t ", " + 1 m o.z.v.v.+X&X8X+Xa.. ", " + , B i.z.v.- ", " ", " ", " ", " ", " ", " ", " " }; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCAbout.cpp0000644000175000001440000000372211506076451015531 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CAbout.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CAbout.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CAbout.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CAbout[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CAbout[] = { "CAbout\0" }; const QMetaObject CAbout::staticMetaObject = { { &QTabWidget::staticMetaObject, qt_meta_stringdata_CAbout, qt_meta_data_CAbout, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CAbout::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CAbout::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CAbout::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CAbout)) return static_cast(const_cast< CAbout*>(this)); return QTabWidget::qt_metacast(_clname); } int CAbout::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTabWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CODBCConfig.h0000644000175000001440000000353511506076310015600 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CODBCCONFIG_H #define CODBCCONFIG_H #include "CODBCInst.h" #include class QListWidget; class QListWidgetItem; class QStackedWidget; class CManageDataSourceNames; class CMonitor; class CAdvanced; class CAbout; /*! * \class CODBCConfig * * \brief ODBC Administrator dialog. * * This dialog allows the User to manage; * * \li User Data Source Names * \li System Data Source Names * \li File Data Source Names * \li Drivers * \li Tracing * \li Connection Pooling * * The User may also view; * * \li Usage statistics * \li Version information and other 'About' information * * This is the main dialog/window for the ODBCConfig application and is also used * to support a call to SQLManageDataSources. * * \sa ODBCManageDataSources * ODBCCreateDataSource */ class CODBCConfig : public QDialog { Q_OBJECT public: CODBCConfig( QWidget *pwidgetParent = 0, Qt::WindowFlags nFlags = 0 ); virtual ~CODBCConfig(); bool saveData(); protected slots: void slotChangePage( QListWidgetItem *plistwidgetitemCurrent, QListWidgetItem *plistwidgetitemPrevious ); void slotHelp(); void slotAccept(); protected: void createIconMenu(); void createConfigWidgets(); void loadState(); void saveState(); QListWidget * plistwidgetIcons; QStackedWidget * pstackedwidgetConfigWidgets; CManageDataSourceNames * pManageDataSourceNames; CMonitor * pMonitor; CAdvanced * pAdvanced; CAbout * pAbout; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardDriver.cpp0000644000175000001440000000343211506076310017253 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDSNWizardDriver.h" #include "CDSNWizard.h" #include "CDriverList.h" CDSNWizardDriver::CDSNWizardDriver( CDSNWizardData *pWizardData, QWidget *pwidgetParent ) : QWizardPage( pwidgetParent ) { this->pWizardData = pWizardData; QVBoxLayout *playout = new QVBoxLayout( this ); pDriverList = new CDriverList; playout->addWidget( pDriverList ); setTitle( tr( "Driver" ) ); } int CDSNWizardDriver::nextId() const { pWizardData->stringDriver = pDriverList->getFriendlyName(); return CDSNWizard::PageProperties; } void CDSNWizardDriver::initializePage() { } void CDSNWizardDriver::cleanupPage() { pWizardData->stringDriver = QString::null; } bool CDSNWizardDriver::validatePage() { if ( pDriverList->getFriendlyName().isEmpty() ) { QMessageBox::warning( this, tr( "Page Validate" ), tr( "Please select a Driver." ) ); return false; } // the following assumptions are made here; // - this method is only called just before going to next page // - next page cleanUp() will destruct property list (before we can come back here) // - no other validation checks, in this method, are placed after this if ( ODBCINSTConstructProperties( pDriverList->getFriendlyName().toAscii().data(), &pWizardData->hFirstProperty ) != ODBCINST_SUCCESS ) { CODBCInst::showErrors( this, QString( "Could not construct a property list for (%1). Contact your; SysAdmin, driver vendor, or folks at the unixODBC project for support." ).arg( pDriverList->getFriendlyName() ) ); return false; } return true; } unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesDelegate.h0000644000175000001440000000216211506076310017525 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CPROPERTIESDELEGATE_H #define CPROPERTIESDELEGATE_H #include "CODBCInst.h" #include /*! * \brief Creates cell editor. * * Creates cell editor for a property based upon HODBCINSTPROPERTY. This is * applied to the second column of the QTableView. * */ class CPropertiesDelegate : public QItemDelegate { Q_OBJECT public: CPropertiesDelegate( QObject *pobjectParent = 0 ); QWidget *createEditor(QWidget *pwidgetParent, const QStyleOptionViewItem &styleoptionviewitem, const QModelIndex &modelindex) const; void setEditorData( QWidget *pwidgetEditor, const QModelIndex &modelindex ) const; void setModelData( QWidget *pwidgetEditor, QAbstractItemModel *abstractitemmodel, const QModelIndex &modelindex) const; void updateEditorGeometry( QWidget *pwidgetEditor, const QStyleOptionViewItem &styleoptionviewitem, const QModelIndex &modelindex ) const; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/Makefile.am0000644000175000001440000001477211506076310015530 00000000000000lib_LTLIBRARIES = libodbcinstQ4.la libodbcinstQ4_la_LDFLAGS = \ -no-undefined \ -version-info 2:1:1 \ -export-dynamic \ -export-symbols @srcdir@/odbcinstQ4.exp \ -module INCLUDES = -I@top_srcdir@/ini \ $(QT_CXXFLAGS) \ -DTHEPREFIX=\"@prefix@\" \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ -DDEFLIB_PATH=\"@libdir@\" \ -DSHLIBEXT=\"@SHLIBEXT@\" \ $(LTDLINCL) libodbcinstQ4_la_LIBADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ ../ini/libinilc.la \ -lodbc -lodbcinst libodbcinstQ4_la_DEPENDENCIES = \ ../ini/libinilc.la CLEANFILES = \ mCAbout.cpp \ mCAdvanced.cpp \ mCDataSourceNameList.cpp \ mCDataSourceNames.cpp \ mCDataSourceNamesFile.cpp \ mCDataSourceNamesFileModel.cpp \ mCDriverConnectPrompt.cpp \ mCDriverList.cpp \ mCDriverPrompt.cpp \ mCDSNWizardProperties.cpp \ mCDSNWizardDriver.cpp \ mCDSNWizardEntre.cpp \ mCDSNWizardFini.cpp \ mCDSNWizard.cpp \ mCDSNWizardType.cpp \ mCFileSelector.cpp \ mCHelp.cpp \ mCManageDataSourceNames.cpp \ mCManageDrivers.cpp \ mCODBCConfig.cpp \ mCPooling.cpp \ mCPropertiesDelegate.cpp \ mCPropertiesDialog.cpp \ mCMonitorHandleCounts.cpp \ mCMonitor.cpp \ mCMonitorProcesses.cpp \ mCThreading.cpp \ mCTracing.cpp libodbcinstQ4_la_SOURCES = \ CAbout.cpp \ CAdvanced.cpp \ CDataSourceNameList.cpp \ CDataSourceNames.cpp \ CDataSourceNamesFile.cpp \ CDataSourceNamesFileModel.cpp \ CDriverConnectPrompt.cpp \ CDriverList.cpp \ CDriverPrompt.cpp \ CDSNWizardProperties.cpp \ CDSNWizardDriver.cpp \ CDSNWizardEntre.cpp \ CDSNWizardFini.cpp \ CDSNWizard.cpp \ CDSNWizardType.cpp \ CFileSelector.cpp \ CHelp.cpp \ CManageDataSourceNames.cpp \ CManageDrivers.cpp \ CODBCConfig.cpp \ CODBCInst.cpp \ CPage.cpp \ CPooling.cpp \ CPropertiesDelegate.cpp \ CPropertiesDialog.cpp \ CPropertiesModel.cpp \ CMonitorHandleCounts.cpp \ CMonitor.cpp \ CMonitorProcesses.cpp \ CThreading.cpp \ CTracing.cpp \ ODBCDriverConnectPrompt.cpp \ SQLManageDataSources.cpp \ mCAbout.cpp \ mCAdvanced.cpp \ mCDataSourceNameList.cpp \ mCDataSourceNames.cpp \ mCDataSourceNamesFile.cpp \ mCDataSourceNamesFileModel.cpp \ mCDriverConnectPrompt.cpp \ mCDriverList.cpp \ mCDriverPrompt.cpp \ mCDSNWizardProperties.cpp \ mCDSNWizardDriver.cpp \ mCDSNWizardEntre.cpp \ mCDSNWizardFini.cpp \ mCDSNWizard.cpp \ mCDSNWizardType.cpp \ mCFileSelector.cpp \ mCHelp.cpp \ mCManageDataSourceNames.cpp \ mCManageDrivers.cpp \ mCODBCConfig.cpp \ mCPooling.cpp \ mCPropertiesDelegate.cpp \ mCPropertiesDialog.cpp \ mCMonitorHandleCounts.cpp \ mCMonitor.cpp \ mCMonitorProcesses.cpp \ mCThreading.cpp \ mCTracing.cpp mCAbout.cpp: @srcdir@/CAbout.h @MOC@ @srcdir@/CAbout.h -o mCAbout.cpp mCAdvanced.cpp: @srcdir@/CAdvanced.h @MOC@ @srcdir@/CAdvanced.h -o mCAdvanced.cpp mCDataSourceNameList.cpp: @srcdir@/CDataSourceNameList.h @MOC@ @srcdir@/CDataSourceNameList.h -o mCDataSourceNameList.cpp mCDataSourceNames.cpp: @srcdir@/CDataSourceNames.h @MOC@ @srcdir@/CDataSourceNames.h -o mCDataSourceNames.cpp mCDataSourceNamesFile.cpp: @srcdir@/CDataSourceNamesFile.h @MOC@ @srcdir@/CDataSourceNamesFile.h -o mCDataSourceNamesFile.cpp mCDataSourceNamesFileModel.cpp: @srcdir@/CDataSourceNamesFileModel.h @MOC@ @srcdir@/CDataSourceNamesFileModel.h -o mCDataSourceNamesFileModel.cpp mCDriverConnectPrompt.cpp: @srcdir@/CDriverConnectPrompt.h @MOC@ @srcdir@/CDriverConnectPrompt.h -o mCDriverConnectPrompt.cpp mCDriverList.cpp: @srcdir@/CDriverList.h @MOC@ @srcdir@/CDriverList.h -o mCDriverList.cpp mCDriverPrompt.cpp: @srcdir@/CDriverPrompt.h @MOC@ @srcdir@/CDriverPrompt.h -o mCDriverPrompt.cpp mCDSNWizardProperties.cpp: @srcdir@/CDSNWizardProperties.h @MOC@ @srcdir@/CDSNWizardProperties.h -o mCDSNWizardProperties.cpp mCDSNWizardDriver.cpp: @srcdir@/CDSNWizardDriver.h @MOC@ @srcdir@/CDSNWizardDriver.h -o mCDSNWizardDriver.cpp mCDSNWizardEntre.cpp: @srcdir@/CDSNWizardEntre.h @MOC@ @srcdir@/CDSNWizardEntre.h -o mCDSNWizardEntre.cpp mCDSNWizardFini.cpp: @srcdir@/CDSNWizardFini.h @MOC@ @srcdir@/CDSNWizardFini.h -o mCDSNWizardFini.cpp mCDSNWizard.cpp: @srcdir@/CDSNWizard.h @MOC@ @srcdir@/CDSNWizard.h -o mCDSNWizard.cpp mCDSNWizardType.cpp: @srcdir@/CDSNWizardType.h @MOC@ @srcdir@/CDSNWizardType.h -o mCDSNWizardType.cpp mCFileSelector.cpp: @srcdir@/CFileSelector.h @MOC@ @srcdir@/CFileSelector.h -o mCFileSelector.cpp mCHelp.cpp: @srcdir@/CHelp.h @MOC@ @srcdir@/CHelp.h -o mCHelp.cpp mCManageDataSourceNames.cpp: @srcdir@/CManageDataSourceNames.h @MOC@ @srcdir@/CManageDataSourceNames.h -o mCManageDataSourceNames.cpp mCManageDrivers.cpp: @srcdir@/CManageDrivers.h @MOC@ @srcdir@/CManageDrivers.h -o mCManageDrivers.cpp mCODBCConfig.cpp: @srcdir@/CODBCConfig.h @MOC@ @srcdir@/CODBCConfig.h -o mCODBCConfig.cpp mCPooling.cpp: @srcdir@/CPooling.h @MOC@ @srcdir@/CPooling.h -o mCPooling.cpp mCPropertiesDelegate.cpp: @srcdir@/CPropertiesDelegate.h @MOC@ @srcdir@/CPropertiesDelegate.h -o mCPropertiesDelegate.cpp mCPropertiesDialog.cpp: @srcdir@/CPropertiesDialog.h @MOC@ @srcdir@/CPropertiesDialog.h -o mCPropertiesDialog.cpp mCMonitor.cpp: @srcdir@/CMonitor.h @MOC@ @srcdir@/CMonitor.h -o mCMonitor.cpp mCMonitorHandleCounts.cpp: @srcdir@/CMonitorHandleCounts.h @MOC@ @srcdir@/CMonitorHandleCounts.h -o mCMonitorHandleCounts.cpp mCMonitorProcesses.cpp: @srcdir@/CMonitorProcesses.h @MOC@ @srcdir@/CMonitorProcesses.h -o mCMonitorProcesses.cpp mCThreading.cpp: @srcdir@/CThreading.h @MOC@ @srcdir@/CThreading.h -o mCThreading.cpp mCTracing.cpp: @srcdir@/CTracing.h @MOC@ @srcdir@/CTracing.h -o mCTracing.cpp EXTRA_DIST = \ CAbout.h \ CAdvanced.h \ CDataSourceNameList.h \ CDataSourceNames.h \ CDataSourceNamesFile.h \ CDataSourceNamesFileModel.h \ CDriverConnectPrompt.h \ CDriverList.h \ CDriverPrompt.h \ CDSNWizardProperties.h \ CDSNWizardDriver.h \ CDSNWizardEntre.h \ CDSNWizardFini.h \ CDSNWizard.h \ CDSNWizardType.h \ CFileSelector.h \ CHelp.h \ CManageDataSourceNames.h \ CManageDrivers.h \ CMonitor.h \ CMonitorHandleCounts.h \ CMonitorProcesses.h \ CODBCConfig.h \ CODBCInst.h \ CPage.h \ CPooling.h \ CPropertiesDelegate.h \ CPropertiesDialog.h \ CPropertiesModel.h \ CThreading.h \ CTracing.h \ About48.xpm \ Advanced48.xpm \ Canada.xpm \ DataSourceName48.xpm \ DataSourceNameFile48.xpm \ DataSourceNameSystem48.xpm \ DataSourceNameUser48.xpm \ Driver128.xpm \ Driver48.xpm \ GreatBritain.xpm \ Info16.xpm \ InfoArrow16.xpm \ NoFlag.xpm \ ODBC.xpm \ Pooling48.xpm \ Set.xpm \ Stats48.xpm \ Threading48.xpm \ Tracing48.xpm \ odbcinstQ4.exp \ ODBCManageDataSources64.xpm \ WizardCreateDataSourceName.xpm unixodbc-gui-qt-2.3.0/odbcinstQ4/CHelp.h0000644000175000001440000000223211506076310014624 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CHELP_H #define CHELP_H #include "CODBCInst.h" #include #include class QFrame; /*! * \class CHelp * \brief Help widget for tabs/property pages. * * This widget presents the given Icon and Text in a manner useful for the * bottom (or other border area) of another widget where Helpful information * (read; hints about usage/purpose) may be needed. * * This widget is used by the CODBCConfig tab/property widgets. * */ class CHelp : public QWidget { Q_OBJECT public: CHelp( const QString &stringKey, const QIcon &icon, const QString &stringText, QWidget *pwidgetParent = 0 ); ~CHelp(); protected: bool bVisibleView; QString stringKey; QToolButton * pToolButton; QFrame * pFrame; QLabel * plabelIcon; QLabel * plabelText; void loadState(); void saveState(); protected slots: void slotToggleView(); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCManageDataSourceNames.cpp0000644000175000001440000000470411506076451020607 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CManageDataSourceNames.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CManageDataSourceNames.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CManageDataSourceNames.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CManageDataSourceNames[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 24, 23, 23, 23, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CManageDataSourceNames[] = { "CManageDataSourceNames\0\0slotLoad()\0" }; const QMetaObject CManageDataSourceNames::staticMetaObject = { { &QTabWidget::staticMetaObject, qt_meta_stringdata_CManageDataSourceNames, qt_meta_data_CManageDataSourceNames, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CManageDataSourceNames::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CManageDataSourceNames::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CManageDataSourceNames::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CManageDataSourceNames)) return static_cast(const_cast< CManageDataSourceNames*>(this)); return QTabWidget::qt_metacast(_clname); } int CManageDataSourceNames::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTabWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotLoad(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/Stats48.xpm0000644000175000001440000003221411506076310015463 00000000000000/* XPM */ static const char * xpmStats48[] = { "48 48 537 2", " c None", ". c #8E8E8E", "+ c #858585", "@ c #A3A3A3", "# c #BABABA", "$ c #C4C4C4", "% c #AFAFAF", "& c #ACACAC", "* c #9B9B9B", "= c #8C8C8C", "- c #A7A7A7", "; c #C2C2C2", "> c #DADADA", ", c #E5E5E5", "' c #E6E6E6", ") c #E3E3E3", "! c #E1E1E1", "~ c #D2D2D2", "{ c #9F9F9F", "] c #8D8D8D", "^ c #AAAAAA", "/ c #C8C8C8", "( c #DDDDDD", "_ c #E7E7E7", ": c #DEDEDE", "< c #D9D9D9", "[ c #D3D3D3", "} c #CDCDCD", "| c #A0A0A0", "1 c #959595", "2 c #B2B2B2", "3 c #CFCFCF", "4 c #DFDFDF", "5 c #D8D8D8", "6 c #CACACA", "7 c #CCCCCC", "8 c #D7D7D7", "9 c #9D9D9D", "0 c #B6B6B6", "a c #E2E2E2", "b c #E8E8E8", "c c #DBDBDB", "d c #D1D1D1", "e c #CBCBCB", "f c #D0D0D0", "g c #C4C5C5", "h c #3F3F3F", "i c #717171", "j c #A4A4A4", "k c #909090", "l c #C3C3C3", "m c #ECECEC", "n c #EDEDED", "o c #E9E9E9", "p c #D4D4D4", "q c #C9C9C9", "r c #C2C3C2", "s c #B8B8B8", "t c #ADADAD", "u c #9AA19B", "v c #8B9A8E", "w c #BBC3BC", "x c #DBDCDB", "y c #797979", "z c #999999", "A c #B0B0B0", "B c #F0F0F0", "C c #F1F1F1", "D c #D5D5D5", "E c #CECECE", "F c #B7B7B7", "G c #9CA19C", "H c #859587", "I c #6B8870", "J c #517C59", "K c #3D7447", "L c #478051", "M c #AAC3AE", "N c #DEE0DE", "O c #DCDCDC", "P c #A8A8A8", "Q c #EAEAEA", "R c #F2F2F2", "S c #F3F3F3", "T c #EEEEEE", "U c #D6D6D6", "V c #9BA19C", "W c #819284", "X c #68856D", "Y c #527C59", "Z c #43794C", "` c #357740", " . c #277334", ".. c #176F26", "+. c #0E6C1E", "@. c #2D7E3B", "#. c #A6C6AB", "$. c #DFE2E0", "%. c #7E7E7E", "&. c #F4F4F4", "*. c #9BA09C", "=. c #839385", "-. c #68866D", ";. c #4E7956", ">. c #397043", ",. c #2C6E37", "'. c #226F2F", "). c #1B732A", "!. c #157426", "~. c #137323", "{. c #117121", "]. c #0F6F1F", "^. c #0D6D1E", "/. c #2D7F3B", "(. c #A6C7AB", "_. c #DFE3E0", ":. c #767676", "<. c #EBEBEB", "[. c #E0E0E0", "}. c #C0C0C0", "|. c #B5B5B5", "1. c #9A9F9B", "2. c #839285", "3. c #4D7954", "4. c #2B6D36", "5. c #1D692A", "6. c #10661E", "7. c #076417", "8. c #0A6A1A", "9. c #117222", "0. c #147624", "a. c #137524", "b. c #127422", "c. c #117221", "d. c #0F701F", "e. c #0E6E1E", "f. c #2E7F3B", "g. c #E0E3E0", "h. c #C7C7C7", "i. c #BFBFBF", "j. c #9C9F9C", "k. c #869388", "l. c #69856E", "m. c #4E7855", "n. c #3A7044", "o. c #2C6C36", "p. c #1E682A", "q. c #10641E", "r. c #086217", "s. c #056214", "t. c #036213", "u. c #036413", "v. c #076A17", "w. c #107320", "x. c #147825", "y. c #147725", "z. c #137624", "A. c #127423", "B. c #0F7020", "C. c #2E803B", "D. c #6B6B6B", "E. c #859287", "F. c #6C8670", "G. c #527959", "H. c #3E7146", "I. c #2F6C39", "J. c #1F672C", "K. c #11631F", "L. c #096118", "M. c #056015", "N. c #046113", "O. c #026012", "P. c #016111", "Q. c #026312", "R. c #076917", "S. c #107420", "T. c #167A27", "U. c #157826", "V. c #147625", "W. c #137523", "X. c #117322", "Y. c #107120", "Z. c #0E6F1F", "`. c #696969", " + c #E4E4E4", ".+ c #788A7C", "++ c #45724C", "@+ c #2F6B39", "#+ c #21672E", "$+ c #146222", "%+ c #0A6019", "&+ c #065F16", "*+ c #045F14", "=+ c #1D7F2D", "-+ c #157726", ";+ c #026113", ">+ c #016011", ",+ c #056716", "'+ c #0F7320", ")+ c #177C28", "!+ c #187C29", "~+ c #177B28", "{+ c #157926", "]+ c #127322", "^+ c #2E813C", "/+ c #A6C7AC", "(+ c #E0E3E1", "_+ c #686868", ":+ c #B1B2B1", "<+ c #5D7D62", "[+ c #186324", "}+ c #075E15", "|+ c #045E14", "1+ c #035D12", "2+ c #015E11", "3+ c #066516", "4+ c #42AA54", "5+ c #3BA44E", "6+ c #0E701F", "7+ c #046514", "8+ c #0C701D", "9+ c #197E2A", "0+ c #187D29", "a+ c #167926", "b+ c #E1E4E1", "c+ c #676767", "d+ c #B1B1B1", "e+ c #587C5E", "f+ c #11611E", "g+ c #025D11", "h+ c #015D11", "i+ c #1D7F2E", "j+ c #5FCD72", "k+ c #5BC86E", "l+ c #1F8330", "m+ c #026212", "n+ c #0A6D1A", "o+ c #157B26", "p+ c #1A802B", "q+ c #197F2B", "r+ c #666666", "s+ c #046114", "t+ c #3CA44E", "u+ c #76E889", "v+ c #74E587", "w+ c #309742", "x+ c #036313", "y+ c #016211", "z+ c #056816", "A+ c #117622", "B+ c #1A812C", "C+ c #197F2A", "D+ c #177B27", "E+ c #167A26", "F+ c #238835", "G+ c #329944", "H+ c #248835", "I+ c #646464", "J+ c #127323", "K+ c #56C369", "L+ c #7BEE8E", "M+ c #7FF292", "N+ c #41AC53", "O+ c #086918", "P+ c #1B822C", "Q+ c #1D832E", "R+ c #278E38", "S+ c #359E47", "T+ c #44AF57", "U+ c #53BF65", "V+ c #60CE72", "W+ c #6BDB7E", "X+ c #45AF57", "Y+ c #157626", "Z+ c #11611F", "`+ c #025D12", " @ c #015F11", ".@ c #2F9440", "+@ c #68D87B", "@@ c #5DCB70", "#@ c #6CDD80", "$@ c #54C066", "%@ c #066917", "&@ c #137824", "*@ c #1C832E", "=@ c #258D36", "-@ c #3CA64E", ";@ c #53C166", ">@ c #60CF73", ",@ c #6DDD80", "'@ c #72E486", ")@ c #61CF74", "!@ c #51BD64", "~@ c #319742", "{@ c #147524", "]@ c #2E803C", "^@ c #626262", "/@ c #0B6B1C", "(@ c #4EB961", "_@ c #66D579", ":@ c #329943", "<@ c #4FBB62", "[@ c #64D478", "}@ c #2A923C", "|@ c #0D711E", "1@ c #187F2A", "2@ c #208732", "3@ c #40AC53", "4@ c #6DDF80", "5@ c #73E587", "6@ c #63D276", "7@ c #54C167", "8@ c #369D47", "9@ c #268C38", "0@ c #177928", "a@ c #E1E5E2", "b@ c #616161", "c@ c #B2B3B2", "d@ c #11621F", "e@ c #035F13", "f@ c #036113", "g@ c #046315", "h@ c #258A36", "i@ c #65D478", "j@ c #4DB960", "k@ c #177A27", "l@ c #39A24B", "m@ c #6DDE80", "n@ c #42AC54", "o@ c #157A26", "p@ c #319A43", "q@ c #5FCF73", "r@ c #6EDF81", "s@ c #47B259", "t@ c #2B923C", "u@ c #1C802D", "v@ c #107020", "w@ c #A7C7AC", "x@ c #E2E5E2", "y@ c #606060", "z@ c #186A25", "A@ c #177727", "B@ c #268936", "C@ c #339A45", "D@ c #55C268", "E@ c #6ADA7D", "F@ c #339A44", "G@ c #238934", "H@ c #65D578", "I@ c #58C56A", "J@ c #228934", "K@ c #258B36", "L@ c #4EBB60", "M@ c #6FE082", "N@ c #4CB95F", "O@ c #1E832F", "P@ c #106F20", "Q@ c #0D6C1D", "R@ c #2D7E3A", "S@ c #B3B3B3", "T@ c #587D5E", "U@ c #318840", "V@ c #4BB45D", "W@ c #64D376", "X@ c #46B158", "Y@ c #197C29", "Z@ c #0D6F1E", "`@ c #52C065", " # c #36A049", ".# c #3CA74E", "+# c #60CF72", "@# c #2B923D", "## c #0E6D1E", "$# c #0C6C1D", "%# c #2C7E3A", "&# c #E2E5E3", "*# c #3B944A", "=# c #51BC64", "-# c #4BB65D", ";# c #3BA44D", "># c #298F3A", ",# c #056515", "'# c #3FA950", ")# c #71E183", "!# c #55C368", "~# c #5CCA6F", "{# c #6EDE81", "]# c #3EA850", "^# c #177A28", "/# c #107121", "(# c #0F6F20", "_# c #0C6B1C", ":# c #2C7D3A", "<# c #1C712B", "[# c #076718", "}# c #016012", "|# c #2C933D", "1# c #6BDC7E", "2# c #78EB8B", "3# c #6EDF82", "4# c #51BE64", "5# c #218532", "6# c #0B6A1B", "7# c #2B7C39", "8# c #A5C6AB", "9# c #025F12", "0# c #016311", "a# c #1D822E", "b# c #85F999", "c# c #64D377", "d# c #2F9540", "e# c #0C6A1C", "f# c #0B691B", "g# c #2E7D3B", "h# c #A7C6AD", "i# c #E2E6E3", "j# c #B3B4B3", "k# c #026412", "l# c #107321", "m# c #4DB85F", "n# c #6FE083", "o# c #40A951", "p# c #177927", "q# c #0F6E1F", "r# c #116E21", "s# c #136E23", "t# c #167025", "u# c #1E742D", "v# c #498E55", "w# c #B5CFB9", "x# c #E4E7E5", "y# c #046614", "z# c #0D6F1D", "A# c #359D46", "B# c #42AC53", "C# c #218632", "D# c #127122", "E# c #157224", "F# c #187327", "G# c #1F772E", "H# c #328240", "I# c #4B9057", "J# c #649F6E", "K# c #7FAF87", "L# c #A4C5AA", "M# c #D7E2D9", "N# c #E6E7E6", "O# c #11641F", "P# c #056715", "Q# c #1B7E2C", "R# c #1A7D2A", "S# c #127222", "T# c #147323", "U# c #157325", "V# c #177427", "W# c #20792F", "X# c #338441", "Y# c #4D9359", "Z# c #67A271", "`# c #82B28A", " $ c #9DC2A3", ".$ c #B9D1BD", "+$ c #D5E1D7", "@$ c #EAEDEA", "#$ c #B4B4B4", "$$ c #066817", "%$ c #137223", "&$ c #217B30", "*$ c #398847", "=$ c #52975E", "-$ c #6AA574", ";$ c #85B58D", ">$ c #A0C4A6", ",$ c #BBD2BF", "'$ c #E8EBE8", ")$ c #587E5E", "!$ c #147125", "~$ c #358542", "{$ c #549860", "]$ c #74AB7D", "^$ c #91BC98", "/$ c #ABCBB1", "($ c #C1D7C5", "_$ c #E7EAE7", ":$ c #939393", "<$ c #B4B5B4", "[$ c #026112", "}$ c #0F6B1E", "|$ c #2B7D38", "1$ c #4B9056", "2$ c #6CA576", "3$ c #8DB994", "4$ c #AACAB0", "5$ c #C4D8C8", "6$ c #DDE5DF", "7$ c #EBECEB", "8$ c #A6A6A6", "9$ c #898989", "0$ c #969696", "a$ c #A9A9A9", "b$ c #597E5F", "c$ c #1D6C2B", "d$ c #2C7B39", "e$ c #4C9058", "f$ c #6EA577", "g$ c #8CB793", "h$ c #BFD4C2", "i$ c #D8E1DA", "j$ c #E6E8E6", "k$ c #E7E8E8", "l$ c #E4E5E5", "m$ c #C1C1C1", "n$ c #8A8A8A", "o$ c #A0B1A3", "p$ c #99BB9E", "q$ c #A8C7AD", "r$ c #BED3C1", "s$ c #D5DFD6", "t$ c #E2E4E3", "u$ c #E1E2E1", "v$ c #A1A1A1", "w$ c #888888", "x$ c #D7D9D8", "y$ c #E1E3E1", "z$ c #E0E2E0", "A$ c #DFE0DF", "B$ c #DDDEDD", "C$ c #BEBEBE", "D$ c #838383", "E$ c #808080", "F$ c #B9B9B9", "G$ c #9E9E9E", "H$ c #AEAEAE", "I$ c #777777", "J$ c #868686", "K$ c #A5A5A5", "L$ c #949494", " ", " ", " ", " ", " ", " ", " . + @ # $ % % ", " & * = - ; > , ' , ) ! ~ ", " # { ] ^ / ( , _ ' ) ! : < [ } } ", " | 1 2 3 ! , ' , ! 4 ( 5 ~ } 6 7 ~ 8 > ", " @ 9 0 [ a ' b , ! : c 8 d 7 6 e f ~ } g f > > ", " h i j k . - l ( b m n o a ( 5 p f 7 q 7 f ~ } r s t u v w x c ", " y % j z A q ! m B C n ' 4 c D 3 6 / 6 3 ~ E ; F & G H I J K L M N O ", " P F p Q C R S T ' 4 > U d 7 q 6 E ~ E l s t V W X Y Z ` ...+.@.#.$.O ", " %.< T &.C b 4 < p f } 6 6 E d } ; F & *.=.-.;.>.,.'.).!.~.{.].^./.(._.( ", " :.b <.[.[ f } 6 6 } f e }.|.^ 1.2.-.3.>.4.5.6.7.8.9.0.a.b.c.d.e.f.(.g.( ", " i b ) f h.7 3 6 i.|.^ j.k.l.m.n.o.p.q.r.s.t.u.v.w.x.y.z.A.c.B.e.C.(.g.( ", " D.' ! f e $ % j.E.F.G.H.I.J.K.L.M.N.O.P.P.Q.R.S.T.T.U.V.W.X.Y.Z.C.(.g.: ", " `. +[.d e 0 .+++@+#+$+%+&+*+=+-+;+>+>+P.P.,+'+)+!+~+{+y.W.]+Y.Z.^+/+(+: ", " _+! 4 d e :+<+[+}+|+1+2+2+3+4+5+6+>+P.P.7+8+)+9+0+~+a+y.a.]+Y.Z.^+/+b+: ", " c+4 : d e d+e+f+g+h+2+2+2+i+j+k+l+m+P.Q.n+o+p+q+0+~+a+y.a.]+Y.Z.^+/+b+4 ", " r+( ( d 7 :+e+f+g+h+2+2+s+t+u+v+w+x+y+z+A+p+B+C+!+D+E+!+F+G+H+].^+/+b+4 ", " I+> O d 7 :+e+f+g+h+2+2+J+K+L+M+N+O+Q.8+C+P+p+Q+R+S+T+U+V+W+X+Y+^+(.b+4 ", " I+< c ~ 7 :+e+Z+`+2+2+ @.@+@@@#@$@{+%@&@*@=@-@;@>@,@'@,@)@!@~@{@]@(.b+4 ", " ^@U > ~ } 2 e+Z+`+2+2+/@(@_@:@<@[@}@|@1@2@3@4@5@6@7@X+8@9@0@].e.C./+a@[. ", " b@p < ~ } c@e+d@e@f@g@h@i@j@k@l@m@n@o@*@p@q@r@s@t@u@0.A.c.v@].^./.w@x@[. ", " y@[ 5 ~ } c@e+z@A@B@C@D@E@F@O+G@H@I@J@K@L@M@N@O@U.V.W.]+{.P@e.Q@R@(.a@[. ", " y@~ 5 ~ } S@T@U@V@@@i@W@X@Y@u.Z@`@+@ #.#E@+#@#U.y.a.]+c.v@].##$#%##.&#! ", " y@~ 8 ~ E S@T@*#=#-#;#>#b.,#P.y+'#)#!#~#{#]#^#y.a.A.9./#(#e.Q@_#:##.&#! ", " y@~ 8 ~ E S@T@<#~.[#}#>+P.P.y+y+|#1#2#3#4#5#V.a.A.9./#v@].##_#6#7#8#&#! ", " y@~ 8 ~ E S@T@K.9#>+>+P.P.y+y+0#a#V+b#c#d#z.W.]+9./#v@].##Q@e#f#g#h#i#a ", " y@~ 8 ~ 3 j#T@K.9#>+>+P.P.y+y+k#l#m#n#o#p#A.]+c./#B.q#q#r#s#t#u#v#w#x#a ", " y@~ 8 ~ 3 j#T@K.O.>+P.P.y+y+0#y#z#A#B#C#]+c.{.{.D#E#F#G#H#I#J#K#L#M#N#a ", " y@~ 8 [ 3 j#T@O#O.>+P.P.y+y+0#P#z#Q#R#S#T#U#V#W#X#Y#Z#`# $.$+$@$T Q +a ", " y@~ 8 [ f #$T@O#O.P.P.y+y+0#0#$$Z.%$U#&$*$=$-$;$>$,$+$'$m b , a [.[.4 : ", " y@~ 8 [ f #$)$O#O.P.P.y+Q.k#u.!$~${$]$^$/$($+$_$<._ +! 4 [.[.4 5 / % :$ ", " y@~ 8 [ f <$)$O#[$P.y+}$|$1$2$3$4$5$6$7$Q _ ) 4 : 4 4 4 5 ; 8$9$0$a$ ", " y@~ 8 [ f |.b$c$d$e$f$g$/+h$i$j$k$l$! 4 : : : ( U m$j n$k ", " y@~ 8 [ d ; o$p$q$r$s$a@t$u$4 ( ( O ( ( D i.v$w$n$ ", " y@~ 5 p [ [ x$y$z$A$B$O O O O O p C${ D$n$ ", " E$6 5 p [ 5 > c c c c c E F$G$E$. ", " H$5 p [ < < > } S@1 I$J$ ", " K$q [ / 2 L$:.D$ ", " G$K$ ", " ", " ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesModel.cpp0000644000175000001440000001356411506076310017416 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CPropertiesModel.h" #include "CPropertiesDelegate.h" /*! * \brief Construct a properties model. * * \param pobjectParent * \param hFirstProperty */ CPropertiesModel::CPropertiesModel( QObject *pobjectParent, HODBCINSTPROPERTY pFirstProperty ) : QAbstractTableModel( pobjectParent ) { /* create an index on our linked-list to simplify, and speed up, access */ for ( HODBCINSTPROPERTY pProperty = pFirstProperty; pProperty != NULL; pProperty = pProperty->pNext ) { vectorProperties.append( pProperty ); } } CPropertiesModel::~CPropertiesModel() { } /*! * \brief Return the number of rows needed to view the properties. * * * \return int Output. The number of properties. */ int CPropertiesModel::rowCount( const QModelIndex & ) const { return vectorProperties.size(); } /*! * \brief Return the number of columns needed to view the properties. * * We always return 2. We have 1 column with the property name and 1 column with the * value - the latter us typically, but not always, editable. * * \return int Output. Always 2. */ int CPropertiesModel::columnCount( const QModelIndex & ) const { return 2; } /*! * \brief Provide cell data to the view and any delegate we may have in play * for the cell. * * We expect that the 2nd column will have CPropertiesDelegate installed on it. So for * the 2nd column we may return the value text or HODBCINSTPROPERTY. * * \param index * \param nRole Input. Qt::ItemDataRole. This is provided to request a specific variant of the * data associated with the cell. * * \return QVariant */ QVariant CPropertiesModel::data( const QModelIndex &index, int nRole ) const { /* \todo are these sanity checks really needed? */ if ( !index.isValid() ) return QVariant(); if ( index.row() >= vectorProperties.size() ) return QVariant(); /* which column ? */ if ( index.column() == 0 ) { switch ( nRole ) { case Qt::DisplayRole: /* called by QTableView to display the value text */ return vectorProperties.at( index.row() )->szName; case Qt::EditRole: /* the 1st column should not be editable but... */ return vectorProperties.at( index.row() )->szName; case Qt::ToolTipRole: case Qt::StatusTipRole: case Qt::WhatsThisRole: return vectorProperties.at( index.row() )->pszHelp; default: break; } } else { switch ( nRole ) { case Qt::DisplayRole: /* called by QTableView to display the value text without editor */ return vectorProperties.at( index.row() )->szValue; case Qt::EditRole: /* called by CPropertiesDelegate:: createEditor & setEditorData to load cell editor */ return QVariant::fromValue( vectorProperties.at( index.row() ) ); case Qt::ToolTipRole: case Qt::StatusTipRole: case Qt::WhatsThisRole: return vectorProperties.at( index.row() )->pszHelp; default: break; } } return QVariant(); } /*! * \brief Set data. * * The view (possibly via a delegate) will ask to set the cell value which will result * in a call to this method. * * \param index Input. Index into the cell. * \param variantValue Input. The only column we deal with here is the 2nd column (the value) and * we expect to get that as a QString. This should come from * \sa CPropertiesDelegate::setModelData. * \param nRole Input. Qt::ItemDataRole. This is provided to request setting a specific variant * of the data associated with the cell. * * \return bool */ bool CPropertiesModel::setData( const QModelIndex &index, const QVariant &variantValue, int nRole ) { if ( !index.isValid() ) return false; if ( index.column() == 0 ) return false; if ( nRole == Qt::EditRole ) { strcpy( vectorProperties.at( index.row() )->szValue, variantValue.toString().toAscii().constData() ); emit dataChanged( index, index ); return true; } return false; } /*! * \brief The delegate will check this to determine what it can do with a cell. * * \param index Input. Cell index. * * \return Qt::ItemFlags */ Qt::ItemFlags CPropertiesModel::flags( const QModelIndex &index ) const { if ( !index.isValid() ) return Qt::ItemIsEnabled; /* for lack of a better choice :/ */ if ( index.column() == 1 ) return ( QAbstractItemModel::flags( index ) | Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsEnabled ); return Qt::ItemIsEnabled; /* for lack of a better choice :/ */ } /*! * \brief QTableView (or possibly a delegate) will get column headers here. * * \param nSection Input. Column/row. * \param nOrientation Input. Qt::Orientation. * \param nRole Input. Qt::ItemDataRole. This is provided to request a specific variant * of the data associated with the cell. * * \return QVariant */ QVariant CPropertiesModel::headerData( int nSection, Qt::Orientation nOrientation, int nRole ) const { if ( nRole != Qt::DisplayRole ) return QVariant(); if ( nOrientation != Qt::Horizontal ) return QVariant(); if ( nSection == 0 ) return QString( tr( "Name" ) ); if ( nSection == 1 ) return QString( tr( "Value" ) ); return QVariant(); } unixodbc-gui-qt-2.3.0/odbcinstQ4/Makefile.in0000644000175000001440000007244011506076377015552 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = odbcinstQ4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = am_libodbcinstQ4_la_OBJECTS = CAbout.lo CAdvanced.lo \ CDataSourceNameList.lo CDataSourceNames.lo \ CDataSourceNamesFile.lo CDataSourceNamesFileModel.lo \ CDriverConnectPrompt.lo CDriverList.lo CDriverPrompt.lo \ CDSNWizardProperties.lo CDSNWizardDriver.lo CDSNWizardEntre.lo \ CDSNWizardFini.lo CDSNWizard.lo CDSNWizardType.lo \ CFileSelector.lo CHelp.lo CManageDataSourceNames.lo \ CManageDrivers.lo CODBCConfig.lo CODBCInst.lo CPage.lo \ CPooling.lo CPropertiesDelegate.lo CPropertiesDialog.lo \ CPropertiesModel.lo CMonitorHandleCounts.lo CMonitor.lo \ CMonitorProcesses.lo CThreading.lo CTracing.lo \ ODBCDriverConnectPrompt.lo SQLManageDataSources.lo mCAbout.lo \ mCAdvanced.lo mCDataSourceNameList.lo mCDataSourceNames.lo \ mCDataSourceNamesFile.lo mCDataSourceNamesFileModel.lo \ mCDriverConnectPrompt.lo mCDriverList.lo mCDriverPrompt.lo \ mCDSNWizardProperties.lo mCDSNWizardDriver.lo \ mCDSNWizardEntre.lo mCDSNWizardFini.lo mCDSNWizard.lo \ mCDSNWizardType.lo mCFileSelector.lo mCHelp.lo \ mCManageDataSourceNames.lo mCManageDrivers.lo mCODBCConfig.lo \ mCPooling.lo mCPropertiesDelegate.lo mCPropertiesDialog.lo \ mCMonitorHandleCounts.lo mCMonitor.lo mCMonitorProcesses.lo \ mCThreading.lo mCTracing.lo libodbcinstQ4_la_OBJECTS = $(am_libodbcinstQ4_la_OBJECTS) libodbcinstQ4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libodbcinstQ4_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libodbcinstQ4_la_SOURCES) DIST_SOURCES = $(libodbcinstQ4_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libodbcinstQ4.la libodbcinstQ4_la_LDFLAGS = \ -no-undefined \ -version-info 2:1:1 \ -export-dynamic \ -export-symbols @srcdir@/odbcinstQ4.exp \ -module INCLUDES = -I@top_srcdir@/ini \ $(QT_CXXFLAGS) \ -DTHEPREFIX=\"@prefix@\" \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ -DDEFLIB_PATH=\"@libdir@\" \ -DSHLIBEXT=\"@SHLIBEXT@\" \ $(LTDLINCL) libodbcinstQ4_la_LIBADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ ../ini/libinilc.la \ -lodbc -lodbcinst libodbcinstQ4_la_DEPENDENCIES = \ ../ini/libinilc.la CLEANFILES = \ mCAbout.cpp \ mCAdvanced.cpp \ mCDataSourceNameList.cpp \ mCDataSourceNames.cpp \ mCDataSourceNamesFile.cpp \ mCDataSourceNamesFileModel.cpp \ mCDriverConnectPrompt.cpp \ mCDriverList.cpp \ mCDriverPrompt.cpp \ mCDSNWizardProperties.cpp \ mCDSNWizardDriver.cpp \ mCDSNWizardEntre.cpp \ mCDSNWizardFini.cpp \ mCDSNWizard.cpp \ mCDSNWizardType.cpp \ mCFileSelector.cpp \ mCHelp.cpp \ mCManageDataSourceNames.cpp \ mCManageDrivers.cpp \ mCODBCConfig.cpp \ mCPooling.cpp \ mCPropertiesDelegate.cpp \ mCPropertiesDialog.cpp \ mCMonitorHandleCounts.cpp \ mCMonitor.cpp \ mCMonitorProcesses.cpp \ mCThreading.cpp \ mCTracing.cpp libodbcinstQ4_la_SOURCES = \ CAbout.cpp \ CAdvanced.cpp \ CDataSourceNameList.cpp \ CDataSourceNames.cpp \ CDataSourceNamesFile.cpp \ CDataSourceNamesFileModel.cpp \ CDriverConnectPrompt.cpp \ CDriverList.cpp \ CDriverPrompt.cpp \ CDSNWizardProperties.cpp \ CDSNWizardDriver.cpp \ CDSNWizardEntre.cpp \ CDSNWizardFini.cpp \ CDSNWizard.cpp \ CDSNWizardType.cpp \ CFileSelector.cpp \ CHelp.cpp \ CManageDataSourceNames.cpp \ CManageDrivers.cpp \ CODBCConfig.cpp \ CODBCInst.cpp \ CPage.cpp \ CPooling.cpp \ CPropertiesDelegate.cpp \ CPropertiesDialog.cpp \ CPropertiesModel.cpp \ CMonitorHandleCounts.cpp \ CMonitor.cpp \ CMonitorProcesses.cpp \ CThreading.cpp \ CTracing.cpp \ ODBCDriverConnectPrompt.cpp \ SQLManageDataSources.cpp \ mCAbout.cpp \ mCAdvanced.cpp \ mCDataSourceNameList.cpp \ mCDataSourceNames.cpp \ mCDataSourceNamesFile.cpp \ mCDataSourceNamesFileModel.cpp \ mCDriverConnectPrompt.cpp \ mCDriverList.cpp \ mCDriverPrompt.cpp \ mCDSNWizardProperties.cpp \ mCDSNWizardDriver.cpp \ mCDSNWizardEntre.cpp \ mCDSNWizardFini.cpp \ mCDSNWizard.cpp \ mCDSNWizardType.cpp \ mCFileSelector.cpp \ mCHelp.cpp \ mCManageDataSourceNames.cpp \ mCManageDrivers.cpp \ mCODBCConfig.cpp \ mCPooling.cpp \ mCPropertiesDelegate.cpp \ mCPropertiesDialog.cpp \ mCMonitorHandleCounts.cpp \ mCMonitor.cpp \ mCMonitorProcesses.cpp \ mCThreading.cpp \ mCTracing.cpp EXTRA_DIST = \ CAbout.h \ CAdvanced.h \ CDataSourceNameList.h \ CDataSourceNames.h \ CDataSourceNamesFile.h \ CDataSourceNamesFileModel.h \ CDriverConnectPrompt.h \ CDriverList.h \ CDriverPrompt.h \ CDSNWizardProperties.h \ CDSNWizardDriver.h \ CDSNWizardEntre.h \ CDSNWizardFini.h \ CDSNWizard.h \ CDSNWizardType.h \ CFileSelector.h \ CHelp.h \ CManageDataSourceNames.h \ CManageDrivers.h \ CMonitor.h \ CMonitorHandleCounts.h \ CMonitorProcesses.h \ CODBCConfig.h \ CODBCInst.h \ CPage.h \ CPooling.h \ CPropertiesDelegate.h \ CPropertiesDialog.h \ CPropertiesModel.h \ CThreading.h \ CTracing.h \ About48.xpm \ Advanced48.xpm \ Canada.xpm \ DataSourceName48.xpm \ DataSourceNameFile48.xpm \ DataSourceNameSystem48.xpm \ DataSourceNameUser48.xpm \ Driver128.xpm \ Driver48.xpm \ GreatBritain.xpm \ Info16.xpm \ InfoArrow16.xpm \ NoFlag.xpm \ ODBC.xpm \ Pooling48.xpm \ Set.xpm \ Stats48.xpm \ Threading48.xpm \ Tracing48.xpm \ odbcinstQ4.exp \ ODBCManageDataSources64.xpm \ WizardCreateDataSourceName.xpm all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu odbcinstQ4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu odbcinstQ4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libodbcinstQ4.la: $(libodbcinstQ4_la_OBJECTS) $(libodbcinstQ4_la_DEPENDENCIES) $(libodbcinstQ4_la_LINK) -rpath $(libdir) $(libodbcinstQ4_la_OBJECTS) $(libodbcinstQ4_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CAbout.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CAdvanced.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizard.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizardDriver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizardEntre.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizardFini.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizardProperties.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDSNWizardType.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDataSourceNameList.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDataSourceNames.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDataSourceNamesFile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDataSourceNamesFileModel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDriverConnectPrompt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDriverList.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CDriverPrompt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CFileSelector.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CHelp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CManageDataSourceNames.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CManageDrivers.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMonitor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMonitorHandleCounts.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMonitorProcesses.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CODBCConfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CODBCInst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CPage.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CPooling.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CPropertiesDelegate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CPropertiesDialog.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CPropertiesModel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CThreading.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CTracing.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ODBCDriverConnectPrompt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SQLManageDataSources.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCAbout.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCAdvanced.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizard.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizardDriver.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizardEntre.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizardFini.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizardProperties.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDSNWizardType.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDataSourceNameList.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDataSourceNames.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDataSourceNamesFile.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDataSourceNamesFileModel.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDriverConnectPrompt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDriverList.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCDriverPrompt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCFileSelector.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCHelp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCManageDataSourceNames.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCManageDrivers.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCMonitor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCMonitorHandleCounts.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCMonitorProcesses.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCODBCConfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCPooling.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCPropertiesDelegate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCPropertiesDialog.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCThreading.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mCTracing.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-libLTLIBRARIES mCAbout.cpp: @srcdir@/CAbout.h @MOC@ @srcdir@/CAbout.h -o mCAbout.cpp mCAdvanced.cpp: @srcdir@/CAdvanced.h @MOC@ @srcdir@/CAdvanced.h -o mCAdvanced.cpp mCDataSourceNameList.cpp: @srcdir@/CDataSourceNameList.h @MOC@ @srcdir@/CDataSourceNameList.h -o mCDataSourceNameList.cpp mCDataSourceNames.cpp: @srcdir@/CDataSourceNames.h @MOC@ @srcdir@/CDataSourceNames.h -o mCDataSourceNames.cpp mCDataSourceNamesFile.cpp: @srcdir@/CDataSourceNamesFile.h @MOC@ @srcdir@/CDataSourceNamesFile.h -o mCDataSourceNamesFile.cpp mCDataSourceNamesFileModel.cpp: @srcdir@/CDataSourceNamesFileModel.h @MOC@ @srcdir@/CDataSourceNamesFileModel.h -o mCDataSourceNamesFileModel.cpp mCDriverConnectPrompt.cpp: @srcdir@/CDriverConnectPrompt.h @MOC@ @srcdir@/CDriverConnectPrompt.h -o mCDriverConnectPrompt.cpp mCDriverList.cpp: @srcdir@/CDriverList.h @MOC@ @srcdir@/CDriverList.h -o mCDriverList.cpp mCDriverPrompt.cpp: @srcdir@/CDriverPrompt.h @MOC@ @srcdir@/CDriverPrompt.h -o mCDriverPrompt.cpp mCDSNWizardProperties.cpp: @srcdir@/CDSNWizardProperties.h @MOC@ @srcdir@/CDSNWizardProperties.h -o mCDSNWizardProperties.cpp mCDSNWizardDriver.cpp: @srcdir@/CDSNWizardDriver.h @MOC@ @srcdir@/CDSNWizardDriver.h -o mCDSNWizardDriver.cpp mCDSNWizardEntre.cpp: @srcdir@/CDSNWizardEntre.h @MOC@ @srcdir@/CDSNWizardEntre.h -o mCDSNWizardEntre.cpp mCDSNWizardFini.cpp: @srcdir@/CDSNWizardFini.h @MOC@ @srcdir@/CDSNWizardFini.h -o mCDSNWizardFini.cpp mCDSNWizard.cpp: @srcdir@/CDSNWizard.h @MOC@ @srcdir@/CDSNWizard.h -o mCDSNWizard.cpp mCDSNWizardType.cpp: @srcdir@/CDSNWizardType.h @MOC@ @srcdir@/CDSNWizardType.h -o mCDSNWizardType.cpp mCFileSelector.cpp: @srcdir@/CFileSelector.h @MOC@ @srcdir@/CFileSelector.h -o mCFileSelector.cpp mCHelp.cpp: @srcdir@/CHelp.h @MOC@ @srcdir@/CHelp.h -o mCHelp.cpp mCManageDataSourceNames.cpp: @srcdir@/CManageDataSourceNames.h @MOC@ @srcdir@/CManageDataSourceNames.h -o mCManageDataSourceNames.cpp mCManageDrivers.cpp: @srcdir@/CManageDrivers.h @MOC@ @srcdir@/CManageDrivers.h -o mCManageDrivers.cpp mCODBCConfig.cpp: @srcdir@/CODBCConfig.h @MOC@ @srcdir@/CODBCConfig.h -o mCODBCConfig.cpp mCPooling.cpp: @srcdir@/CPooling.h @MOC@ @srcdir@/CPooling.h -o mCPooling.cpp mCPropertiesDelegate.cpp: @srcdir@/CPropertiesDelegate.h @MOC@ @srcdir@/CPropertiesDelegate.h -o mCPropertiesDelegate.cpp mCPropertiesDialog.cpp: @srcdir@/CPropertiesDialog.h @MOC@ @srcdir@/CPropertiesDialog.h -o mCPropertiesDialog.cpp mCMonitor.cpp: @srcdir@/CMonitor.h @MOC@ @srcdir@/CMonitor.h -o mCMonitor.cpp mCMonitorHandleCounts.cpp: @srcdir@/CMonitorHandleCounts.h @MOC@ @srcdir@/CMonitorHandleCounts.h -o mCMonitorHandleCounts.cpp mCMonitorProcesses.cpp: @srcdir@/CMonitorProcesses.h @MOC@ @srcdir@/CMonitorProcesses.h -o mCMonitorProcesses.cpp mCThreading.cpp: @srcdir@/CThreading.h @MOC@ @srcdir@/CThreading.h -o mCThreading.cpp mCTracing.cpp: @srcdir@/CTracing.h @MOC@ @srcdir@/CTracing.h -o mCTracing.cpp # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/odbcinstQ4/CPooling.cpp0000644000175000001440000000560711506076310015707 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CPooling.h" #include "Pooling48.xpm" CPooling::CPooling( QWidget *pwidgetParent ) : QWidget( pwidgetParent ) { QGridLayout *playout = new QGridLayout; pcheckboxEnable = new QCheckBox; pcheckboxEnable->setToolTip( tr( "check to enable pooling" ) ); pcheckboxEnable->setWhatsThis( tr( "Check this to enable connection pooling. Connections with similar or same connection options can be reduced to one, common, connection and this can often improve performance - particularly for server processes." ) ); playout->addWidget( new QLabel( tr( "Enable" ) ), 0, 0 ); playout->addWidget( pcheckboxEnable, 0, 1 ); QPushButton *ppushbuttonSetDefault = new QPushButton( "De&fault", this ); ppushbuttonSetDefault->setToolTip( tr( "click to set values to default" ) ); ppushbuttonSetDefault->setWhatsThis( tr( "Click to restore the default values." ) ); QPushButton *ppushbuttonApply = new QPushButton( "A&pply", this ); ppushbuttonApply->setToolTip( tr( "click to apply the current settings" ) ); ppushbuttonApply->setWhatsThis( tr( "Click this to save the current values." ) ); playout->addWidget( ppushbuttonSetDefault, 0, 2 ); playout->addWidget( ppushbuttonApply, 1, 2 ); connect( ppushbuttonSetDefault, SIGNAL(clicked()), SLOT(slotDefault()) ); connect( ppushbuttonApply, SIGNAL(clicked()), SLOT(slotApply()) ); playout->setRowStretch( 3, 10 ); playout->setColumnStretch( 1, 10 ); setLayout( playout ); setWindowIcon( QPixmap( xpmPooling48 ) ); setWindowTitle( tr( "Pooling" ) ); loadData(); } CPooling::~CPooling() { } bool CPooling::loadData() { slotDefault(); char szPooling[10]; SQLGetPrivateProfileString( "ODBC", "Pooling", "No", szPooling, sizeof(szPooling), "odbcinst.ini" ); if ( szPooling[0] == '1' || toupper( szPooling[0] ) == 'Y' || toupper( szPooling[0] ) == 'O' ) pcheckboxEnable->setChecked( true ); return true; } bool CPooling::saveData() { if ( slotApply() ) return true; int n = QMessageBox::question( this, tr( "Save..." ), tr( "Some data could not be saved. Click Discard if its ok to lose changes." ), QMessageBox::Cancel | QMessageBox::Discard, QMessageBox::Discard ); if ( n == QMessageBox::Discard ) return true; return false; } bool CPooling::slotApply() { if ( !SQLWritePrivateProfileString( "ODBC", "Pooling", ( pcheckboxEnable->isChecked() ? "1" : "0" ), "odbcinst.ini" ) ) { CODBCInst::showErrors( this, tr( "Could not save options. You may not have the privileges to write odbcinst.ini." ) ); return false; } return true; } bool CPooling::slotDefault() { pcheckboxEnable->setChecked( false ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardType.h0000644000175000001440000000166111506076310016410 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARDTYPE_H #define CDSNWIZARDTYPE_H #include "CODBCInst.h" #include /*! * \class CDSNWizardEntre * \brief First page of create data source name wizard. * * This page asks for the type of DSN to create; * * \li User * \li System * \li File * * \sa CDSNWizard */ class CDSNWizardType : public QWizardPage { Q_OBJECT public: CDSNWizardType( CDSNWizardData *pWizardData, QWidget *pwidgetParent = 0 ); int nextId() const; void initializePage(); void cleanupPage(); protected: CDSNWizardData *pWizardData; QRadioButton * pradiobuttonUser; QRadioButton * pradiobuttonSystem; QRadioButton * pradiobuttonFile; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCMonitorProcesses.cpp0000644000175000001440000000500311506076451017767 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CMonitorProcesses.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CMonitorProcesses.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CMonitorProcesses.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CMonitorProcesses[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 19, 18, 18, 18, 0x09, 35, 30, 18, 18, 0x09, 0 // eod }; static const char qt_meta_stringdata_CMonitorProcesses[] = { "CMonitorProcesses\0\0slotLoad()\0nRow\0" "clearRow(int)\0" }; const QMetaObject CMonitorProcesses::staticMetaObject = { { &QTableWidget::staticMetaObject, qt_meta_stringdata_CMonitorProcesses, qt_meta_data_CMonitorProcesses, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CMonitorProcesses::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CMonitorProcesses::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CMonitorProcesses::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CMonitorProcesses)) return static_cast(const_cast< CMonitorProcesses*>(this)); return QTableWidget::qt_metacast(_clname); } int CMonitorProcesses::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTableWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotLoad(); break; case 1: clearRow((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/Info16.xpm0000644000175000001440000000467311506076310015263 00000000000000/* XPM */ static const char * xpmInfo16[] = { "16 16 116 2", " c None", ". c #0159AF", "+ c #1B6BBA", "@ c #196BBA", "# c #015DB5", "$ c #1466B8", "% c #6299D0", "& c #89B3DC", "* c #75A6D6", "= c #76A6D6", "- c #88B4DE", "; c #629CD5", "> c #136BC1", ", c #2473C0", "' c #78A9D9", ") c #7CACDB", "! c #6A9FD4", "~ c #F4F8FC", "{ c #F5F9FC", "] c #6EA3D6", "^ c #7CAFDF", "/ c #78ADDE", "( c #247BCB", "_ c #136BBF", ": c #5F9BD4", "< c #649FD6", "[ c #64A0D7", "} c #7DACD9", "| c #FFFFFF", "1 c #87B3DE", "2 c #64A2DC", "3 c #64A3DC", "4 c #5FA0DC", "5 c #1475CE", "6 c #3482CC", "7 c #4C91D3", "8 c #4C92D4", "9 c #4C93D5", "0 c #428BCF", "a c #A9C8E8", "b c #ACCBE8", "c c #448DD1", "d c #4C96DA", "e c #4C97DB", "f c #4C98DC", "g c #348BD9", "h c #0568C4", "i c #3485D0", "j c #3587D2", "k c #3587D3", "l c #3284D2", "m c #287DCC", "n c #257ACA", "o c #257BCB", "p c #3287D5", "q c #358CDA", "r c #358DDB", "s c #358EDB", "t c #348DDD", "u c #0573D6", "v c #0069C8", "w c #066ECB", "x c #1677CF", "y c #1D7CD2", "z c #1674CB", "A c #1676CF", "B c #1D81DA", "C c #1D82DB", "D c #167FDB", "E c #0677DA", "F c #0075DB", "G c #006CCD", "H c #006DCF", "I c #006ED0", "J c #0170D2", "K c #026FD1", "L c #0167C7", "M c #016ECF", "N c #0276DA", "O c #0177DC", "P c #0077DD", "Q c #0078DF", "R c #0079E0", "S c #0070D3", "T c #0071D4", "U c #0072D6", "V c #0073D7", "W c #0074D8", "X c #006ECF", "Y c #006FD2", "Z c #0078E0", "` c #0079E1", " . c #007AE2", ".. c #007BE4", "+. c #007CE4", "@. c #0074DA", "#. c #0076DC", "$. c #0077DE", "%. c #007CE5", "&. c #007DE6", "*. c #007EE8", "=. c #007FE9", "-. c #006DD0", ";. c #006FD3", ">. c #0081EC", ",. c #0081EB", "'. c #007CE6", "). c #007DE7", "!. c #027FE8", "~. c #1A83DF", "{. c #3490E1", "]. c #499BE2", "^. c #318FE1", "/. c #1487EA", "(. c #0282EC", "_. c #0483EC", " ", " . + @ # ", " $ % & * = - ; > ", " , ' ) ! ~ { ] ^ / ( ", " _ : < [ } | | 1 2 3 4 5 ", " 6 7 8 9 0 a b c d e f g ", " h i j k l m n o p q r s t u ", " v w x y z | | | A B C D E F ", " G H I J K L | | M N O P Q R ", " S T U V W X | | Y Z ` ...+. ", " @.F #.$.S | | U %.&.*.=. ", " Q R .Z -.| | ;.&.>.>.,. ", " '.).@.| | | | P >.>. ", " ,.!.~.{.].^./.>. ", " >.(._.,. ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CManageDrivers.cpp0000644000175000001440000000513711506076310017025 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CManageDrivers.h" #include "CDriverList.h" #include "Driver48.xpm" CManageDrivers::CManageDrivers( QWidget* pwidgetParent ) : QWidget( pwidgetParent ) { QPushButton *ppushbuttonAdd = new QPushButton( tr( "A&dd..." ) ); ppushbuttonAdd->setToolTip( tr( "click to add/register a driver" ) ); ppushbuttonAdd->setWhatsThis( tr( "Click this to register a driver. Registering a driver informs the Driver Manager about its location and allows some driver-level options to be set. A well behaved driver installer will automatically register a driver but there are times when this needs to be done manually here. You will need to have elevated (root) privileges to do this." ) ); QPushButton *ppushbuttonConfigure = new QPushButton( tr( "&Configure..." ) ); ppushbuttonConfigure->setToolTip( tr( "click to configure the selected driver" ) ); ppushbuttonConfigure->setWhatsThis( tr( "Click this to edit driver options. You will need to have elevated (root) privileges to do this." ) ); QPushButton *ppushbuttonRemove = new QPushButton( tr( "&Remove" ) ); ppushbuttonRemove->setToolTip( tr( "click to remove the selected driver" ) ); ppushbuttonRemove->setWhatsThis( tr( "Click this to deregister the selected driver. This does not remove any files from the system. You will need to have elevated (root) privileges to do this." ) ); QHBoxLayout *playout = new QHBoxLayout; QVBoxLayout *playoutButtons = new QVBoxLayout; CDriverList *pDriverList = new CDriverList( this ); playoutButtons->addWidget( ppushbuttonAdd ); playoutButtons->addWidget( ppushbuttonConfigure ); playoutButtons->addWidget( ppushbuttonRemove ); playoutButtons->addStretch( 10 ); playout->addWidget( pDriverList ); playout->addLayout( playoutButtons ); setLayout( playout ); connect( ppushbuttonAdd, SIGNAL(clicked()), pDriverList, SLOT(slotAdd()) ); connect( ppushbuttonConfigure, SIGNAL(clicked()), pDriverList, SLOT(slotEdit()) ); connect( ppushbuttonRemove, SIGNAL(clicked()), pDriverList, SLOT(slotDelete()) ); connect( pDriverList, SIGNAL(signalChanged()), this, SIGNAL(signalChanged()) ); setWindowIcon( QPixmap( xpmDriver48 ) ); setWindowTitle( tr( "Drivers" ) ); } CManageDrivers::~CManageDrivers() { } void CManageDrivers::slotDoubleClick( QTableWidgetItem * ) { printf( "[PAH][%s][%d]\n", __FILE__, __LINE__ ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizardType.cpp0000644000175000001440000000411511506076451017123 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizardType.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizardType.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizardType.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizardType[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CDSNWizardType[] = { "CDSNWizardType\0" }; const QMetaObject CDSNWizardType::staticMetaObject = { { &QWizardPage::staticMetaObject, qt_meta_stringdata_CDSNWizardType, qt_meta_data_CDSNWizardType, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizardType::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizardType::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizardType::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizardType)) return static_cast(const_cast< CDSNWizardType*>(this)); return QWizardPage::qt_metacast(_clname); } int CDSNWizardType::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizardPage::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardFini.cpp0000644000175000001440000000154111506076310016704 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CDSNWizardFini.h" #include "CDSNWizard.h" CDSNWizardFini::CDSNWizardFini( CDSNWizardData *pWizardData, QWidget *pwidgetParent ) : QWizardPage( pwidgetParent ) { this->pWizardData = pWizardData; QHBoxLayout * pLayout = new QHBoxLayout( this ); QTextBrowser * pTextBrowser = new QTextBrowser; pTextBrowser->setHtml( "

Click Finish to save the Data Source Name with the information you have provided.

" ); pLayout->addWidget( pTextBrowser ); setTitle( tr( "Finish" ) ); } int CDSNWizardFini::nextId() const { return -1; } void CDSNWizardFini::initializePage() { } void CDSNWizardFini::cleanupPage() { } unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitor.cpp0000644000175000001440000000146311506076310015723 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CMonitor.h" #include "CMonitorHandleCounts.h" #include "CMonitorProcesses.h" #include "Stats48.xpm" CMonitor::CMonitor( QWidget *pwidgetParent ) : QTabWidget( pwidgetParent ) { // handles { pMonitorHandleCounts = new CMonitorHandleCounts( this ); addTab( pMonitorHandleCounts, tr( "Handle Counts" ) ); } // tracing { pMonitorProcesses = new CMonitorProcesses( this ); addTab( pMonitorProcesses, tr( "Processes" ) ); } setWindowIcon( QPixmap( xpmStats48 ) ); setWindowTitle( tr( "Monitor" ) ); } CMonitor::~CMonitor() { } unixodbc-gui-qt-2.3.0/odbcinstQ4/Canada.xpm0000644000175000001440000000337511506076310015366 00000000000000/* XPM */ static const char *xpmCanada[] = { /* width height num_colors chars_per_pixel */ " 32 22 56 1", /* colors */ ". c #000000", "# c #d75556", "a c #f5eded", "b c #edc4c4", "c c #e18a8a", "d c #eec8c8", "e c #ca1414", "f c #f1d7d8", "g c #f4e8e8", "h c #e69f9f", "i c #d13838", "j c #f6f0f0", "k c #d23c3c", "l c #e59a9a", "m c #f0d6d6", "n c #ebbaba", "o c #c70606", "p c #da6464", "q c #d54848", "r c #ce2a2a", "s c #ecc0c1", "t c #edc4c5", "u c #e7a8a8", "v c #d03232", "w c #f1d9d9", "x c #f5eaea", "y c #da6363", "z c #dd7273", "A c #e08383", "B c #d75656", "C c #f3e1e1", "D c #c60000", "E c #db696a", "F c #cc2020", "G c #df7e7e", "H c #cb1b1b", "I c #c70303", "J c #f6f3f3", "K c #f7f7f7", "L c #e59d9d", "M c #e08181", "N c #dd7474", "O c #cf2b2b", "P c #f0d2d2", "Q c #e6a3a4", "R c #c70202", "S c #f6f2f2", "T c #e8a9a9", "U c #d64f4f", "V c #f0d4d5", "W c #f7f6f6", "X c #d65152", "Y c #f4e9e9", "Z c #ebbcbc", "0 c #efcdcd", "1 c #e6a0a0", /* pixels */ "................................", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKJKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKLnKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKSavUYKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKkDI#KKKKKyDDDDDDD.", ".DDDDDDDAKKKfKpDDMWwKKKyDDDDDDD.", ".DDDDDDDAKbTXqcDDliE1PKyDDDDDDD.", ".DDDDDDDAKCoDDIDDRDDejKyDDDDDDD.", ".DDDDDDDAK0HDDDDDDDDOwKyDDDDDDD.", ".DDDDDDDAKKdNFDDDDrGPKKyDDDDDDD.", ".DDDDDDDAKKKKBDIIDzKKKKyDDDDDDD.", ".DDDDDDDAKKKSmxutgVWKKKyDDDDDDD.", ".DDDDDDDAKKKKKKQsKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKhZKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKajKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", ".DDDDDDDAKKKKKKKKKKKKKKyDDDDDDD.", "................................" }; unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesModel.h0000644000175000001440000000231511506076310017053 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CPROPERTIESMODEL_H #define CPROPERTIESMODEL_H #include "CODBCInst.h" #include #include /* declare a non-standard data type so we can have it pass to/from as QVariant */ Q_DECLARE_METATYPE(HODBCINSTPROPERTY) class CPropertiesModel : public QAbstractTableModel { public: CPropertiesModel( QObject *pobjectParent = 0, HODBCINSTPROPERTY hFirstProperty = NULL ); virtual ~CPropertiesModel(); int rowCount ( const QModelIndex & parent = QModelIndex() ) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; QVariant data( const QModelIndex & index, int role = Qt::DisplayRole ) const; bool setData( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole ); Qt::ItemFlags flags( const QModelIndex &index ) const; QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; private: /* index our HODBCINSTPROPERTY list */ QVector vectorProperties; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/NoFlag.xpm0000644000175000001440000000154211506076310015357 00000000000000/* XPM */ static const char * xpmNoFlag[] = { "32 22 1 1", " c None", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " " }; unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverConnectPrompt.h0000644000175000001440000000230311506076310017702 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 1 * \date 2009 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDRIVERCONNECTPROMPT_H #define CDRIVERCONNECTPROMPT_H #include "CManageDataSourceNames.h" #include /*! * \class CDriverConnectPrompt * * \brief Prompt for a Data Source Name (File, User, or System). * * This dialog supports the SQLDriverConnect() call. This * is needed when an application calls SQLDriverConnect() with * an empty connect string. * * \sa ODBCDriverConnectPrompt * unixODBC::DriverManager::SQLDriverConnect * unixODBC::DriverManager::SQLDriverConnectPrompt */ class CDriverConnectPrompt : public QDialog { Q_OBJECT public: CDriverConnectPrompt( SQLCHAR *pszDataSourceName, SQLSMALLINT nMaxChars, QWidget *pwidgetParent = 0 ); virtual ~CDriverConnectPrompt(); protected slots: void slotAccept(); protected: SQLCHAR * pszDataSourceName; SQLSMALLINT nMaxChars; CManageDataSourceNames *pManageDataSourceNames; void loadState(); void saveState(); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/Threading48.xpm0000644000175000001440000002576011506076310016302 00000000000000/* XPM */ static const char * xpmThreading48[] = { "48 48 399 2", " c None", ". c #888888", "+ c #909090", "@ c #8E8E8E", "# c #8C8C8C", "$ c #8F8F8F", "% c #8B8B8B", "& c #878787", "* c #8D8D8D", "= c #868686", "- c #7E7E7E", "; c #7D7D7D", "> c #7C7C7C", ", c #787878", "' c #989898", ") c #ADADAD", "! c #B4B4B4", "~ c #B3B3B3", "{ c #B2B2B2", "] c #B1B1B1", "^ c #B0B0B0", "/ c #AFAFAF", "( c #AEAEAE", "_ c #ACACAC", ": c #A8A8A8", "< c #929292", "[ c #BEBEBE", "} c #D8D8D8", "| c #DBDBDB", "1 c #D1D1D1", "2 c #C7C7C7", "3 c #CECECE", "4 c #D5D5D5", "5 c #D7D7D7", "6 c #D6D6D6", "7 c #D4D4D4", "8 c #B7B7B7", "9 c #949494", "0 c #9A9A9A", "a c #D2D2D2", "b c #D0D0D0", "c c #72706F", "d c #716D6C", "e c #74706E", "f c #797675", "g c #C9C9C9", "h c #C6C6C6", "i c #A7A7A7", "j c #9B9B9B", "k c #C4C4C4", "l c #979797", "m c #7A6864", "n c #9B7A72", "o c #B28A80", "p c #B68B81", "q c #A7867E", "r c #8A756F", "s c #807C7B", "t c #BFBFBF", "u c #CACACA", "v c #C2C2C2", "w c #A0A0A0", "x c #CBCBCB", "y c #C5C5C5", "z c #959595", "A c #6D6C6C", "B c #896C65", "C c #D6ACA1", "D c #F1DBD7", "E c #FBEAE6", "F c #FDEBE7", "G c #F6E6E2", "H c #DFC3BC", "I c #A4837B", "J c #827D7B", "K c #9C9C9C", "L c #BCBCBC", "M c #C3C3C3", "N c #AAAAAA", "O c #6E6D6D", "P c #8E6C63", "Q c #EAAFA0", "R c #FFE6E0", "S c #FFE6E1", "T c #F3CDC3", "U c #AC847A", "V c #8C8786", "W c #A6A6A6", "X c #A3A3A3", "Y c #9F9F9F", "Z c #BDBDBD", "` c #746967", " . c #C88270", ".. c #FDBAA9", "+. c #FFC1B2", "@. c #FFB6A4", "#. c #FF9C84", "$. c #E27053", "%. c #907974", "&. c #999999", "*. c #9D9D9D", "=. c #A2A2A2", "-. c #B8B8B8", ";. c #896960", ">. c #E3836B", ",. c #FF9A81", "'. c #FF9B82", "). c #FF957A", "!. c #FF7B5A", "~. c #FF572D", "{. c #FF4516", "]. c #F93D0E", "^. c #9E6C5F", "/. c #969696", "(. c #939393", "_. c #919191", ":. c #8A8A8A", "<. c #A9A9A9", "[. c #917067", "}. c #E76E50", "|. c #FF704D", "1. c #FF714D", "2. c #FF714E", "3. c #FF6D49", "4. c #FF5930", "5. c #FF491C", "6. c #FF4618", "7. c #FB481B", "8. c #A47265", "9. c #848484", "0. c #A4A4A4", "a. c #838383", "b. c #887773", "c. c #DE6B4F", "d. c #FF653F", "e. c #FF6640", "f. c #FF6843", "g. c #FF6742", "h. c #FF6540", "i. c #F16846", "j. c #A0837D", "k. c #858585", "l. c #A5A5A5", "m. c #7F7D7C", "n. c #B88274", "o. c #F98569", "p. c #FF8668", "q. c #FF8769", "r. c #FC866A", "s. c #CF8572", "t. c #9D9592", "u. c #828282", "v. c #6D6D6D", "w. c #A1A1A1", "x. c #8B8786", "y. c #C8988C", "z. c #F4A692", "A. c #FDAB96", "B. c #FFAC96", "C. c #FFAB96", "D. c #F7A894", "E. c #D69D8F", "F. c #A49794", "G. c #818181", "H. c #6F6F6F", "I. c #9E9E9E", "J. c #918E8D", "K. c #B6A09A", "L. c #D4AFA6", "M. c #E5BAAF", "N. c #E7BBB0", "O. c #DCB4AA", "P. c #C1A6A0", "Q. c #A49D9B", "R. c #929190", "S. c #9A9796", "T. c #A49E9D", "U. c #A7A19F", "V. c #A49F9E", "W. c #A19F9F", "X. c #808080", "Y. c #717171", "Z. c #898989", "`. c #7F7F7F", " + c #767676", ".+ c #707070", "++ c #727272", "@+ c #777777", "#+ c #6A6967", "$+ c #807867", "%+ c #9F9379", "&+ c #BBA983", "*+ c #C0AD83", "=+ c #A99D83", "-+ c #8C8573", ";+ c #7E7C77", ">+ c #797979", ",+ c #6B6A67", "'+ c #95886D", ")+ c #DBCCAD", "!+ c #F8EED9", "~+ c #FFF9ED", "{+ c #FFFAEE", "]+ c #FDF5E5", "^+ c #E4D9C1", "/+ c #ACA088", "(+ c #858179", "_+ c #7A7A7A", ":+ c #6B6B6B", "<+ c #8B7F64", "[+ c #E4D0A5", "}+ c #FEF5E0", "|+ c #FFF7E4", "1+ c #FFF7E5", "2+ c #FFF6E3", "3+ c #EFE2C3", "4+ c #A89B80", "5+ c #8A8986", "6+ c #7B7B7B", "7+ c #757066", "8+ c #D1B479", "9+ c #FEE4AC", "0+ c #FFE6B0", "a+ c #FFE5B0", "b+ c #FFE5AE", "c+ c #FFE09E", "d+ c #FFD884", "e+ c #E9BB59", "f+ c #918773", "g+ c #8A7E63", "h+ c #E4C071", "i+ c #FFD885", "j+ c #FFD479", "k+ c #FFCB5D", "l+ c #FFBF38", "m+ c #FFB821", "n+ c #FAB219", "o+ c #9E8C63", "p+ c #928569", "q+ c #E8BB59", "r+ c #FFCA59", "s+ c #FFCB59", "t+ c #FFC953", "u+ c #FFC23E", "v+ c #FFBB2B", "w+ c #FFB926", "x+ c #FFB925", "y+ c #FCB828", "z+ c #A59167", "A+ c #868176", "B+ c #DAB159", "C+ c #FFC64A", "D+ c #FFC64C", "E+ c #FFC850", "F+ c #FFC851", "G+ c #EFBE56", "H+ c #9E9582", "I+ c #757575", "J+ c #7E7E7D", "K+ c #B3A17B", "L+ c #F6CE76", "M+ c #FFD476", "N+ c #FAD076", "O+ c #CAB17B", "P+ c #9D9B95", "Q+ c #737373", "R+ c #8C8A85", "S+ c #C7B58F", "T+ c #F9DB99", "U+ c #FFDF9B", "V+ c #FFE09B", "W+ c #FCDD9A", "X+ c #D9C393", "Y+ c #A49F94", "Z+ c #9E9E9D", "`+ c #747474", " @ c #8E8D8C", ".@ c #ABA69A", "+@ c #CFC3AA", "@@ c #E5D6B6", "#@ c #E7D8B7", "$@ c #D9CDB0", "%@ c #B9B2A2", "&@ c #9E9D9B", "*@ c #8F8F8E", "=@ c #979795", "-@ c #9F9E9B", ";@ c #A1A09D", ">@ c #A09F9E", ",@ c #6E6E6E", "'@ c #6C6C6C", ")@ c #6A6A6A", "!@ c #686868", "~@ c #696A68", "{@ c #6C7561", "]@ c #82986C", "^@ c #98B67B", "/@ c #9BBB7B", "(@ c #8FA677", "_@ c #77826B", ":@ c #777975", "<@ c #666666", "[@ c #606060", "}@ c #686B66", "|@ c #7F906D", "1@ c #C8DFB1", "2@ c #F3FAEC", "3@ c #FDFEFB", "4@ c #FDFEFC", "5@ c #FBFEF7", "6@ c #DDEBD0", "7@ c #98AA87", "8@ c #7E8279", "9@ c #878786", "0@ c #646464", "a@ c #778A64", "b@ c #C4DEA9", "c@ c #EFFAE4", "d@ c #DBECCA", "e@ c #93A780", "f@ c #868984", "g@ c #626262", "h@ c #636363", "i@ c #6C7266", "j@ c #99BC78", "k@ c #D0EEB1", "l@ c #D5F1B9", "m@ c #CCEEA9", "n@ c #B5E684", "o@ c #8AC74D", "p@ c #7E8971", "q@ c #728461", "r@ c #9ECE6F", "s@ c #B4E681", "t@ c #B3E67F", "u@ c #ABE373", "v@ c #94DB4D", "w@ c #78D21E", "x@ c #6CCE09", "y@ c #69CA08", "z@ c #78935D", "A@ c #798969", "B@ c #8EC953", "C@ c #96DC50", "D@ c #97DD51", "E@ c #94DB4C", "F@ c #87D736", "G@ c #7BD323", "H@ c #79D21F", "I@ c #79D022", "J@ c #809868", "K@ c #676767", "L@ c #7C8375", "M@ c #8CC156", "N@ c #91DA48", "O@ c #92DB4A", "P@ c #95DC4D", "Q@ c #94DC4D", "R@ c #93DB4B", "S@ c #93DB4A", "T@ c #90D04F", "U@ c #8C987F", "V@ c #656565", "W@ c #7C7D7C", "X@ c #91A47E", "Y@ c #ABDB7C", "Z@ c #B1E57C", "`@ c #B1E67C", " # c #AEE07C", ".# c #9BB780", "+# c #999C96", "@# c #5B5B5B", "## c #878985", "$# c #A4B791", "%# c #C0E09F", "&# c #C8EBA4", "*# c #C9EDA5", "=# c #C3E4A0", "-# c #ADC496", ";# c #9CA196", "># c #999998", ",# c #696969", "'# c #5E5E5E", ")# c #8E8F8C", "!# c #A3AA9B", "~# c #B9C7AC", "{# c #CADBB9", "]# c #CBDDBA", "^# c #C0CFB1", "/# c #ABB4A1", "(# c #9FA19C", "_# c #5F5F5F", ":# c #929291", "<# c #989897", "[# c #9B9B9A", "}# c #5A5A5A", "|# c #585858", "1# c #5C5C5C", "2# c #535353", " ", " ", " . + @ # $ + $ + + % & * = - ; ; > , ", " ' ) ! ! ! ! ! ! ! ~ { ] ^ / / ( ) _ : < ", " & [ } | | | | | } 1 2 2 3 4 5 5 6 6 6 7 8 9 ", " 0 a } } } 5 b / & c d e f # / g a a a 1 h i ", " j b 1 a 1 k l c m n o p q r s j t u u u v w ", " 0 u x x y z A B C D E F G H I J K [ v v L z ", " K M k k N O P Q R S S R R R T U V W ! / X . ", " Y [ t Z # ` ...+.+.+.+.+.@.#.$.%.&.*.l < . ", " =.-.-.{ - ;.>.,.'.'.'.).!.~.{.].^././.(._.:.&. ", " w ^ / <.; [.}.|.1.2.3.4.5.6.6.7.8.&./.< + & 9. ", " + Y <.: 0.a.b.c.d.e.f.g.e.h.h.e.i.j.K z _.$ k., ", " 9 w l.0.=.$ m.n.o.p.q.q.q.q.q.r.s.t.*.< $ * u.v. ", " u.0 X =.w.j & x.y.z.A.B.B.C.D.E.F.w z $ @ # G.H. ", " . &.=.w.w I./.:.J.K.L.M.N.O.P.Q.Y ' + @ * % G.H. ", " % &.w w Y *.j /.+ R.S.T.U.V.W.I.l + @ * # :.X.Y. ", " a.l Y I.*.K 0 &.' /.z /.' ' z _.$ @ # % :.Z.X.9. ", " u./.I.*.K 0 &.' /._.% . . :.* @ @ * % :.Z.. `.% ", " X.z *.K j &.' z k. +Y..+++, X.& # % :.Z.& = `.# ", " X.9 K 0 &.l $ @+#+$+%+&+*+=+-+;+k.:.. & = k.; & ", " X.(.0 &.' (.>+,+'+)+!+~+{+]+^+/+(+:.Z.= k.9.> _+ ", " X.< &.' l Z.:+<+[+}+|+1+1+1+2+3+4+5+* k.9.u.6+ + ", " 6+_.' /.9 >+7+8+9+0+0+0+a+b+c+d+e+f+_.& u.G._+@+ ", " `.+ /.z _. +g+h+d+i+i+d+j+k+l+m+n+o+(.. G.X.>+@+ ", " - $ z 9 + @+p+q+r+r+s+t+u+v+w+x+y+z+/.. X.`., + ", " a.* 9 < _.- A+B+C+D+E+F+F+F+F+F+G+H+' k.`.; +I+ ", " 9.# < _.+ = J+K+L+M+M+M+M+M+M+N+O+P+9 X.; > Q+++ ", " _+% _.+ $ % G.R+S+T+U+V+V+V+W+X+Y+Z+& ; > 6+Y.`+ ", " >+:.+ @ * # Z.= @.@+@@@#@$@%@&@*.:.; > 6+>+.+k. ", " , . @ * # % :.. Z.*@=@-@;@>@K /.Z.- > 6+_+, ,@9. ", " Q+= * # % :.Z.. & & :.* @ # . u.; 6+6+_+, @+'@u. ", " 6+& # :.Z.Z.& = 9.X.; 6+> ; ; ; > _+>+, @+I+)@'@ ", " % Z.:.Z.. & = u., .+:+'@,@Q+_+- > >+, @+ +Q+!@ ", " Z.Z.. & = G.Y.~@{@]@^@/@(@_@:@u.> @+ +`+++<@[@ ", " k.. & k.u.Y.}@|@1@2@3@4@5@6@7@8@9@>+`+Q+.+0@,@ ", " 9.& = k.6+)@a@b@c@c@c@c@c@c@d@e@f@9.`+++,@g@h@ ", " G.k.k.a.Q+i@j@k@l@l@l@l@l@m@n@o@p@* @+.+'@0@++ ", " - 9.a.X.Y.q@r@s@s@s@t@u@v@w@x@y@z@_._+,@)@h@> ", " > a.u.`.`+A@B@C@C@D@E@F@G@H@H@I@J@(.>+v.K@0@ ", " _+G.G.`., L@M@N@O@P@Q@R@S@S@S@T@U@9 I+:+V@[@ ", " _+X.`.- 6+W@X@Y@Z@`@`@Z@Z@Z@ #.#+#% v.)@h@@# ", " `.`.- ; 6+; ##$#%#&#*#*#*#=#-#;#>#@+)@,#[@'# ", " `.- ; > _+6+u.)#!#~#{#]#^#/#(#K - :+,#K@_#:+ ", " > 6+_+>+@+, X.:.:#<#[#0 ' * +:+!@K@V@}#,@ ", " a._+>+, @+ +`+`+, ; G.u.X., ,@,#!@K@0@'#|#`+ ", " @+.+,@v.'@)@,#K@K@V@h@g@[@_#'#1#@#|#2#0@ ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/Set.xpm0000644000175000001440000000541311506076310014745 00000000000000/* XPM */ static const char *xpmSet[] = { /* columns rows colors chars-per-pixel */ "16 16 119 2", " c #00510000", ". c #00520000", "X c #00530000", "o c #00540000", "O c #00550000", "+ c #00560000", "@ c #00570000", "# c #00580000", "$ c #00590000", "% c #005A0000", "& c #005B0000", "* c #015B0100", "= c #005C0000", "- c #005D0000", "; c #005F0000", ": c #00600000", "> c #00610000", ", c #00620000", "< c #00630000", "1 c DarkGreen", "2 c #006E0000", "3 c #08660800", "4 c #0B6F0B00", "5 c #00740000", "6 c #06720600", "7 c #017B0100", "8 c #007D0000", "9 c #0C770C00", "0 c #0A790A00", "q c #097E0900", "w c #127F1200", "e c #018C0100", "r c #09850900", "t c #0C8B0C00", "y c #0B950B00", "u c #10831000", "i c #14821400", "p c #188D1800", "a c #1C8F1C00", "s c #07A30700", "d c #00AC0000", "f c #00AD0000", "g c #00AE0000", "h c #00B10000", "j c #00B70000", "k c #00B90000", "l c #00BA0000", "z c #00BE0000", "x c #00BF0000", "c c #13A11300", "v c #24932400", "b c #23A12300", "n c #22A92200", "m c #2BA42B00", "M c #2FA12F00", "N c #2EA42E00", "B c #22B52200", "V c #00C00000", "C c #00C10000", "Z c #00C40000", "A c #00C70000", "S c #00C80000", "D c #00C90000", "F c #00CB0000", "G c #00CE0000", "H c #04CB0400", "J c #0BC70B00", "K c #0ACC0A00", "L c #0ACD0A00", "P c #09D10900", "I c #0DD30D00", "U c #0ED40E00", "Y c #13C11300", "T c #1FCE1F00", "R c #2DC92D00", "E c #2EC92E00", "W c #24DC2400", "Q c #30CD3000", "! c #38CC3800", "~ c #3ACC3A00", "^ c #36D83600", "/ c #43D34300", "( c #42D74200", ") c #47D44700", "_ c #48D54800", "` c #54D95400", "' c #5DD65D00", "] c #6FC76F00", "[ c #6CD06C00", "{ c #75C27500", "} c #77C37700", "| c #77C47700", " . c #79C47900", ".. c #7FE17F00", "X. c #8FD98F00", "o. c #92DB9200", "O. c #9EDF9E00", "+. c #82E68200", "@. c #8BE48B00", "#. c #8CE58C00", "$. c #8EE58E00", "%. c #8EE68E00", "&. c #96E49600", "*. c #AAE3AA00", "=. c #BFEFBF00", "-. c #C2F0C200", ";. c #C3F0C300", ":. c #C0FAC000", ">. c #CBF7CB00", ",. c #CFF9CF00", "<. c #D4F7D400", "1. c #D2FAD200", "2. c #D3FAD300", "3. c #F0FEF000", "4. c #F2FCF200", "5. c #F9FEF900", "6. c #FCFEFC00", "7. c #FEFEFE00", "8. c None", /* pixels */ "8.8.8.8.8.8.$ 3 $ 8.8.8.8.8.8.8.", "8.8.8.8.8.o a m = 8.8.8.8.8.8.8.", "8.8.8.8.X u ^ n $ 8.8.8.8.8.8.8.", "8.8.8.o q T W c o 8.8.8.8.8.8.8.", "8.8.o 7 J U I s > > > > > > > $ ", "8.o 5 x G S G x d d d d d d h 8 ", "o 2 j S V V V A S S H L L L P e ", "1 d V k k k k k Y Q / ) ) _ ( t ", "> B ` ~ R R ! ' ..%.%.@.@.%.+.p ", "o 4 [ >.;.=.;.<.1.,.,.,.,.1.=.v ", "8.X 6 o.7.7.3.o.{ | | | | .] i ", "8.8.X 9 &.7.3.v $ = = = = = > 1 ", "8.8.8.X 0 *.5.N o 8.8.8.8.8.8.8.", "8.8.8.8.X w &.N o 8.8.8.8.8.8.8.", "8.8.8.8.8.X r y = 8.8.8.8.8.8.8.", "8.8.8.8.8.8.$ 1 = 8.8.8.8.8.8.8." }; unixodbc-gui-qt-2.3.0/odbcinstQ4/CHelp.cpp0000644000175000001440000000510511506076310015161 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CHelp.h" #include "Info16.xpm" #include "InfoArrow16.xpm" CHelp::CHelp( const QString &stringKey, const QIcon &icon, const QString &stringText, QWidget *pwidgetParent ) : QWidget( pwidgetParent ) { this->stringKey = stringKey; bVisibleView = true; QHBoxLayout *pLayout = new QHBoxLayout( this ); // toggle button... { QVBoxLayout *playoutV = new QVBoxLayout; pToolButton = new QToolButton; pToolButton->setIcon( QIcon( xpmInfoArrow16 ) ); pToolButton->setWhatsThis( tr( "Use this to toggle the help text in and out of view. The state is saved at exit and used the next time the program is run." ) ); pToolButton->setToolTip( tr( "toggle help text" ) ); playoutV->addWidget( pToolButton ); playoutV->addStretch( 10 ); connect( pToolButton, SIGNAL(clicked()), this, SLOT(slotToggleView()) ); pLayout->addLayout( playoutV ); } // setup frame... { pFrame = new QFrame; pFrame->setFrameShape( QFrame::StyledPanel ); // setup icon and text... { QHBoxLayout *playoutH = new QHBoxLayout( pFrame ); plabelIcon = new QLabel; plabelIcon->setPixmap( icon.pixmap( 64, 64 ) ); plabelText = new QLabel( stringText ); plabelText->setWordWrap( true ); playoutH->addWidget( plabelIcon ); playoutH->addWidget( plabelText, 10 ); } pLayout->addWidget( pFrame, 10 ); } loadState(); } CHelp::~CHelp() { saveState(); } void CHelp::loadState() { QSettings settings; bool bVisible = settings.value( QString( "CHelp/%1/visible" ).arg( stringKey ), true ).toBool(); if ( bVisible != bVisibleView ) slotToggleView(); } void CHelp::saveState() { QSettings settings; settings.setValue( QString( "CHelp/%1/visible" ).arg( stringKey ), bVisibleView ); } void CHelp::slotToggleView() { if ( bVisibleView ) { pFrame->setFrameShape( QFrame::NoFrame ); plabelIcon->hide(); plabelText->hide(); pToolButton->setIcon( QIcon( xpmInfo16 ) ); bVisibleView = false; } else { pFrame->setFrameShape( QFrame::StyledPanel ); plabelIcon->show(); plabelText->show(); pToolButton->setIcon( QIcon( xpmInfoArrow16 ) ); bVisibleView = true; } } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCAdvanced.cpp0000644000175000001440000000457011506076451016166 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CAdvanced.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CAdvanced.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CAdvanced.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CAdvanced[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: signature, parameters, type, tag, flags 11, 10, 10, 10, 0x05, 0 // eod }; static const char qt_meta_stringdata_CAdvanced[] = { "CAdvanced\0\0signalChanged()\0" }; const QMetaObject CAdvanced::staticMetaObject = { { &QTabWidget::staticMetaObject, qt_meta_stringdata_CAdvanced, qt_meta_data_CAdvanced, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CAdvanced::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CAdvanced::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CAdvanced::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CAdvanced)) return static_cast(const_cast< CAdvanced*>(this)); return QTabWidget::qt_metacast(_clname); } int CAdvanced::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QTabWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: signalChanged(); break; default: ; } _id -= 1; } return _id; } // SIGNAL 0 void CAdvanced::signalChanged() { QMetaObject::activate(this, &staticMetaObject, 0, 0); } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CThreading.h0000644000175000001440000000107311506076310015643 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CTHREADING_H #define CTHREADING_H #include "CODBCInst.h" class CThreading : public QWidget { Q_OBJECT public: CThreading( QWidget* pwidgetParent = NULL ); virtual ~CThreading(); QString windowHelp(); bool loadData(); bool saveData(); public slots: bool slotApply(); bool slotDefault(); protected: QSpinBox *pspinboxLevel; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCFileSelector.cpp0000644000175000001440000000511311506076451017033 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CFileSelector.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CFileSelector.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CFileSelector.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CFileSelector[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: signature, parameters, type, tag, flags 15, 14, 14, 14, 0x05, // slots: signature, parameters, type, tag, flags 31, 14, 14, 14, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CFileSelector[] = { "CFileSelector\0\0signalChanged()\0" "slotInvokeDialog()\0" }; const QMetaObject CFileSelector::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CFileSelector, qt_meta_data_CFileSelector, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CFileSelector::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CFileSelector::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CFileSelector::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CFileSelector)) return static_cast(const_cast< CFileSelector*>(this)); return QWidget::qt_metacast(_clname); } int CFileSelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: signalChanged(); break; case 1: slotInvokeDialog(); break; default: ; } _id -= 2; } return _id; } // SIGNAL 0 void CFileSelector::signalChanged() { QMetaObject::activate(this, &staticMetaObject, 0, 0); } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitorProcesses.h0000644000175000001440000000201111506076310017245 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CMONITORPROCESSES_H #define CMONITORPROCESSES_H #include "CODBCInst.h" #include #include /*! * \class CMonitorProcesses * \brief Displays detailed statistics on the unixODBC environment. * * This widget displays a list of; Environments, Connections, Statements, * Descriptors and their owning Process ID. The details are updated frequently * as long as the widget is visible. * * \sa CMonitor */ class CMonitorProcesses : public QTableWidget { Q_OBJECT public: CMonitorProcesses( QWidget* pwidgetParent = NULL ); virtual ~CMonitorProcesses(); protected slots: void slotLoad(); void clearRow( int nRow ); protected: bool bEnabled; int nRowsWithValues; QTimer * pTimer; void * hStats; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CManageDataSourceNames.cpp0000644000175000001440000000310711506076310020420 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CManageDataSourceNames.h" #include "CDataSourceNames.h" #include "CDataSourceNamesFile.h" #include "CPage.h" #include "DataSourceName48.xpm" CManageDataSourceNames::CManageDataSourceNames( QWidget *pwidgetParent ) : QTabWidget( pwidgetParent ) { pDataSourceNamesUser = new CDataSourceNames( this, ODBC_USER_DSN ); pDataSourceNamesSystem = new CDataSourceNames( this, ODBC_SYSTEM_DSN ); pDataSourceNamesFile = new CDataSourceNamesFile( this ); CPage *ppageUser = new CPage( this, QString::null, pDataSourceNamesUser, pDataSourceNamesUser->windowIcon(), pDataSourceNamesUser->windowHelp() ); CPage *ppageSystem = new CPage( this, QString::null, pDataSourceNamesSystem, pDataSourceNamesSystem->windowIcon(), pDataSourceNamesSystem->windowHelp() ); CPage *ppageFile = new CPage( this, QString::null, pDataSourceNamesFile, pDataSourceNamesFile->windowIcon(), pDataSourceNamesFile->windowHelp() ); addTab( ppageUser, tr( "User" ) ); addTab( ppageSystem, tr( "System" ) ); addTab( ppageFile, tr( "File" ) ); setWindowIcon( QPixmap( xpmDataSourceName48 ) ); setWindowTitle( tr( "Data Source Names" ) ); } CManageDataSourceNames::~CManageDataSourceNames() { } void CManageDataSourceNames::slotLoad() { pDataSourceNamesUser->slotLoad(); pDataSourceNamesSystem->slotLoad(); pDataSourceNamesFile->slotLoad(); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizard.cpp0000644000175000001440000000603211506076310016076 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CDSNWizard.h" #include "CDSNWizardEntre.h" #include "CDSNWizardType.h" #include "CDSNWizardDriver.h" #include "CDSNWizardProperties.h" #include "CDSNWizardFini.h" #include "ODBCManageDataSources64.xpm" #include "WizardCreateDataSourceName.xpm" CDSNWizard::CDSNWizard( CDSNWizardData *pWizardData, QWidget* pwidgetParent ) : QWizard( pwidgetParent ) { CDSNWizardEntre * pWizardEntre = new CDSNWizardEntre( pWizardData ); CDSNWizardType * pWizardType = new CDSNWizardType( pWizardData ); CDSNWizardDriver * pWizardDriver = new CDSNWizardDriver( pWizardData ); CDSNWizardProperties * pWizardProperties = new CDSNWizardProperties( pWizardData ); CDSNWizardFini * pWizardFini = new CDSNWizardFini( pWizardData ); setPage( PageEntre, pWizardEntre ); setPage( PageType, pWizardType ); setPage( PageDriver, pWizardDriver ); setPage( PageProperties,pWizardProperties ); setPage( PageFini, pWizardFini ); setStartId( PageEntre ); setOption( HaveHelpButton, true ); connect( this, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); setWindowTitle( tr( "Create Data Source Name Wizard" ) ); setWindowIcon( QPixmap( xpmODBCManageDataSources64 ) ); setPixmap( QWizard::WatermarkPixmap, QPixmap( xpmWizardCreateDataSourceName ) ); } CDSNWizard::~CDSNWizard() { } void CDSNWizard::slotHelp() { QString stringMessage; switch ( currentId() ) { case PageEntre: stringMessage = tr( "This page introduces the wizard - stating its purpose." ); break; case PageType: stringMessage = tr( "Choose from one of the 3 types of Data Source Names (DSN's).\n\nUser and System DSN's are stored in hidden files.\n\nEach File DSN is stored in its own file - which makes it easy to share/deploy on a network.\n\nElevated privileges are usually required to create a System or File DSN.\n\nThose unsure which to choose should choose User." ); break; case PageDriver: stringMessage = tr( "Choose a driver. Each ODBC data source has a driver. ODBC Drivers must be registered when/after they are installed on your system. Contact your SysAdmin or data source vendor if your driver is not shown here." ); break; case PageProperties: stringMessage = tr( "Connect properties. Defaults are usually fine but please provide a Name. Contact driver vendor for details about these properties." ); break; case PageFini: stringMessage = tr( "This page simply states that we have all the required information." ); break; default: stringMessage = tr( "Sorry; no help implemented for this page." ); } QMessageBox::information( this, tr("Create Data Source Name Wizard Help"), stringMessage ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/DataSourceName48.xpm0000644000175000001440000004606511506076310017231 00000000000000/* XPM */ static const char * xpmDataSourceName48[] = { "48 48 915 2", " c None", ". c #000000", "+ c #010101", "@ c #848484", "# c #CECECE", "$ c #3F3F3F", "% c #353535", "& c #333333", "* c #868686", "= c #B8B8B8", "- c #FAFAFA", "; c #F8F8F8", "> c #C2C2C2", ", c #262626", "' c #0E0605", ") c #A87C7A", "! c #C98481", "~ c #E19B99", "{ c #CB7672", "] c #B87572", "^ c #664644", "/ c #020000", "( c #656565", "_ c #D8D8D8", ": c #F1F1F1", "< c #E4E4E4", "[ c #D2D2D2", "} c #B3B3B3", "| c #171717", "1 c #483432", "2 c #DF9D98", "3 c #D26460", "4 c #B90D06", "5 c #BE211B", "6 c #C3312B", "7 c #C1241E", "8 c #D66561", "9 c #DE8380", "0 c #CA5A56", "a c #BC5956", "b c #310302", "c c #666666", "d c #DEDEDE", "e c #EEEEEE", "f c #E1E1E1", "g c #D7D7D7", "h c #6E6E6E", "i c #210F0D", "j c #E6867F", "k c #C11810", "l c #BC0E07", "m c #984643", "n c #A16A68", "o c #A46D6B", "p c #A8706E", "q c #A86866", "r c #9F4542", "s c #C41F18", "t c #CA3D37", "u c #D87672", "v c #5F4644", "w c #3E3E3E", "x c #E3E3E3", "y c #ECECEC", "z c #E0E0E0", "A c #D6D6D6", "B c #040404", "C c #050000", "D c #C7564E", "E c #E77771", "F c #BE0D06", "G c #C32E28", "H c #9D6866", "I c #D38D8B", "J c #D88F8D", "K c #DC9492", "L c #DF9795", "M c #E39A98", "N c #AF7372", "O c #A34744", "P c #CF433F", "Q c #BC615D", "R c #63403F", "S c #E2E2E2", "T c #F6F6F6", "U c #EAEAEA", "V c #DFDFDF", "W c #D5D5D5", "X c #B2B2B2", "Y c #969696", "Z c #7B3735", "` c #E57470", " . c #DE443A", ".. c #C20C07", "+. c #C74742", "@. c #CE8987", "#. c #D18D8A", "$. c #D5908E", "%. c #DA9491", "&. c #DE9795", "*. c #E09A99", "=. c #E39B9A", "-. c #B17776", ";. c #A06261", ">. c #AF7B7A", ",. c #F0E2E2", "'. c #F4F4F4", "). c #E7E7E7", "!. c #DDDDDD", "~. c #D4D4D4", "{. c #8E8E8E", "]. c #0A0A0A", "^. c #403433", "/. c #D6605D", "(. c #DE3930", "_. c #E35D52", ":. c #C70C07", "<. c #CA4743", "[. c #CC8A88", "}. c #D08E8A", "|. c #D4918F", "1. c #D89593", "2. c #DB9895", "3. c #DF9B98", "4. c #E29B9A", "5. c #A06C6B", "6. c #A18483", "7. c #F1ECEC", "8. c #F2F2F2", "9. c #E6E6E6", "0. c #DCDCDC", "a. c #999999", "b. c #676767", "c. c #B66866", "d. c #DB504D", "e. c #DF4239", "f. c #EB7469", "g. c #CD0D08", "h. c #CC3733", "i. c #CC8B89", "j. c #CF8F8C", "k. c #D49390", "l. c #D79693", "m. c #DB9896", "n. c #DD9B98", "o. c #936463", "p. c #967372", "q. c #EEEAEA", "r. c #EFEFEF", "s. c #E5E5E5", "t. c #B6B6B6", "u. c #848080", "v. c #302322", "w. c #090909", "x. c #383535", "y. c #D8605D", "z. c #D73A37", "A. c #DF453D", "B. c #F3958B", "C. c #D4150E", "D. c #D41A16", "E. c #CC8C89", "F. c #CF8F8D", "G. c #D29390", "H. c #D59794", "I. c #D89A98", "J. c #B57D7C", "K. c #947170", "L. c #EFEDED", "M. c #868383", "N. c #722928", "O. c #A03834", "P. c #340302", "Q. c #080808", "R. c #A4A4A4", "S. c #BEBEBE", "T. c #292929", "U. c #7F5D5D", "V. c #D9423F", "W. c #D01714", "X. c #DB3A36", "Y. c #F5A499", "Z. c #E2423C", "`. c #DC0F0A", " + c #D17572", ".+ c #D0928F", "++ c #D29693", "@+ c #D89A97", "#+ c #CC8F8D", "$+ c #9D8280", "%+ c #EDEDED", "&+ c #BABABA", "*+ c #878383", "=+ c #835F5F", "-+ c #B26967", ";+ c #DB6C69", ">+ c #D77673", ",+ c #2F0301", "'+ c #0D0D0D", ")+ c #B0B0B0", "!+ c #FBFBFB", "~+ c #AFAFAF", "{+ c #131313", "]+ c #4A4A4A", "^+ c #B96260", "/+ c #D62E2B", "(+ c #D40F09", "_+ c #DB100C", ":+ c #F3A299", "<+ c #F0847C", "[+ c #E20F0C", "}+ c #DC4642", "|+ c #D09692", "1+ c #D49996", "2+ c #D69C99", "3+ c #D89B98", "4+ c #D89C99", "5+ c #996B69", "6+ c #CCC1C1", "7+ c #858181", "8+ c #6E4E4E", "9+ c #C48483", "0+ c #EBA0A0", "a+ c #E78988", "b+ c #D14642", "c+ c #D47673", "d+ c #230201", "e+ c #121212", "f+ c #BDBDBD", "g+ c #C9C9C9", "h+ c #5A5A5A", "i+ c #393939", "j+ c #D85755", "k+ c #D7322F", "l+ c #D70F0A", "m+ c #DF110C", "n+ c #F5ACA5", "o+ c #F7BBB5", "p+ c #E92B27", "q+ c #E71411", "r+ c #D58E89", "s+ c #D59B99", "t+ c #D79D9B", "u+ c #D79D9A", "v+ c #D99F9C", "w+ c #C68F8D", "x+ c #9B706F", "y+ c #958887", "z+ c #6D6565", "A+ c #7B5656", "B+ c #C08382", "C+ c #E49E9C", "D+ c #E99F9D", "E+ c #EBA1A1", "F+ c #E58381", "G+ c #C3130D", "H+ c #BE4C47", "I+ c #130101", "J+ c #F9F9F9", "K+ c #EBEBEB", "L+ c #525252", "M+ c #754C4B", "N+ c #D63632", "O+ c #D72622", "P+ c #DF110B", "Q+ c #E7332E", "R+ c #F8C2BC", "S+ c #F7C6C3", "T+ c #F38B86", "U+ c #ED110E", "V+ c #E55451", "W+ c #D69F9C", "X+ c #D8A09D", "Y+ c #D9A09D", "Z+ c #BF8A87", "`+ c #956665", " @ c #704B4B", ".@ c #956564", "+@ c #B9817F", "@@ c #D89493", "#@ c #E59D9C", "$@ c #ECA1A1", "%@ c #E17471", "&@ c #CB3E38", "*@ c #702926", "=@ c #1C1918", "-@ c #E9E9E9", ";@ c #A1A1A1", ">@ c #989898", ",@ c #5E5E5E", "'@ c #8F4D4C", ")@ c #D6312D", "!@ c #D9100A", "~@ c #E3120D", "{@ c #F0746D", "]@ c #F9C7C2", "^@ c #F8CCC8", "/@ c #F8CECC", "(@ c #EB2B28", "_@ c #F11613", ":@ c #DC8D8A", "<@ c #D7A29E", "[@ c #D9A3A0", "}@ c #DAA2A0", "|@ c #DAA29F", "1@ c #BC8885", "2@ c #9D6F6E", "3@ c #966967", "4@ c #A77573", "5@ c #B17A79", "6@ c #E39C9B", "7@ c #E59E9D", "8@ c #E99F9E", "9@ c #ECA2A1", "0@ c #883533", "a@ c #852723", "b@ c #E7DCDB", "c@ c #B7B7B7", "d@ c #505050", "e@ c #C85352", "f@ c #DA3C39", "g@ c #DC100A", "h@ c #E5120E", "i@ c #F6A7A0", "j@ c #FBD9D6", "k@ c #F9D0CD", "l@ c #F9D5D2", "m@ c #F8A3A1", "n@ c #F41311", "o@ c #EF3E3B", "p@ c #D8A49F", "q@ c #D9A4A0", "r@ c #DAA3A0", "s@ c #DAA09D", "t@ c #CE9592", "u@ c #AD7B7A", "v@ c #BE8684", "w@ c #C18886", "x@ c #D69492", "y@ c #E39D9C", "z@ c #E69F9E", "A@ c #AE8383", "B@ c #EDE4E4", "C@ c #F3F3F3", "D@ c #939393", "E@ c #C84744", "F@ c #D62825", "G@ c #DE100C", "H@ c #E92722", "I@ c #FACDC6", "J@ c #FDE2DF", "K@ c #F9D3CE", "L@ c #F9D3CF", "M@ c #F9D2CE", "N@ c #F75350", "O@ c #F81312", "P@ c #E7716F", "Q@ c #D8A39F", "R@ c #D9A4A1", "S@ c #DBA5A1", "T@ c #DAA09E", "U@ c #DA9F9C", "V@ c #CE9492", "W@ c #AD7A79", "X@ c #CA8E8D", "Y@ c #D69593", "Z@ c #8C5F5E", "`@ c #A98584", " # c #F0EDED", ".# c #F0F0F0", "+# c #DADADA", "@# c #B5B5B5", "## c #888888", "$# c #282828", "%# c #CE4744", "&# c #D6201D", "*# c #E3120E", "=# c #EF5D56", "-# c #FACCC6", ";# c #FDE1DE", "># c #FAD4D0", ",# c #FAD0CB", "'# c #FACAC6", ")# c #F9BBB5", "!# c #F91F1D", "~# c #F91B1B", "{# c #DF908D", "]# c #D9A5A1", "^# c #D99D9A", "/# c #B68180", "(# c #C88D8C", "_# c #865A5A", ":# c #A28484", "<# c #8D8B8B", "[# c #161616", "}# c #D25754", "|# c #DB2D29", "1# c #F4857C", "2# c #F9BEB6", "3# c #FAC8C0", "4# c #F76B63", "5# c #F73330", "6# c #FAC0B9", "7# c #F98A82", "8# c #FC1313", "9# c #F73130", "0# c #DA9F9B", "a# c #D8A5A0", "b# c #DAA19E", "c# c #D99E9B", "d# c #DA9E9B", "e# c #7A5452", "f# c #A18282", "g# c #DBDBDB", "h# c #978989", "i# c #5F1614", "j# c #1A0201", "k# c #CE514F", "l# c #D8100A", "m# c #E4130E", "n# c #F8A096", "o# c #F9BAB1", "p# c #FAC2B9", "q# c #F7746D", "r# c #F51714", "s# c #F71513", "t# c #F95852", "u# c #FAC0B7", "v# c #FB504C", "w# c #FB1313", "x# c #F04B49", "y# c #E2AFAC", "z# c #D8A29F", "A# c #D8A19E", "B# c #D89E9C", "C# c #AF7B79", "D# c #968483", "E# c #B9B9B9", "F# c #9D9595", "G# c #8C5755", "H# c #9C0C05", "I# c #700804", "J# c #D06360", "K# c #DA120B", "L# c #E51C16", "M# c #F9AD9F", "N# c #F9B7AC", "O# c #F99E94", "P# c #F41713", "Q# c #F51713", "R# c #F81513", "S# c #F9746D", "T# c #FAAFA4", "U# c #F92A28", "V# c #F81313", "W# c #E75E5B", "X# c #E1AEAC", "Y# c #D6A09D", "Z# c #D8A29E", "`# c #D79F9C", " $ c #D79C99", ".$ c #85625F", "+$ c #B7B5B4", "@$ c #BBBBBB", "#$ c #A09595", "$$ c #865D5D", "%$ c #C38584", "&$ c #C43F3A", "*$ c #AB0D06", "=$ c #170201", "-$ c #CF6360", ";$ c #E63229", ">$ c #F7A7A4", ",$ c #F9B0A4", "'$ c #F23C35", ")$ c #F31511", "!$ c #F71512", "~$ c #F81615", "{$ c #F98278", "]$ c #F99287", "^$ c #F61815", "/$ c #F31210", "($ c #E16863", "_$ c #DEAAA7", ":$ c #D49D9A", "<$ c #D49D99", "[$ c #D49B98", "}$ c #D69B98", "|$ c #805D5B", "1$ c #A99D9C", "2$ c #968887", "3$ c #8A6060", "4$ c #A16C6B", "5$ c #D79392", "6$ c #DC817E", "7$ c #AE0E07", "8$ c #5A0703", "9$ c #C8625F", "0$ c #D9120B", "a$ c #E84137", "b$ c #F68779", "c$ c #EF1611", "d$ c #F11511", "e$ c #F31713", "f$ c #F31612", "g$ c #F51613", "h$ c #F51411", "i$ c #F51715", "j$ c #F5776B", "k$ c #F5665A", "l$ c #F2130F", "m$ c #F01511", "n$ c #DD6A67", "o$ c #DCA6A3", "p$ c #D19996", "q$ c #D19894", "r$ c #D39895", "s$ c #D59996", "t$ c #D79996", "u$ c #AB7674", "v$ c #815858", "w$ c #7D5453", "x$ c #B87D7B", "y$ c #B87D7C", "z$ c #CD8988", "A$ c #B82B25", "B$ c #930903", "C$ c #010000", "D$ c #BD615F", "E$ c #DF3F3A", "F$ c #E9483C", "G$ c #FA9D8C", "H$ c #EF453C", "I$ c #EE1610", "J$ c #F31613", "K$ c #F21411", "L$ c #F11A14", "M$ c #F26356", "N$ c #F14B40", "O$ c #EC120F", "P$ c #EA120F", "Q$ c #D9615D", "R$ c #CC938F", "S$ c #CF9491", "T$ c #D09592", "U$ c #D29592", "V$ c #D39592", "W$ c #D59693", "X$ c #C38886", "Y$ c #A3706F", "Z$ c #BC807E", "`$ c #AD7573", " % c #B77B79", ".% c #BD524F", "+% c #A00903", "@% c #1D0000", "#% c #973936", "$% c #E46561", "%% c #E94539", "&% c #F78A7B", "*% c #E41410", "=% c #EC1510", "-% c #EF1411", ";% c #F11411", ">% c #F11310", ",% c #F21511", "'% c #EF1410", ")% c #E7130E", "!% c #E94335", "~% c #E72B23", "{% c #E6100C", "]% c #E3100C", "^% c #DF827F", "/% c #D69A97", "(% c #C98E89", "_% c #CB8E8B", ":% c #CD908D", "<% c #CF928F", "[% c #D1928F", "}% c #D3918F", "|% c #C18381", "1% c #A26D6B", "2% c #BD7B7A", "3% c #B66765", "4% c #B83631", "5% c #400300", "6% c #5B0503", "7% c #E36561", "8% c #E73F33", "9% c #E9514B", "0% c #E0120C", "a% c #EA1510", "b% c #ED1611", "c% c #EE1510", "d% c #EE1310", "e% c #ED120F", "f% c #EB110E", "g% c #E9100C", "h% c #E2110A", "i% c #DF281D", "j% c #DF1F17", "k% c #DA0F08", "l% c #DA645F", "m% c #D2908D", "n% c #C67975", "o% c #C88986", "p% c #CA8B88", "q% c #CE8C89", "r% c #D08C88", "s% c #D08B88", "t% c #BF7D7B", "u% c #AF726F", "v% c #B6726E", "w% c #D0716E", "x% c #560501", "y% c #2C0301", "z% c #E16561", "A% c #DE3D36", "B% c #DC3D38", "C% c #E4150D", "D% c #E6150E", "E% c #EB140F", "F% c #EA140F", "G% c #E9130E", "H% c #E7120E", "I% c #E4110C", "J% c #DC0F08", "K% c #DA1B11", "L% c #D21009", "M% c #D20E08", "N% c #D10E08", "O% c #D5504C", "P% c #CF807B", "Q% c #CE8F8C", "R% c #C38380", "S% c #C68380", "T% c #C78381", "U% c #C7827F", "V% c #CA8380", "W% c #CA827F", "X% c #CE817F", "Y% c #B88584", "Z% c #C36865", "`% c #5D0601", " & c #030000", ".& c #D66560", "+& c #DD4A45", "@& c #DA3632", "#& c #DC110A", "$& c #E3150D", "%& c #E5170D", "&& c #E7140D", "*& c #E7140F", "=& c #E6130E", "-& c #E6120E", ";& c #E4120E", ">& c #E2110C", ",& c #DF0F0C", "'& c #DD0F0B", ")& c #DB0F0A", "!& c #D30D08", "~& c #CF0D07", "{& c #C90C07", "]& c #D0413D", "^& c #CB5E5A", "/& c #D08482", "(& c #BC7B77", "_& c #BD7875", ":& c #BE7977", "<& c #C07976", "[& c #C47A77", "}& c #C38381", "|& c #D59A97", "1& c #A10903", "2& c #9B3A36", "3& c #E06660", "4& c #D7312D", "5& c #DC120A", "6& c #DF130A", "7& c #E1150D", "8& c #E2150D", "9& c #E0140D", "0& c #E0110B", "a& c #DE110B", "b& c #DC100B", "c& c #DA0F0A", "d& c #D80E09", "e& c #D50D08", "f& c #CF0E08", "g& c #CB0C07", "h& c #C80C07", "i& c #C20A06", "j& c #C10A05", "k& c #BC0A04", "l& c #C4332E", "m& c #C1342F", "n& c #CD6864", "o& c #CE8A87", "p& c #B56E6B", "q& c #CD9B99", "r& c #D09A99", "s& c #DC9494", "t& c #CA625D", "u& c #970803", "v& c #3F0400", "w& c #DC6660", "x& c #D5302C", "y& c #D5110A", "z& c #D8110A", "A& c #DA110A", "B& c #DB110A", "C& c #D51009", "D& c #D31009", "E& c #D00E08", "F& c #C90D08", "G& c #C60A07", "H& c #C20A05", "I& c #BF0A05", "J& c #BB0905", "K& c #B50904", "L& c #B10904", "M& c #AF0804", "N& c #AD0803", "O& c #B32521", "P& c #BE3A38", "Q& c #C85C59", "R& c #C54B48", "S& c #BD3734", "T& c #B93533", "U& c #A62924", "V& c #8A0802", "W& c #1A0100", "X& c #B6635F", "Y& c #D2352F", "Z& c #CC0F07", "`& c #D01007", " * c #D20F08", ".* c #D10F08", "+* c #CE0D07", "@* c #C60C07", "#* c #C40A06", "$* c #C00A05", "%* c #BD0905", "&* c #B90905", "** c #B60904", "=* c #B10903", "-* c #AC0903", ";* c #A60703", ">* c #B22723", ",* c #AE120E", "'* c #AE0C09", ")* c #A30603", "!* c #9A0603", "~* c #9A0602", "{* c #930603", "]* c #870702", "^* c #8B0602", "/* c #650702", "(* c #3D3D3D", "_* c #B7A7A7", ":* c #B9130C", "<* c #C60D06", "[* c #C50E06", "}* c #C70E06", "|* c #C50C07", "1* c #C30C07", "2* c #BD0A05", "3* c #BC0905", "4* c #B90904", "5* c #B80905", "6* c #B20903", "7* c #AF0903", "8* c #A50703", "9* c #A20703", "0* c #9E0703", "a* c #990703", "b* c #940602", "c* c #A81D1A", "d* c #A41916", "e* c #A11916", "f* c #9F1B18", "g* c #9F211E", "h* c #9F241F", "i* c #9D2621", "j* c #170100", "k* c #060606", "l* c #A7A7A7", "m* c #6A6A6A", "n* c #653938", "o* c #B20C06", "p* c #BB0D06", "q* c #BA0D06", "r* c #B90B04", "s* c #B70A04", "t* c #B40A04", "u* c #B30903", "v* c #AF0803", "w* c #AE0803", "x* c #AB0703", "y* c #A90803", "z* c #9D0703", "A* c #9A0703", "B* c #950603", "C* c #910602", "D* c #8D0602", "E* c #880602", "F* c #860602", "G* c #800502", "H* c #800602", "I* c #7F0602", "J* c #7E0702", "K* c #280200", "L* c #020202", "M* c #787878", "N* c #707070", "O* c #4E4E4E", "P* c #210201", "Q* c #990903", "R* c #C23B36", "S* c #AE0A04", "T* c #AC0A04", "U* c #AA0803", "V* c #A80803", "W* c #A70803", "X* c #A30703", "Y* c #990603", "Z* c #930602", "`* c #8F0602", " = c #8A0602", ".= c #850502", "+= c #830502", "@= c #860502", "#= c #820501", "$= c #7D0602", "%= c #720502", "&= c #1E0100", "*= c #5B5B5B", "== c #7F7F7F", "-= c #575757", ";= c #202020", ">= c #773A38", ",= c #B43C37", "'= c #A60903", ")= c #A40803", "!= c #A10703", "~= c #9F0703", "{= c #980703", "]= c #970703", "^= c #920602", "/= c #8B0502", "(= c #900502", "_= c #9A110E", ":= c #9A1E1A", "<= c #962320", "[= c #440300", "}= c #0A0000", "|= c #3B3B3B", "1= c #606060", "2= c #323232", "3= c #3A3232", "4= c #643331", "5= c #933330", "6= c #9C0703", "7= c #9C0704", "8= c #9B0704", "9= c #9B0703", "0= c #9B0603", "a= c #960603", "b= c #900602", "c= c #8D0502", "d= c #9C1714", "e= c #9A1613", "f= c #89231F", "g= c #360300", "h= c #0C0000", "i= c #1F1F1F", "j= c #494949", "k= c #474747", "l= c #372D2D", "m= c #512E2C", "n= c #6C302E", "o= c #81312E", "p= c #91332E", "q= c #9E322E", "r= c #A1322E", "s= c #A1312D", "t= c #9A302B", "u= c #8F2E2A", "v= c #7D2B28", "w= c #6C2421", "x= c #57221F", "y= c #100000", "z= c #030303", "A= c #181818", "B= c #585858", "C= c #0E0E0E", "D= c #8A8A8A", "E= c #747474", "F= c #7D7D7D", "G= c #454545", "H= c #242424", "I= c #111111", "J= c #050505", "K= c #252525", "L= c #7A7A7A", "M= c #727272", "N= c #232323", "O= c #777777", "P= c #686868", "Q= c #5F5F5F", "R= c #5C5C5C", "S= c #6B6B6B", "T= c #797979", "U= c #404040", "V= c #2E2E2E", " ", " ", " . . ", " + @ # $ ", " . % & & . . . * = - ; > , ", " ' ) ! ~ ~ { ] ^ / . ( _ - : < [ } | ", " 1 2 3 4 5 6 7 8 9 0 a b . c d - e f g } h | ", " i j k l m n o p q r s t u v . w x ; y z A } * B ", " C D E F G H I J K L M N O P Q R S T U V W X Y + ", " . Z ` ...+.@.#.$.%.&.*.=.-.;.>.,.'.).!.~.X {.]. ", " ^./.(._.:.<.[.}.|.1.2.3.4.5.6.7.8.9.0.[ a.b.]. ", " . c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.0.t.u.v.w. . ", " x.y.z.A.B.C.D.E.F.G.H.I.J.K.L.e s.0.= M.N.O.P.. Q.R.S.T. ", " U.V.W.X.Y.Z.`. +.+++H.@+#+$+%+s.0.&+*+=+-+;+>+,+. '+)+!+'.~+{+ ", " ]+^+/+(+_+:+<+[+}+|+1+2+3+4+5+6+!.&+7+8+9+0+a+b+c+d+. . e+f+- e < g+h+ ", " i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z+A+B+C+D+E+F+G+H+I+. e+g+J+K+V &+a.L+ ", " M+N+O+P+Q+R+S+T+U+V+W+X+Y+Y+v+Z+`+ @.@+@@@#@D+$@%@&@*@=@[ ; -@d ;@>@,@ ", " '@)@!@~@{@]@^@/@(@_@:@<@[@}@|@v+1@2@3@4@5@6@7@8@9@0@a@b@T ).!.c@Y d@ ", " e@f@g@h@i@j@k@l@m@n@o@p@q@[@r@}@s@t@u@v@w@x@y@z@o.A@B@C@s.0.t.D@i+ ", " . E@F@G@H@I@J@K@L@M@N@O@P@Q@R@S@r@T@U@V@W@v@X@Y@Z@`@ #.#< +#@###$# ", " . %#&#*#=#-#;#>#,#'#)#!#~#{#]#R@S@r@Y+U@^#/#(#_#:#x r.< +#t.<#[#. ", " . }#|#*#1#2#>#3#4#5#6#7#8#9#0#a#R@r@b#Y+c#d#e#f#< e s.g#c@h#i#j#. ", " . k#l#m#n#o#p#q#r#s#t#u#v#w#x#y#Q@z#A#B#c#d#C#D#%+s.!.E#F#G#H#I#. ", " . J#K#L#M#N#O#P#Q#s#R#S#T#U#V#W#X#Y#Z#`#t+ $d#.$+$0.@$#$$$%$&$*$=$. ", " . -$K#;$>$,$'$)$P#Q#!$~${$]$^$/$($_$:$<$[$}$}$4+|$1$2$3$4$5$6$7$8$. ", " . 9$0$a$n#b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$1+s$t$u$v$w$x$y$z$A$B$C$ ", " . D$E$F$G$H$I$m$d$J$f$)$K$L$M$N$O$P$Q$X+R$S$T$U$V$W$X$Y$Z$`$ %.%+%@%. ", " . #%$%%%&%*%=%c$-%;%>%,%;%'%)%!%~%{%]%^%/%(%_%:%<%[%}%k.|%1%2%3%4%5%. ", " 6%7%8%9%0%a%=%b%c%d%d%e%f%g%h%i%j%k%`.l%m%n%o%p%E.q%r%s%t%u%v%w%x%. ", " y%z%A%B%C%D%a%a%E%F%E%G%H%I%]%J%K%L%M%N%O%P%Q%R%S%T%U%V%W%X%Y%Z%`%. ", " &.&+&@&#&$&%&&&*&=&-&;&>&,&'&)&!&~&{&:.{&]&^&/&(&_&:&<&[&}&|&1&x%. ", " . 2&3&4&5&6&7&8&9&0&a&b&c&d&e&!&f&g&h&i&j&k&l&m&n&o&p&q&r&s&t&u&v&. ", " y%w&x&y&z&A&B&K#z&C&D&E&f&g.F&G&H&I&J&K&L&M&N&O&P&Q&R&S&T&U&V&W&. ", " . X&Y&Z&`& *.*.*+*g&{&@*#*H&$*%*&***=*-*;*>*,*'*)*!*~*{*]*^*/*. ", " (*_*:*<*[*}*}*|*1*j&2*3*4*5***6*7*N&8*9*0*a*b*c*d*e*f*g*h*i*j*. ", " k*l*m*n*o*p*p*q*r*s*t*u*6*v*w*x*y*;*9*z*A*B*C*D*E*F*G*H*I*J*K*. ", " L*M*N*O*{+P*Q*R*L&S*T*U*V*W*8*8*X*9*z*A*Y*Z*`* =.=+=@=#=$=%=&=. ", " . *===-=;=. Q.C >=,='=)=!=!=!=~=~=z*A*{=]=^=D*E*/=(=_=:=<=[=}=+ ", " |={.1=2=. w.3=4=5=6=7=8=9=A*0=Y*a=Z*b=c=c=d=e=f=g=h=. e+ ", " i=D@m*j=. ;= k=| + l=m=n=o=p=q=r=s=t=u=v=w=x=y=. z=A=B= ", " C=D=E=1=C=i= F=F=F=E=G=H=I=J=. . . . . . . k*I=K=j=L=F= ", " ==M=N=i= F=F=F=F=F=F=F=O=P=Q=R=Q=S=T=F=F=F=F=F= ", " F=U=N= F=F=F=F=F=F=F=F=F=F=F=F=F=F= ", " V= ", " ", " ", " ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CPage.h0000644000175000001440000000134311506076310014612 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CPAGE_H #define CPAGE_H #include "CODBCInst.h" /*! * \class CPage * * \brief A tab page. * * This tab page contains the content widget above a * CHelp widget. * * \author pharvey (1/15/2009) */ class CPage : public QWidget { public: CPage( QWidget* pwidgetParent, const QString &stringTitle, QWidget *pwidgetContent, const QIcon &icon, const QString &stringHelp ); virtual ~CPage(); QWidget *getContent() { return pwidgetContent; } protected: QWidget *pwidgetContent; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/odbcinstQ4.exp0000644000175000001440000000010411506076310016204 00000000000000ODBCCreateDataSource ODBCDriverConnectPrompt ODBCManageDataSources unixodbc-gui-qt-2.3.0/odbcinstQ4/CFileSelector.h0000644000175000001440000000233011506076310016313 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CFILESELECTOR_H #define CFILESELECTOR_H #include "CODBCInst.h" #include /*! * \class CFileSelector * \brief File selector. * * Displays a file name to the User and allows it to be changed by way * of clicking a button which invokes a file selection dialog. * * This is used by CTracing to allow the User to select a log file. * * \sa CTracing */ class CFileSelector : public QWidget { Q_OBJECT public: enum CFileSelectorMode { TraceFile, TraceLibrary, FileDSNDirectory, Driver, Setup }; CFileSelector( CFileSelectorMode nMode, const QString &stringLabel = QString::null, bool bCompact = true, bool bButton = true, QWidget* pwidgetParent = NULL ); virtual ~CFileSelector(); void setText( const QString &stringText ); QString getText(); signals: void signalChanged(); public slots: void slotInvokeDialog(); protected: CFileSelectorMode nMode; QLineEdit * pLineEdit; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CDriverList.cpp0000644000175000001440000013003111506076310016355 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDriverList.h" #include "CPropertiesDialog.h" #define ODBC_HELP_DRIVER_NAME "*Unique* driver name." #define ODBC_HELP_DRIVER_DESC "Driver description." #define ODBC_HELP_DRIVER_DRIVER "The driver. Its a share library and the filename will probably have odbc in it and it will probably end with *.so." #define ODBC_HELP_DRIVER_DRIVER64 "The driver for 64 bit environments. Its a share library and the filename will probably have odbc in it and it will probably end with *.so." #define ODBC_HELP_DRIVER_SETUP "The setup routines. Its a share library used to provide this program with DSN properties which can be presented to the user to edit. This library filename usually ends with a *S.so." #define ODBC_HELP_DRIVER_SETUP64 "The setup routines for 64 bit environments. Its a share library used to provide this program with DSN properties which can be presented to the user to edit. This library filename usually ends with a *S.so." #define ODBC_HELP_DRIVER_USAGECOUNT "The number of installs that use this driver. This driver entry should be removed when < 1." #define ODBC_HELP_DRIVER_CPTIMEOUT "Number of seconds before a connection timesout when in a Connection Pool. Leave this value blank to disable Connection Pooling. 0-n (0=default)." #define ODBC_HELP_DRIVER_CPTIMETOLIVE "Max number of seconds a pooled connection may be used. 0-n (0=default)." #define ODBC_HELP_DRIVER_CPREUSE "The maximum number of times a connection can be reused in a Connection Pool. Set to a lower number when dealing with drivers which have stability issues or memory leaks." #define ODBC_HELP_DRIVER_CPPROBE "A simple, benign, SQL statement which can be used to verify that the connection is still valid. Text (empty=default)." #define ODBC_HELP_DRIVER_DGF "Enable/Disable use of SQLGetFunctions by DM. 0-1 (0=default)." #define ODBC_HELP_DRIVER_DLCLOSE "Enable to tell DM to skip explicit unload request of driver. 0-1 (1=default)." #define ODBC_HELP_DRIVER_FETCHMAP "Enable/Disable SQLFetch -> SQLExtendedFetch mapping. 0-1 (1=default)." #define ODBC_HELP_DRIVER_THREADING "Thread level: 0-3 (3=default)." #define ODBC_HELP_DRIVER_FAKEUNICODE "Fake UNICODE: 0-1 (0=default)." #define ODBC_HELP_DRIVER_ICONV "Iconv option. Default is set at build time and is usually 'auto-search'." #define ODBC_HELP_DRIVER_TRACE "Turn trace on/off. 0-1 (0=default)." #define ODBC_HELP_DRIVER_TRACEFILE "Place to write trace output (/tmp/Trace.txt=default)." #define ODBC_HELP_DRIVER_TRACELIBRARY "Library to create trace output (odbctrac=default)." #define ODBC_HELP_DRIVER_UNKNOWN "No help for this driver specific property. Please check with the vendor of the driver... perhaps their web site" CDriverList::CDriverList( QWidget* pwidgetParent ) : QTableWidget( pwidgetParent ) { setToolTip( tr( "list of registered drivers" ) ); setWhatsThis( tr( "This is a list of registered drivers. Registered drivers are drivers which the Driver Manager knows about. A well behaved driver installer will automatically register a driver - but not all driver installers do this last step. If you know your driver is installed but is not registered here then it can be registered manually providing you know the file names." ) ); QStringList stringlistHeaderLabels; setColumnCount( 4 ); setHorizontalHeaderLabels( stringlistHeaderLabels << tr( "Name" ) << tr( "Description" ) << tr( "Driver" ) << tr( "Setup" ) ); setSelectionBehavior( QAbstractItemView::SelectRows ); setSelectionMode( QAbstractItemView::SingleSelection ); verticalHeader()->setVisible( false ); connect( this, SIGNAL(itemDoubleClicked( QTableWidgetItem * )), this, SLOT(slotDoubleClick( QTableWidgetItem * ))); slotLoad(); } CDriverList::~CDriverList() { } QString CDriverList::getFriendlyName() { QList listSelectedItems = selectedItems(); if ( !listSelectedItems.count() ) return QString::null; return item( row( listSelectedItems.at( 0 ) ), 0 )->text(); } QString CDriverList::getDescription() { QList listSelectedItems = selectedItems(); if ( !listSelectedItems.count() ) return QString::null; return item( row( listSelectedItems.at( 0 ) ), 1 )->text(); } QString CDriverList::getDriver() { QList listSelectedItems = selectedItems(); if ( !listSelectedItems.count() ) return QString::null; return item( row( listSelectedItems.at( 0 ) ), 2 )->text(); } QString CDriverList::getSetup() { QList listSelectedItems = selectedItems(); if ( !listSelectedItems.count() ) return QString::null; return item( row( listSelectedItems.at( 0 ) ), 3 )->text(); } void CDriverList::slotAdd() { HODBCINSTPROPERTY hFirstProperty = NULL; HODBCINSTPROPERTY hCurProperty = NULL; HODBCINSTPROPERTY hLastProperty; // SET UP PROPERTIES LIST hFirstProperty = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); memset( hFirstProperty, 0, sizeof(ODBCINSTPROPERTY) ); hFirstProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hFirstProperty->pNext = NULL; hFirstProperty->bRefresh = 0; hFirstProperty->hDLL = NULL; hFirstProperty->pWidget = NULL; hFirstProperty->pszHelp = strdup( ODBC_HELP_DRIVER_NAME ); hFirstProperty->aPromptData = NULL; strncpy( hFirstProperty->szName, "Name", INI_MAX_PROPERTY_NAME ); strcpy( hFirstProperty->szValue, "" ); hLastProperty = hFirstProperty; hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DESC ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Description", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "" ); /* * Don't have a deflib for 64 bit, the user may not want a driver entry, just a driver64 */ #ifdef PLATFORM64 #undef DEFLIB_PATH #endif hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DRIVER ); strncpy( hLastProperty->szName, "Driver", INI_MAX_PROPERTY_NAME ); #ifdef DEFLIB_PATH strncpy( hLastProperty->szValue, DEFLIB_PATH, INI_MAX_PROPERTY_VALUE ); #else strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); #endif hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DRIVER64 ); strncpy( hLastProperty->szName, "Driver64", INI_MAX_PROPERTY_NAME ); #ifdef DEFLIB_PATH strncpy( hLastProperty->szValue, DEFLIB_PATH, INI_MAX_PROPERTY_VALUE ); #else strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); #endif hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_SETUP ); strncpy( hLastProperty->szName, "Setup", INI_MAX_PROPERTY_NAME ); #ifdef DEFLIB_PATH strncpy( hLastProperty->szValue, DEFLIB_PATH, INI_MAX_PROPERTY_VALUE ); #else strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); #endif hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_SETUP64 ); strncpy( hLastProperty->szName, "Setup64", INI_MAX_PROPERTY_NAME ); #ifdef DEFLIB_PATH strncpy( hLastProperty->szValue, DEFLIB_PATH, INI_MAX_PROPERTY_VALUE ); #else strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); #endif hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_USAGECOUNT ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "UsageCount", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPTIMEOUT ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPTimeout", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPTIMETOLIVE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPTimeToLive", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPPROBE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPProbe", INI_MAX_PROPERTY_NAME ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DGF ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "DisableGetFunctions", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DLCLOSE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "DontDLCLose", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_FETCHMAP ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "ExFetchMapping", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_THREADING ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Threading", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "3" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_FAKEUNICODE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "FakeUnicode", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_ICONV ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "IconvEncoding", INI_MAX_PROPERTY_NAME ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Trace", INI_MAX_PROPERTY_NAME ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACEFILE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "TraceFile", INI_MAX_PROPERTY_NAME ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACELIBRARY ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "TraceLibrary", INI_MAX_PROPERTY_NAME ); // present properties for editing... { CPropertiesDialog propertiesdialog( this, hFirstProperty ); propertiesdialog.setWindowTitle( tr( "Driver Properties (new)" ) ); if ( !propertiesdialog.exec() ) { ODBCINSTDestructProperties( &hFirstProperty ); return; } } // save changes... { // get our ini file char szINI[FILENAME_MAX+1]; char b1[ 256 ], b2[ 256 ]; sprintf( szINI, "%s/%s", odbcinst_system_file_path( b1 ), odbcinst_system_file_name( b1 ) ); // ensure section does not exist... if ( SQLWritePrivateProfileString( hFirstProperty->szValue, NULL, NULL, szINI ) == FALSE ) { ODBCINSTDestructProperties( &hFirstProperty ); CODBCInst::showErrors( this, QString( "Could not write to (%1)\nYou probably need to do this while logged in as root." ).arg( szINI ) ); return; } // create section (first call) and add key/value pairs... for ( hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { SQLWritePrivateProfileString( hFirstProperty->szValue, hCurProperty->szName, hCurProperty->szValue, szINI ); } // free mem used by properties... ODBCINSTDestructProperties( &hFirstProperty ); // announce that we have revised driver information... emit signalChanged(); } // reload to pickup any changes (including any we may not know about)... slotLoad(); } void CDriverList::slotEdit() { QString stringName = ""; CPropertiesDialog * pProperties; HODBCINSTPROPERTY hFirstProperty = NULL; HODBCINSTPROPERTY hCurProperty = NULL; HODBCINSTPROPERTY hLastProperty; HINI hIni; char szINI[FILENAME_MAX+1]; char b1[ 256 ], b2[ 256 ]; sprintf( szINI, "%s/%s", odbcinst_system_file_path( b1 ), odbcinst_system_file_name( b1 ) ); QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) stringName = item( row( listSelectedItems.at( 0 ) ), 0 )->text(); else { QMessageBox::warning( this, tr( "ODBC Administrator" ), "Please select a Driver from the list first." ); return; } // SET UP PROPERTIES LIST STARTING WITH MANDATORY PROPERTIES hFirstProperty = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); memset( hFirstProperty, 0, sizeof(ODBCINSTPROPERTY) ); hFirstProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hFirstProperty->pNext = NULL; hFirstProperty->bRefresh = 0; hFirstProperty->hDLL = NULL; hFirstProperty->pWidget = NULL; hFirstProperty->pszHelp = strdup( ODBC_HELP_DRIVER_NAME ); hFirstProperty->aPromptData = NULL; strncpy( hFirstProperty->szName, "Name", INI_MAX_PROPERTY_NAME ); strcpy( hFirstProperty->szValue, stringName.toAscii().data() ); hLastProperty = hFirstProperty; hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DESC ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Description", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DRIVER ); strncpy( hLastProperty->szName, "Driver", INI_MAX_PROPERTY_NAME ); strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DRIVER64 ); strncpy( hLastProperty->szName, "Driver64", INI_MAX_PROPERTY_NAME ); strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_SETUP ); strncpy( hLastProperty->szName, "Setup", INI_MAX_PROPERTY_NAME ); strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_FILENAME; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_SETUP64 ); strncpy( hLastProperty->szName, "Setup64", INI_MAX_PROPERTY_NAME ); strncpy( hLastProperty->szValue, "", INI_MAX_PROPERTY_VALUE ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->aPromptData = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_USAGECOUNT ); strncpy( hLastProperty->szName, "UsageCount", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPTIMEOUT ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPTimeout", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPTIMETOLIVE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPTimeToLive", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); /* hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_CPREUSE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "CPReuse", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); */ hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DGF ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "DisableGetFunctions", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_DLCLOSE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "DontDLCLose", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_FETCHMAP ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "ExFetchMapping", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "1" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_THREADING ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Threading", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "3" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_FAKEUNICODE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "FakeUnicode", INI_MAX_PROPERTY_NAME ); strcpy( hLastProperty->szValue, "0" ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_ICONV ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "IconvEncoding", INI_MAX_PROPERTY_NAME ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "Trace", INI_MAX_PROPERTY_NAME ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACEFILE ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "TraceFile", INI_MAX_PROPERTY_NAME ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_TRACELIBRARY ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, "TraceLibrary", INI_MAX_PROPERTY_NAME ); SQLGetPrivateProfileString( stringName.toAscii().data(), hLastProperty->szName, "", hLastProperty->szValue, sizeof(hLastProperty->szValue)-1, szINI ); // ACCEPT ANY DRIVER SPECIFIC PROPERTIES THAT HAVE BEEN TYPED IN MANUALLY OR INSTALLED // NOTE: This is a quick enhancement. Much room to optimize this func. { char szDriverName[INI_MAX_OBJECT_NAME+1]; char szPropertyName[INI_MAX_PROPERTY_NAME+1]; char szPropertyNameUpper[INI_MAX_PROPERTY_NAME+1]; char szPropertyValue[INI_MAX_PROPERTY_VALUE+1]; strcpy( szDriverName, stringName.toAscii().data() ); if ( iniOpen( &hIni, szINI, (char*)"#;", '[', ']', '=', TRUE ) != INI_ERROR ) { if ( iniObjectSeek( hIni, szDriverName ) == INI_SUCCESS ) { while ( iniPropertyEOL( hIni ) == FALSE ) { iniProperty( hIni, szPropertyName ); iniProperty( hIni, szPropertyNameUpper ); iniToUpper( szPropertyNameUpper ); if ( strncmp( szPropertyNameUpper, "NAME", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "DESCRIPTION", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "DRIVER", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "DRIVER64", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "SETUP", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "SETUP64", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "USAGECOUNT", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "CPTIMEOUT", INI_MAX_PROPERTY_NAME ) != 0 && /* strncmp( szPropertyNameUpper, "CPREUSE", INI_MAX_PROPERTY_NAME ) != 0 && */ strncmp( szPropertyNameUpper, "CPTIMETOLIVE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "CPPROBE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "DISABLEGETFUNCTIONS", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "DONTDLCLOSE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "EXFETCHMAPPING", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "THREADING", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "FAKEUNICODE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "ICONVENCODING", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "TRACE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "TRACEFILE", INI_MAX_PROPERTY_NAME ) != 0 && strncmp( szPropertyNameUpper, "TRACELIBRARY", INI_MAX_PROPERTY_NAME ) != 0 ) { iniValue( hIni, szPropertyValue ); hLastProperty->pNext = (HODBCINSTPROPERTY)malloc( sizeof(ODBCINSTPROPERTY) ); hLastProperty = hLastProperty->pNext; memset( hLastProperty, 0, sizeof(ODBCINSTPROPERTY) ); hLastProperty->nPromptType = ODBCINST_PROMPTTYPE_TEXTEDIT; hLastProperty->pNext = NULL; hLastProperty->bRefresh = 0; hLastProperty->hDLL = NULL; hLastProperty->pWidget = NULL; hLastProperty->pszHelp = strdup( ODBC_HELP_DRIVER_UNKNOWN ); hLastProperty->aPromptData = NULL; strncpy( hLastProperty->szName, szPropertyName, INI_MAX_PROPERTY_NAME ); strncpy( hLastProperty->szValue, szPropertyValue, sizeof(hLastProperty->szValue)-1 ); } iniPropertyNext( hIni ); } } iniClose( hIni ); } } // ALLOW USER TO EDIT pProperties = new CPropertiesDialog( this, hFirstProperty ); pProperties->setWindowTitle( tr( "Driver Properties (edit)" ) ); if ( pProperties->exec() ) { /* DELETE ENTIRE SECTION IF IT EXISTS (no entry given) */ if ( SQLWritePrivateProfileString( stringName.toAscii().data(), NULL, NULL, szINI ) == FALSE ) { delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); CODBCInst::showErrors( this, QString( "Could not write to (%1).\nYou probably need to do this while logged in as root." ).arg( szINI ) ); return; } /* ADD ENTRIES; SECTION CREATED ON FIRST CALL */ for ( hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { SQLWritePrivateProfileString( hFirstProperty->szValue, hCurProperty->szName, hCurProperty->szValue, szINI ); } emit signalChanged(); } delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); // RELOAD (slow but safe) slotLoad(); } void CDriverList::slotDelete() { HINI hIni; char szINI[FILENAME_MAX+1]; QString stringName; char b1[ 256 ], b2[ 256 ]; sprintf( szINI, "%s/%s", odbcinst_system_file_path( b1 ), odbcinst_system_file_name( b1 ) ); // GET SELECT DATA SOURCE NAME QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) stringName = item( row( listSelectedItems.at( 0 ) ), 0 )->text(); else { QMessageBox::warning( this, tr( "ODBC Administrator" ), "Please select a Driver from the list first" ); return; } // DELETE ENTIRE SECTION IF IT EXISTS (given NULL entry) if ( SQLWritePrivateProfileString( stringName.toAscii().data(), NULL, NULL, szINI ) == FALSE ) CODBCInst::showErrors( this, QString( "Could not write property list for (%1)" ).arg( stringName ) ); emit signalChanged(); // RELOAD (slow but safe) slotLoad(); } void CDriverList::slotLoad() { HINI hIni; char szINI[FILENAME_MAX+1]; char szDriverName[INI_MAX_OBJECT_NAME+1]; char szPropertyName[INI_MAX_PROPERTY_NAME+1]; char szDescription[INI_MAX_PROPERTY_VALUE+1]; char szDriver[INI_MAX_PROPERTY_VALUE+1]; char szDriver64[INI_MAX_PROPERTY_VALUE+1]; char szSetup[INI_MAX_PROPERTY_VALUE+1]; char szSetup64[INI_MAX_PROPERTY_VALUE+1]; int nRow = 0; char b1[ 256 ], b2[ 256 ]; setRowCount( 0 ); sprintf( szINI, "%s/%s", odbcinst_system_file_path( b1 ), odbcinst_system_file_name( b1 ) ); if ( iniOpen( &hIni, szINI, (char*)"#;", '[', ']', '=', TRUE ) != INI_ERROR ) { iniObjectFirst( hIni ); while ( iniObjectEOL( hIni ) == FALSE ) { *szDriverName = '\0'; *szDescription = '\0'; *szDriver = '\0'; *szDriver64 = '\0'; *szSetup64 = '\0'; *szSetup = '\0'; iniObject( hIni, szDriverName ); iniPropertyFirst( hIni ); if ( strcmp( szDriverName, "ODBC" ) == 0 ) { iniObjectNext( hIni ); continue; } while ( iniPropertyEOL( hIni ) == FALSE ) { iniProperty( hIni, szPropertyName ); iniToUpper( szPropertyName ); if ( strncmp( szPropertyName, "DESCRIPTION", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szDescription ); #ifdef PLATFORM64 if ( strncmp( szPropertyName, "DRIVER64", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szDriver64 ); if ( strncmp( szPropertyName, "DRIVER", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szDriver ); if ( strncmp( szPropertyName, "SETUP64", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szSetup64 ); if ( strncmp( szPropertyName, "SETUP", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szSetup ); #else if ( strncmp( szPropertyName, "DRIVER", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szDriver ); if ( strncmp( szPropertyName, "SETUP", INI_MAX_PROPERTY_NAME ) == 0 ) iniValue( hIni, szSetup ); #endif iniPropertyNext( hIni ); } #ifdef PLATFORM64 if ( szDriver64[ 0 ] != '\0' ) strcpy( szDriver, szDriver64 ); if ( szSetup64[ 0 ] != '\0' ) strcpy( szSetup, szSetup64 ); #endif QTableWidgetItem *ptablewidgetitem; setRowCount( nRow + 1 ); ptablewidgetitem = new QTableWidgetItem( szDriverName ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nRow, 0, ptablewidgetitem ); ptablewidgetitem = new QTableWidgetItem( szDescription ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nRow, 1, ptablewidgetitem ); ptablewidgetitem = new QTableWidgetItem( szDriver ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nRow, 2, ptablewidgetitem ); ptablewidgetitem = new QTableWidgetItem( szSetup ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nRow, 3, ptablewidgetitem ); nRow++; iniObjectNext( hIni ); } iniClose( hIni ); } else CODBCInst::showErrors( this, QString( "Could not open system file at %1" ).arg( szINI ) ); } void CDriverList::slotDoubleClick( QTableWidgetItem * ) { slotEdit(); } unixodbc-gui-qt-2.3.0/odbcinstQ4/InfoArrow16.xpm0000644000175000001440000000476011506076310016273 00000000000000/* XPM */ static const char * xpmInfoArrow16[] = { "16 16 119 2", " c None", ". c #0568C4", "+ c #0069C8", "@ c #006CCD", "# c #0070D3", "$ c #136BBF", "% c #3482CC", "& c #3485D0", "* c #066ECB", "= c #006DCF", "- c #0071D4", "; c #0074DA", "> c #0078DF", ", c #2473C0", "' c #5F9BD4", ") c #4C91D3", "! c #3587D2", "~ c #6E9DCB", "{ c #6699CB", "] c #0072D6", "^ c #0075DB", "/ c #0079E0", "( c #007CE6", "_ c #1466B8", ": c #78A9D9", "< c #649FD6", "[ c #4C92D4", "} c #5993CC", "| c #F9FAFC", "1 c #3987CE", "2 c #0076DC", "3 c #007AE2", "4 c #007DE7", "5 c #0081EB", "6 c #6299D0", "7 c #7CACDB", "8 c #64A0D7", "9 c #5795D0", "0 c #E7EBF2", "a c #FFFFFF", "b c #E6EBF2", "c c #197ED7", "d c #007BE3", "e c #007EE8", "f c #0181EC", "g c #0159AF", "h c #8EB6DE", "i c #7CADDC", "j c #669FD7", "k c #CAD6E4", "l c #C6D4E4", "m c #067DE3", "n c #007FEA", "o c #1A8EEE", "p c #0081EC", "q c #1B6BBA", "r c #94BBE0", "s c #A9BED6", "t c #99B8D8", "u c #0381EB", "v c #339AF0", "w c #0182EC", "x c #196BBA", "y c #94BBE1", "z c #7CAEDD", "A c #64A1DA", "B c #4C95D8", "C c #358BD7", "D c #F1F4F7", "E c #147CD8", "F c #007EE7", "G c #0784ED", "H c #48A5F1", "I c #0282EC", "J c #015DB5", "K c #8EB8E0", "L c #7CAEDE", "M c #64A1DB", "N c #4C96D9", "O c #358BD8", "P c #D5DEE9", "Q c #3E8AD1", "R c #007FE9", "S c #3199F0", "T c #629CD5", "U c #7CAFDF", "V c #64A2DC", "W c #4C96DA", "X c #358CDA", "Y c #93B3D4", "Z c #699FD1", "` c #007CE5", " . c #0080EA", ".. c #0F88ED", "+. c #136BC1", "@. c #78ADDE", "#. c #64A3DC", "$. c #4C97DB", "%. c #358DDB", "&. c #3287D5", "*. c #D9E2EC", "=. c #DBE3ED", "-. c #0A7FE2", ";. c #247BCB", ">. c #5FA0DC", ",. c #4C98DC", "'. c #358EDB", "). c #167FDB", "!. c #107CD9", "~. c #ABC3DC", "{. c #A4BFDB", "]. c #1475CE", "^. c #348BD9", "/. c #348DDD", "(. c #0677DA", "_. c #007BE4", ":. c #0985EC", "<. c #0573D6", "[. c #007CE4", " ", " . + @ # ", " $ % & * = - ; > ", " , ' ) ! ~ { ] ^ / ( ", " _ : < [ } | | 1 2 3 4 5 ", " 6 7 8 9 0 a a b c d e f ", " g h i j k a a a a l m n o p ", " q r i s a a a a a a t u v w ", " x y z A B C D a E 3 F G H I ", " J K L M N O P a Q d R I S 5 ", " T U V W X Y a Z ` .p .. ", " +.@.#.$.%.&.*.=.-.p p p ", " ;.>.,.'.).!.~.{.'.p ", " ].^./.(.> _.R :. ", " <.^ / [. ", " "}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNameList.cpp0000644000175000001440000003266511506076310017773 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDataSourceNameList.h" #include "CDriverPrompt.h" #include "CPropertiesDialog.h" #define ODBC_HELP_DSN_NAME "*Unique* DSN name. This is the name you use when using ODBC with applications such as StarOffice. Try to keep unusual characters and spaces out of the name." #define ODBC_HELP_DSN_DESC "DSN description. A long, perhaps more meaningfull name." #define ODBC_HELP_DSN_UNKNOWN "No help for this DSN property. Please check with the vendor of the driver... perhaps their web site" CDataSourceNameList::CDataSourceNameList( QWidget *pwidgetParent, int nSource ) : QTableWidget( pwidgetParent ) { this->nSource = nSource; setToolTip( tr( "list of data source names" ) ); setWhatsThis( tr( "This shows a list of the data source names. Data source names (DSN's) are a convenient way for an application to connect to a data source as the options can be specified in advance, saved, and then used at connect-time by simply referring to the name. Applications which use a DSN to connect also provide a means for the User to easily specify a different data source - simply create the DSN with a same/different driver and options." ) ); QStringList stringlist; setColumnCount( 3 ); setHorizontalHeaderLabels( stringlist << "Name" << "Description" << "Driver" ); setSelectionBehavior( QAbstractItemView::SelectRows ); setSelectionMode( QAbstractItemView::SingleSelection ); verticalHeader()->setVisible( false ); connect( this, SIGNAL(itemDoubleClicked( QTableWidgetItem * )), this, SLOT(slotDoubleClick( QTableWidgetItem * ))); slotLoad(); } CDataSourceNameList::~CDataSourceNameList() { } QString CDataSourceNameList::getDataSourceName() { QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) { int nRow = row( listSelectedItems.at( 0 ) ); return item( nRow, 0 )->text(); } return QString(); } QString CDataSourceNameList::getDescription() { QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) { int nRow = row( listSelectedItems.at( 0 ) ); return item( nRow, 1 )->text(); } return QString(); } void CDataSourceNameList::slotAdd() { // odbc.ini INFO QString stringDataSourceName = ""; QString stringDataSourceDescription = ""; QString stringDataSourceDriver = ""; // odbcinst.ini INFO QString stringDriverName = ""; QString stringDriverDescription = ""; QString stringDriverFile = ""; QString stringSetupFile = ""; CDriverPrompt * pDriverPrompt; CPropertiesDialog * pProperties; HODBCINSTPROPERTY hFirstProperty = NULL; HODBCINSTPROPERTY hCurProperty = NULL; char szINI[FILENAME_MAX+1]; pDriverPrompt = new CDriverPrompt( this ); if ( pDriverPrompt->exec() ) { stringDriverName = pDriverPrompt->getFriendlyName(); stringDriverDescription = pDriverPrompt->getDescription(); stringDriverFile = pDriverPrompt->getDriver(); stringSetupFile = pDriverPrompt->getSetup(); stringDataSourceDriver = stringDriverName; delete pDriverPrompt; // // can we call SQLConfigDataSource ? // { int mode; if( nSource == ODBC_USER_DSN ) { sprintf( szINI, "~/.odbc.ini" ); mode = ODBC_ADD_DSN; } else { char b1[ 256 ]; sprintf( szINI, "%s/odbc.ini", odbcinst_system_file_path( b1 )); mode = ODBC_ADD_SYS_DSN; } if ( SQLConfigDataSource( (HWND)1, mode, stringDataSourceDriver.toAscii().data(), "" ) ) { slotLoad(); return; } } // GET PROPERTY LIST FROM DRIVER if ( ODBCINSTConstructProperties( stringDataSourceDriver.toAscii().data(), &hFirstProperty ) != ODBCINST_SUCCESS ) { QMessageBox::information( this, tr( "ODBC Administrator" ), QString( "Could not construct a property list for (%1)" ).arg( stringDataSourceDriver ) ); return; } // ALLOW USER TO EDIT pProperties = new CPropertiesDialog( this, hFirstProperty ); pProperties->setWindowTitle( tr( "Data Source Properties (new)" ) ); if ( pProperties->exec() ) { /* DELETE ENTIRE SECTION IF IT EXISTS (no entry given) */ SQLSetConfigMode( nSource ); if ( SQLWritePrivateProfileString( hFirstProperty->szValue, NULL, NULL, "odbc.ini" ) == FALSE ) { SQLSetConfigMode( ODBC_BOTH_DSN ); delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); CODBCInst::showErrors( this, QString( "Could not write to (%1)" ).arg( szINI ) ); return; } stringDataSourceName = hFirstProperty->szValue; /* ADD ENTRIES; SECTION CREATED ON FIRST CALL */ QString stringName; for ( hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { stringName = hCurProperty->szName; if ( stringName.toUpper() == "DESCRIPTION" ) stringDataSourceDescription = hCurProperty->szValue; SQLWritePrivateProfileString( hFirstProperty->szValue, hCurProperty->szName, hCurProperty->szValue, "odbc.ini" ); } SQLSetConfigMode( ODBC_BOTH_DSN ); } delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); } else delete pDriverPrompt; // RELOAD (slow but safe) slotLoad(); } void CDataSourceNameList::slotEdit() { // odbc.ini INFO QString stringDataSourceName = ""; QString stringDataSourceDescription = ""; QString stringDataSourceDriver = ""; // odbcinst.ini INFO QString stringDriverFile = ""; QString stringSetupFile = ""; QString stringError = ""; CPropertiesDialog * pProperties; HODBCINSTPROPERTY hFirstProperty = NULL; HODBCINSTPROPERTY hCurProperty = NULL; char szEntryNames[4096]; char szProperty[INI_MAX_PROPERTY_NAME+1]; char szValue[INI_MAX_PROPERTY_VALUE+1]; DWORD nErrorCode; char szErrorMsg[101]; char szINI[FILENAME_MAX+1]; int nElement; // HAS THE USER SELECTED SOMETHING QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) { int nRow = row( listSelectedItems.at( 0 ) ); stringDataSourceName = item( nRow, 0 )->text(); stringDataSourceDescription = item( nRow, 1 )->text(); stringDataSourceDriver = item( nRow, 2 )->text(); } else { QMessageBox::information( this, tr( "ODBC Administrator" ), "Please select a Data Source from the list first" ); return; } // // can we call SQLConfigDataSource ? // { char attr[ 128 ]; int mode; sprintf( attr, "DSN=%s", stringDataSourceName.toAscii().data() ); /* * add extra null */ attr[ strlen( attr ) ] = '\0'; if( nSource == ODBC_USER_DSN ) { sprintf( szINI, "~/.odbc.ini" ); mode = ODBC_CONFIG_DSN; } else { char b1[ 256 ]; sprintf( szINI, "%s/odbc.ini", odbcinst_system_file_path( b1 )); mode = ODBC_CONFIG_SYS_DSN; } if ( SQLConfigDataSource(( HWND ) 1, mode, stringDataSourceDriver.toAscii().data(), attr )) { SQLSetConfigMode( ODBC_BOTH_DSN ); slotLoad(); return; } SQLSetConfigMode( ODBC_BOTH_DSN ); } // GET PROPERTY LIST FROM DRIVER if ( ODBCINSTConstructProperties( (char*) stringDataSourceDriver.toAscii().data(), &hFirstProperty ) != ODBCINST_SUCCESS ) { CODBCInst::showErrors( this, QString( "Could not construct a property list for (%1)" ).arg( stringDataSourceDriver ) ); return; } // COPY EXISTING VALUES INTO PROPERTIES LIST SQLSetConfigMode( nSource ); ODBCINSTSetProperty( hFirstProperty, "Name", stringDataSourceName.toAscii().data() ); memset( szEntryNames, 0, sizeof( szEntryNames )); SQLGetPrivateProfileString( stringDataSourceName.toAscii().data(), NULL, NULL, szEntryNames, 4090, "odbc.ini" ); // GET ALL ENTRY NAMES FOR THE SELCTED DATA SOURCE for ( nElement = 0; iniElement( szEntryNames, '\0', '\0', nElement, szProperty, 1000 ) == INI_SUCCESS ; nElement++ ) { SQLGetPrivateProfileString( stringDataSourceName.toAscii().data(), szProperty, "", szValue, INI_MAX_PROPERTY_VALUE, szINI ); // GET VALUE FOR EACH ENTRY if ( ODBCINSTSetProperty( hFirstProperty, szProperty, szValue ) == ODBCINST_ERROR ) { ODBCINSTAddProperty( hFirstProperty, szProperty, szValue ); } } SQLSetConfigMode( ODBC_BOTH_DSN ); // ALLOW USER TO EDIT pProperties = new CPropertiesDialog( this, hFirstProperty ); pProperties->setWindowTitle( tr( "Data Source Properties (edit)" ) ); if ( pProperties->exec() ) { SQLSetConfigMode( nSource ); /* DELETE ENTIRE SECTION IF IT EXISTS (given NULL entry) */ if ( SQLWritePrivateProfileString( stringDataSourceName.toAscii().data(), NULL, NULL, "odbc.ini" ) == FALSE ) { SQLSetConfigMode( ODBC_BOTH_DSN ); delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); CODBCInst::showErrors( this, QString( "Could not write to (%1)" ).arg( szINI ) ); return; } stringDataSourceName = hFirstProperty->szValue; /* ADD ENTRIES; SECTION CREATED ON FIRST CALL */ QString stringName; for ( hCurProperty = hFirstProperty->pNext; hCurProperty != NULL; hCurProperty = hCurProperty->pNext ) { stringName = hCurProperty->szName; if ( stringName.toUpper() == "DESCRIPTION" ) stringDataSourceDescription = hCurProperty->szValue; SQLWritePrivateProfileString( hFirstProperty->szValue, hCurProperty->szName, hCurProperty->szValue, szINI ); } SQLSetConfigMode( ODBC_BOTH_DSN ); } delete pProperties; ODBCINSTDestructProperties( &hFirstProperty ); // RELOAD (slow but safe) slotLoad(); } void CDataSourceNameList::slotDelete() { char szINI[FILENAME_MAX+1]; char * pDataSourceName; QString stringError; DWORD nErrorCode; char szErrorMsg[FILENAME_MAX+1]; // GET SELECT DATA SOURCE NAME QList listSelectedItems = selectedItems(); if ( listSelectedItems.count() ) { int nRow = row( listSelectedItems.at( 0 ) ); pDataSourceName = (char *)item( nRow, 0 )->text().toAscii().data(); } else { QMessageBox::information( this, tr( "ODBC Administrator" ), "Please select a Data Source from the list first" ); return; } // DELETE ENTIRE SECTION IF IT EXISTS (given NULL entry) SQLSetConfigMode( nSource ); if ( SQLWritePrivateProfileString( pDataSourceName, NULL, NULL, szINI ) == FALSE ) CODBCInst::showErrors( this, QString( "Could not write property list for (%1)" ).arg( pDataSourceName ) ); SQLSetConfigMode( ODBC_BOTH_DSN ); // RELOAD (slow but safe) slotLoad(); } void CDataSourceNameList::slotLoad() { QString stringError; DWORD nErrorCode; char szErrorMsg[101]; char szINI[FILENAME_MAX+1]; char szSectionNames[4096]; char szSectionName[INI_MAX_OBJECT_NAME+1]; char szDriver[INI_MAX_PROPERTY_VALUE+1]; char szDescription[INI_MAX_PROPERTY_VALUE+1]; int nElement; setRowCount( 0 ); // GET SECTION NAMES (Data Sources) strcpy( szINI, "odbc.ini" ); memset( szSectionNames, 0, sizeof(szSectionNames) ); SQLSetConfigMode( nSource ); if ( SQLGetPrivateProfileString( NULL, NULL, NULL, szSectionNames, 4090, "odbc.ini" ) >= 0 ) { for ( nElement = 0; iniElement( szSectionNames, '\0', '\0', nElement, szSectionName, INI_MAX_OBJECT_NAME ) == INI_SUCCESS ; nElement++ ) { // GET DRIVER AND DESCRIPTION szDriver[0] = '\0'; szDescription[0] = '\0'; #ifdef PLATFORM64 SQLGetPrivateProfileString( szSectionName, "Driver64", "", szDriver, INI_MAX_PROPERTY_VALUE, "odbc.ini" ); if ( szDriver[ 0 ] == '\0' ) { SQLGetPrivateProfileString( szSectionName, "Driver", "", szDriver, INI_MAX_PROPERTY_VALUE, "odbc.ini" ); } #else SQLGetPrivateProfileString( szSectionName, "Driver", "", szDriver, INI_MAX_PROPERTY_VALUE, "odbc.ini" ); #endif SQLGetPrivateProfileString( szSectionName, "Description", "", szDescription, INI_MAX_PROPERTY_VALUE, "odbc.ini" ); QTableWidgetItem *ptablewidgetitem; setRowCount( nElement + 1 ); ptablewidgetitem = new QTableWidgetItem( szSectionName ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nElement, 0, ptablewidgetitem ); ptablewidgetitem = new QTableWidgetItem( szDescription ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nElement, 1, ptablewidgetitem ); ptablewidgetitem = new QTableWidgetItem( szDriver ); // ptablewidgetitem->setFlags( Qt::ItemIsSelectable ); setItem( nElement, 2, ptablewidgetitem ); } SQLSetConfigMode( ODBC_BOTH_DSN ); } else { SQLSetConfigMode( ODBC_BOTH_DSN ); CODBCInst::showErrors( this, QString( "Could not load %1" ).arg( szINI ) ); } } void CDataSourceNameList::slotDoubleClick( QTableWidgetItem * ) { slotEdit(); } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCMonitorHandleCounts.cpp0000644000175000001440000000463511506076451020422 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CMonitorHandleCounts.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CMonitorHandleCounts.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CMonitorHandleCounts.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CMonitorHandleCounts[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 22, 21, 21, 21, 0x09, 0 // eod }; static const char qt_meta_stringdata_CMonitorHandleCounts[] = { "CMonitorHandleCounts\0\0slotLoad()\0" }; const QMetaObject CMonitorHandleCounts::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CMonitorHandleCounts, qt_meta_data_CMonitorHandleCounts, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CMonitorHandleCounts::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CMonitorHandleCounts::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CMonitorHandleCounts::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CMonitorHandleCounts)) return static_cast(const_cast< CMonitorHandleCounts*>(this)); return QWidget::qt_metacast(_clname); } int CMonitorHandleCounts::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotLoad(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CAbout.cpp0000644000175000001440000001175611506076310015354 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CAbout.h" #include "About48.xpm" CAbout::CAbout( QWidget *pwidgetParent ) : QTabWidget( pwidgetParent ) { // introduction to ODBC { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( "What is ODBC?

Open Database Connectivity (ODBC) is an open specification for providing application developers with a predictable API with which to access Data Sources. Data Sources include SQL Servers and any Data Source with an ODBC Driver.

Why Use ODBC?

Software developers like to code to the ODBC specification because;

  • cross-database API
  • cross-platform API
  • API in their langauge of choice (C/C++)
  • ubiquitous support
  • no purchase required
  • good debugging support
  • good community support
  • knowledge of is relatively common
  • well documented API

Application Users like ODBC for some of the same reasons as Developers but also because;

  • many applications, particularly database appplications, support ODBC
  • easy to administrate
  • all majour databases (and then some) have an ODBC driver
  • an ODBC application can be told to use a different database without having to go to a developer to recode or even rebuild.

Whatever your reason is for using ODBC you can rest assured that you are in good company.

Resources
  • Microsoft - msdn.microsoft.com/library
" ); addTab( pwidget, tr( "ODBC" ) ); } // introduction to unixODBC { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( "What is unixODBC?

unixODBC is an Open Source, free, implementation of ODBC for non-Microsoft platforms (platforms such as UNIX/Linux/OSX etc). ODBC applications developed on one platform have a very good chance of working on another platform with a simple recompile.

Resources
  • unixODBC - www.unixodbc.org
" ); addTab( pwidget, tr( "unixODBC" ) ); } // introduction to unixODBC-GUI-Qt { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( "What is unixODBC-GUI-Qt?

unixODBC-GUI-Qt adds Qt-based GUI support to unixODBC. This was formally part of the unixODBC project but now exists as its own project.

Resources
  • unixODBC-GUI-Qt - unixodbc-gui-qt.sourceforge.net
" ); addTab( pwidget, tr( "unixODBC-GUI-Qt" ) ); } // introduction to people { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( "

Peter Harvey (current project lead). Many others have contributed to unixODBC-GUI-Qt.

Please see the AUTHORS file in the source distribution for more information.

" ); addTab( pwidget, tr( "People" ) ); } // license { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( "

unixODBC-GUI-Qt is Open Source and licensed under GPL and LGPL. Those developing commercial software can safely build upon unixODBC-GUI-Qt without having to worry about additional licensing and cost issues.

The source includes a copy of the relevant license information in the COPYING file.

" ); addTab( pwidget, tr( "License" ) ); } // version { QWidget * pwidget = new QWidget( this ); QVBoxLayout * playout = new QVBoxLayout( pwidget ); QTextBrowser * ptextbrowser = new QTextBrowser( pwidget ); playout->addWidget( ptextbrowser ); ptextbrowser->setHtml( QString( "
unixODBC-GUI-Qt%1.%2.%3
" ).arg( V_MAJOUR ).arg( V_MINOR ).arg( V_RELEASE ) ); addTab( pwidget, tr( "Version" ) ); } setWindowIcon( QPixmap( xpmAbout48 ) ); setWindowTitle( tr( "About" ) ); } CAbout::~CAbout() { } unixodbc-gui-qt-2.3.0/odbcinstQ4/mCThreading.cpp0000644000175000001440000000500011506076451016353 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CThreading.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CThreading.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CThreading.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CThreading[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 17, 11, 12, 11, 0x0a, 29, 11, 12, 11, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CThreading[] = { "CThreading\0\0bool\0slotApply()\0slotDefault()\0" }; const QMetaObject CThreading::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CThreading, qt_meta_data_CThreading, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CThreading::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CThreading::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CThreading::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CThreading)) return static_cast(const_cast< CThreading*>(this)); return QWidget::qt_metacast(_clname); } int CThreading::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: { bool _r = slotApply(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; case 1: { bool _r = slotDefault(); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break; default: ; } _id -= 2; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CDataSourceNames.cpp0000644000175000001440000000535311506076310017314 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CDataSourceNames.h" #include "CDataSourceNameList.h" #include "DataSourceNameUser48.xpm" #include "DataSourceNameSystem48.xpm" CDataSourceNames::CDataSourceNames( QWidget* pwidgetParent, int nSource ) : QWidget( pwidgetParent ) { Q_ASSERT( (nSource == ODBC_USER_DSN || nSource == ODBC_SYSTEM_DSN) ); this->nSource = nSource; pDataSourceNameList = new CDataSourceNameList( this, nSource ); QPushButton *ppushbuttonAdd = new QPushButton( tr( "A&dd..." ) ); ppushbuttonAdd->setToolTip( tr( "click to add a data source name" ) ); ppushbuttonAdd->setWhatsThis( tr( "Click this to add a data source name. A registered driver is selected then an attempt is made to load the drivers setup code. The drivers setup should support the unixODBC setup feature." ) ); QPushButton *ppushbuttonConfigure = new QPushButton( tr( "&Configure..." ) ); ppushbuttonConfigure->setToolTip( tr( "click to configure the selected data source name" ) ); ppushbuttonConfigure->setWhatsThis( tr( "Click to edit the data source name properties." ) ); QPushButton *ppushbuttonRemove = new QPushButton( tr( "&Remove" ) ); ppushbuttonRemove->setToolTip( tr( "click to remove the selected data source name" ) ); ppushbuttonRemove->setWhatsThis( tr( "Click to remove the select data source name." ) ); QHBoxLayout *playout = new QHBoxLayout; QVBoxLayout *playoutButtons = new QVBoxLayout; playoutButtons->addWidget( ppushbuttonAdd ); playoutButtons->addWidget( ppushbuttonConfigure ); playoutButtons->addWidget( ppushbuttonRemove ); playoutButtons->addStretch( 10 ); playout->addWidget( pDataSourceNameList ); playout->addLayout( playoutButtons ); setLayout( playout ); connect( ppushbuttonAdd, SIGNAL(clicked()), pDataSourceNameList, SLOT(slotAdd()) ); connect( ppushbuttonConfigure, SIGNAL(clicked()), pDataSourceNameList, SLOT(slotEdit()) ); connect( ppushbuttonRemove, SIGNAL(clicked()), pDataSourceNameList, SLOT(slotDelete()) ); if ( nSource == ODBC_USER_DSN ) { setWindowIcon( QPixmap( xpmDataSourceNameUser48 ) ); setWindowTitle( tr( "User Data Source Names" ) ); } else { setWindowIcon( QPixmap( xpmDataSourceNameSystem48 ) ); setWindowTitle( tr( "System Data Source Names" ) ); } } CDataSourceNames::~CDataSourceNames() { } QString CDataSourceNames::getDataSourceName() { return pDataSourceNameList->getDataSourceName(); } void CDataSourceNames::slotLoad() { pDataSourceNameList->slotLoad(); } unixodbc-gui-qt-2.3.0/odbcinstQ4/ODBC.xpm0000644000175000001440000000436711506076310014730 00000000000000/* XPM */ static const char *xpmODBC[]={ "16 16 104 2", "Qt c None", ".# c #000000", "#q c #004600", "#i c #005501", "#a c #006501", "#x c #013800", "#p c #013d01", "#h c #014d01", "#r c #014e01", "## c #015c01", "#j c #015e01", "#k c #016701", ".3 c #016c01", "#b c #016e01", ".4 c #017501", "#c c #017701", ".U c #017b01", ".5 c #017e01", ".V c #018401", ".K c #018c01", ".W c #018e01", ".L c #019501", ".M c #019d01", ".z c #01a402", ".A c #01ac02", ".p c #01bb01", ".E c #01cc01", ".g c #01cf01", ".s c #01d102", ".6 c #028701", ".X c #029702", ".N c #02a601", ".O c #02ae02", ".o c #02b302", ".B c #02b502", ".C c #02bd01", ".q c #02c302", ".D c #02c502", ".f c #02c801", ".r c #02ca02", ".h c #02d602", ".t c #02d802", ".i c #02dc02", ".a c #02e002", ".j c #02e102", ".b c #02e502", ".c c #02ea02", ".d c #103030", ".e c #113636", ".k c #143d3d", ".l c #164343", ".m c #18494a", ".u c #194b4b", ".n c #1a5050", ".v c #1a5152", ".w c #1d5858", ".F c #1d595b", ".x c #1f5e5e", ".G c #1f5f60", ".y c #216565", ".H c #226768", ".I c #246d6e", ".P c #256f6f", ".J c #267374", ".Q c #277676", ".R c #297c7d", ".S c #2b8283", ".Z c #2b8485", ".T c #2d898a", ".0 c #2d8a8c", ".1 c #309193", ".7 c #309394", ".2 c #329799", ".8 c #32999b", ".9 c #35a0a1", "#d c #35a1a3", "#. c #36a6a7", "#e c #37a7a9", "#f c #39adaf", "#l c #39afb0", "#g c #3bb3b4", "#m c #3bb5b6", "#n c #3db9bb", "#t c #3ebbbd", "#o c #3fbfc1", "#u c #3fc0c2", "#v c #41c6c7", "#w c #42cbcc", "#F c #43ccce", "#K c #440000", "#G c #45d1d2", "#J c #48dadc", "#I c #5b0000", "#E c #730000", "#D c #8b0000", "#L c #8c0000", "#C c #a40000", "#B c #bb0000", "#A c #d00000", "#s c #e30000", "#z c #e40000", "#y c #f30000", "#H c #ff0000", ".Y c #ffffff", "QtQtQtQtQt.#.#.#.#.#.#QtQtQtQtQt", "QtQtQt.#.#.a.b.c.#.d.e.#.#QtQtQt", "QtQt.#.f.g.h.i.j.#.k.l.m.n.#QtQt", "Qt.#.o.p.q.r.s.t.#.u.v.w.x.y.#Qt", "Qt.#.z.A.B.C.D.E.#.F.G.H.I.J.#Qt", ".#.K.L.M.N.O.#.#.#.#.P.Q.R.S.T.#", ".#.U.V.W.X.#QtQtQtQt.#.Z.0.1.2.#", ".#.3.4.5.6.#QtQtQtQt.#.7.8.9#..#", ".####a#b#c.#QtQtQtQt.##d#e#f#g.#", ".##h#i#j#k.#QtQtQtQt.##l#m#n#o.#", ".##p#q#r.##s.#.#.#.#.##t#u#v#w.#", "Qt.##x.##y#z#A#B#C#D#E.##F#G.#Qt", "Qt.#.##H#y#s#A#B#C#D#E#I.##J.#Qt", "QtQt.##H#y#s#A#B#C#D#E#I#K.#QtQt", "QtQtQt.#.##s#A#B#C#L#E.#.#QtQtQt", "QtQtQtQtQt.#.#.#.#.#.#QtQtQtQtQt"}; unixodbc-gui-qt-2.3.0/odbcinstQ4/CODBCConfig.cpp0000644000175000001440000001557711506076310016144 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CODBCConfig.h" #include "CManageDataSourceNames.h" #include "CMonitor.h" #include "CAdvanced.h" #include "CAbout.h" #include "CPage.h" #include "ODBCManageDataSources64.xpm" CODBCConfig::CODBCConfig( QWidget* pwidgetParent, Qt::WindowFlags nFlags ) : QDialog( pwidgetParent, nFlags ) { QVBoxLayout *playout00 = new QVBoxLayout; // init icon menu and stacked widget... { QHBoxLayout *playout01 = new QHBoxLayout; createConfigWidgets(); createIconMenu(); playout01->addWidget( plistwidgetIcons ); playout01->addWidget( pstackedwidgetConfigWidgets, 10 ); playout00->addLayout( playout01 ); } // init dialog buttons... { QDialogButtonBox * pdialogbuttonbox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Help ); QFrame * pframe = new QFrame; pframe->setFrameStyle( QFrame::HLine ); // connect( pdialogbuttonbox, SIGNAL(accepted()), this, SLOT(slotAccept()) ); connect( pdialogbuttonbox, SIGNAL(accepted()), this, SLOT(accept()) ); connect( pdialogbuttonbox, SIGNAL(rejected()), this, SLOT(reject()) ); connect( pdialogbuttonbox, SIGNAL(helpRequested()), this, SLOT(slotHelp()) ); playout00->addWidget( pframe ); playout00->addWidget( pdialogbuttonbox ); } // setLayout( playout00 ); setWindowTitle( tr( "ODBC Administrator" ) ); setWindowIcon( QPixmap( xpmODBCManageDataSources64 ) ); // restore last state... loadState(); } CODBCConfig::~CODBCConfig() { saveState(); } bool CODBCConfig::saveData() { if ( !pManageDataSourceNames->saveData() ); return false; if ( !pMonitor->saveData() ) return false; if ( !pAdvanced->saveData() ) return false; if ( !pAbout->saveData() ) return false; return true; } void CODBCConfig::slotChangePage( QListWidgetItem *plistwidgetitemCurrent, QListWidgetItem *plistwidgetitemPrevious ) { if ( !plistwidgetitemCurrent ) plistwidgetitemCurrent = plistwidgetitemPrevious; pstackedwidgetConfigWidgets->setCurrentIndex( plistwidgetIcons->row( plistwidgetitemCurrent ) ); } void CODBCConfig::slotHelp() { /*! * \todo * * 1. create unixODBC.adp * 2. get unixODBC.adp and associated doc to install in various install scenarios * 3. tweek the way we get the path to the doc so its more portable (currently just Linux friendly) * * \sa * * slotHelp */ QProcess *process = new QProcess( this ); QString app = QLibraryInfo::location( QLibraryInfo::BinariesPath ) + QLatin1String( "/assistant" ); process->start( app, QStringList() << QLatin1String( "-enableRemoteControl" ) ); if ( !process->waitForStarted() ) { QMessageBox::critical(this, tr("ODBC Administrator"), tr("Could not start Qt Assistant from %1.").arg( app ) ); return; } // show index page QTextStream str( process ); str << QLatin1String( "SetSource qthelp://org.unixODBC.doc/doc/ODBCManageDataSourcesQ4/index.html" ) << QLatin1Char('\0') << endl; } void CODBCConfig::slotAccept() { /* \todo This can only be implemented after any widget which does something in saveData() tracks changes in its data such that an actual save is only done if data changes. */ printf( "[PAH][%s][%d] not ready for this call yet\n", __FILE__, __LINE__ ); if ( saveData() ) // done( QDialog::Accepted ); accept(); } void CODBCConfig::createIconMenu() { plistwidgetIcons = new QListWidget; plistwidgetIcons->setViewMode( QListView::IconMode ); plistwidgetIcons->setIconSize( QSize( 96, 84 ) ); plistwidgetIcons->setMovement( QListView::Static ); plistwidgetIcons->setMaximumWidth( 128 ); plistwidgetIcons->setSpacing( 12 ); QListWidgetItem *plistwidgetitemDataSourceNames = new QListWidgetItem ( plistwidgetIcons ); plistwidgetitemDataSourceNames->setTextAlignment( Qt::AlignHCenter ); plistwidgetitemDataSourceNames->setIcon( pManageDataSourceNames->windowIcon() ); plistwidgetitemDataSourceNames->setText( tr( "Data\nSource\nNames" ) ); QListWidgetItem *plistwidgetitemMonitor = new QListWidgetItem ( plistwidgetIcons ); plistwidgetitemMonitor->setTextAlignment( Qt::AlignHCenter ); plistwidgetitemMonitor->setIcon( pMonitor->windowIcon() ); plistwidgetitemMonitor->setText( tr( "Monitor" ) ); QListWidgetItem *plistwidgetitemAdvanced = new QListWidgetItem ( plistwidgetIcons ); plistwidgetitemAdvanced->setTextAlignment( Qt::AlignHCenter ); plistwidgetitemAdvanced->setIcon( pAdvanced->windowIcon() ); plistwidgetitemAdvanced->setText( tr( "Advanced" ) ); QListWidgetItem *plistwidgetitemAbout = new QListWidgetItem ( plistwidgetIcons ); plistwidgetitemAbout->setTextAlignment( Qt::AlignHCenter ); plistwidgetitemAbout->setIcon( pAbout->windowIcon() ); plistwidgetitemAbout->setText( tr( "About" ) ); plistwidgetIcons->setCurrentItem( plistwidgetitemDataSourceNames ); connect( plistwidgetIcons, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(slotChangePage(QListWidgetItem *, QListWidgetItem*)) ); } void CODBCConfig::createConfigWidgets() { pManageDataSourceNames = new CManageDataSourceNames; pMonitor = new CMonitor; pAdvanced = new CAdvanced; pAbout = new CAbout; pstackedwidgetConfigWidgets = new QStackedWidget; pstackedwidgetConfigWidgets->addWidget( new CPage( this, pManageDataSourceNames->windowTitle(), pManageDataSourceNames, pManageDataSourceNames->windowIcon(), pManageDataSourceNames->windowHelp() ) ); pstackedwidgetConfigWidgets->addWidget( new CPage( this, pMonitor->windowTitle(), pMonitor, pMonitor->windowIcon(), pMonitor->windowHelp() ) ); pstackedwidgetConfigWidgets->addWidget( new CPage( this, pAdvanced->windowTitle(), pAdvanced, pAdvanced->windowIcon(), pAdvanced->windowHelp() ) ); pstackedwidgetConfigWidgets->addWidget( new CPage( this, pAbout->windowTitle(), pAbout, pAbout->windowIcon(), pAbout->windowHelp() ) ); /* this will handle case where we delete a driver and it results in DSN's being deleted (those that use the driver) */ connect( pAdvanced, SIGNAL(signalChanged()), pManageDataSourceNames, SLOT(slotLoad()) ); } void CODBCConfig::loadState() { QSettings settings; int nW = settings.value( "CODBCConfig/w", geometry().width() ).toInt(); int nH = settings.value( "CODBCConfig/h", geometry().height() ).toInt(); resize( nW, nH ); } void CODBCConfig::saveState() { QSettings settings; settings.setValue( "CODBCConfig/w", width() ); settings.setValue( "CODBCConfig/h", height() ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CDSNWizardFini.h0000644000175000001440000000144311506076310016352 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CDSNWIZARDFINI_H #define CDSNWIZARDFINI_H #include "CODBCInst.h" #include /*! * \class CDSNWizardFini * \brief Last page of create data source name wizard. * * This page states that all needed info has been collected - click * and your done. * * \sa CDSNWizard */ class CDSNWizardFini : public QWizardPage { Q_OBJECT public: CDSNWizardFini( CDSNWizardData *pWizardData, QWidget *pwidgetParent = 0 ); int nextId() const; void initializePage(); void cleanupPage(); protected: CDSNWizardData *pWizardData; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizardDriver.cpp0000644000175000001440000000415311506076451017437 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizardDriver.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizardDriver.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizardDriver.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizardDriver[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; static const char qt_meta_stringdata_CDSNWizardDriver[] = { "CDSNWizardDriver\0" }; const QMetaObject CDSNWizardDriver::staticMetaObject = { { &QWizardPage::staticMetaObject, qt_meta_stringdata_CDSNWizardDriver, qt_meta_data_CDSNWizardDriver, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizardDriver::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizardDriver::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizardDriver::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizardDriver)) return static_cast(const_cast< CDSNWizardDriver*>(this)); return QWizardPage::qt_metacast(_clname); } int CDSNWizardDriver::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizardPage::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDataSourceNames.cpp0000644000175000001440000000454111506076451017475 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDataSourceNames.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDataSourceNames.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDataSourceNames.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDataSourceNames[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 18, 17, 17, 17, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CDataSourceNames[] = { "CDataSourceNames\0\0slotLoad()\0" }; const QMetaObject CDataSourceNames::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CDataSourceNames, qt_meta_data_CDataSourceNames, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDataSourceNames::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDataSourceNames::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDataSourceNames::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDataSourceNames)) return static_cast(const_cast< CDataSourceNames*>(this)); return QWidget::qt_metacast(_clname); } int CDataSourceNames::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotLoad(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitor.h0000644000175000001440000000176211506076310015372 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CMONITOR_H #define CMONITOR_H #include "CODBCInst.h" #define ODBC_HELP_MONITOR "unixODBC is unique in that it provides a rich means of monitoring ODBC activity." class CMonitorHandleCounts; class CMonitorProcesses; /*! * \class CMonitor * \brief Monitor widget for tabs/property pages. * * This widget shows stats such as how many handles are in use. * * This widget is used by the CODBCConfig tab/property widgets. * */ class CMonitor : public QTabWidget { Q_OBJECT public: CMonitor( QWidget* pwidgetParent = NULL ); virtual ~CMonitor(); QString windowHelp() { return QString( tr( ODBC_HELP_MONITOR ) ); } bool saveData() { return true; } protected: CMonitorHandleCounts * pMonitorHandleCounts; CMonitorProcesses * pMonitorProcesses; }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/ODBCDriverConnectPrompt.cpp0000644000175000001440000000523511506076310020571 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 1 * \date 2008 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include "CDriverConnectPrompt.h" /*! * \brief Manage Data Sources * * SQLManageDataSources done using Qt4. Here is where we enter into Qt4 'world'. * * \param hWnd * * \return BOOL */ static BOOL QT4DriverConnectPrompt( HWND hWnd, SQLCHAR *pszDataSourceName, SQLSMALLINT nMaxChars ) { /* * Here, we handle case where a non QT app has called us. Our approach here is a bit different * than what we used for Qt3 because we were getting segfault upon app exit. Here; we instantiate * with a 'new' and NOT 'delete' it. Its a work around. */ if ( !qApp ) { int argc = 1; char *argv[] = { "odbcinstQ4", NULL }; QApplication *pApplication = new QApplication( argc, argv ); QCoreApplication::setOrganizationName("unixODBC"); QCoreApplication::setOrganizationDomain("unixodbc.org"); QCoreApplication::setApplicationName("ODBC Driver Connect Prompt"); } // missing parent widget? Use desktop... QWidget *pWidget = (QWidget*)hWnd; if ( !pWidget ) pWidget = qApp->desktop(); // sanity check... if ( !pszDataSourceName ) { QMessageBox::critical( pWidget, "Select Data Source...", "Invalid buffer for data source name!" ); return false; } if ( nMaxChars <= 1 ) { QMessageBox::critical( pWidget, "Select Data Source...", "Invalid max char value for data source name!" ); return false; } // show dialog... CDriverConnectPrompt o( pszDataSourceName, nMaxChars, pWidget ); if ( o.exec() == QDialog::Accepted ) return true; return false; } #ifdef __cplusplus extern "C" { #endif /*! * \brief Plugin in entry point. * * This entry point is called to implement the SQLDriverConnectPrompt call. * * This plugin does it using Qt4. * * The typical way to get to here is to call into odbcinst via SQLDriverConnectPrompt. * * \return BOOL * \retval TRUE pszDataSourceName contains a viable data source name. * \retval FALSE User cancelled or something went wrong. * * \sa CDriverConnectPrompt * unixODBC::DriverManager::SQLDriverConnect * unixODBC::DriverManager::SQLDriverConnectPrompt */ BOOL ODBCDriverConnectPrompt( HWND hWnd, SQLCHAR *pszDataSourceName, SQLSMALLINT nMaxChars ) { return QT4DriverConnectPrompt( hWnd, pszDataSourceName, nMaxChars ); } #ifdef __cplusplus }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/mCManageDrivers.cpp0000644000175000001440000000524211506076451017205 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CManageDrivers.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CManageDrivers.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CManageDrivers.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CManageDrivers[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 2, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: signature, parameters, type, tag, flags 16, 15, 15, 15, 0x05, // slots: signature, parameters, type, tag, flags 38, 32, 15, 15, 0x0a, 0 // eod }; static const char qt_meta_stringdata_CManageDrivers[] = { "CManageDrivers\0\0signalChanged()\0pItem\0" "slotDoubleClick(QTableWidgetItem*)\0" }; const QMetaObject CManageDrivers::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_CManageDrivers, qt_meta_data_CManageDrivers, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CManageDrivers::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CManageDrivers::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CManageDrivers::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CManageDrivers)) return static_cast(const_cast< CManageDrivers*>(this)); return QWidget::qt_metacast(_clname); } int CManageDrivers::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: signalChanged(); break; case 1: slotDoubleClick((*reinterpret_cast< QTableWidgetItem*(*)>(_a[1]))); break; default: ; } _id -= 2; } return _id; } // SIGNAL 0 void CManageDrivers::signalChanged() { QMetaObject::activate(this, &staticMetaObject, 0, 0); } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/odbcinstQ4/CPropertiesDelegate.cpp0000644000175000001440000001353411506076310020065 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include "CPropertiesDelegate.h" #include "CPropertiesModel.h" #include "CFileSelector.h" CPropertiesDelegate::CPropertiesDelegate( QObject *pobjectParent ) : QItemDelegate( pobjectParent ) { } /* we could just load the value now and save all of the subsequent logic to do so - but we follow the Qt encouraged flow of things and defer to setEditorData */ QWidget *CPropertiesDelegate::createEditor( QWidget *pwidgetParent, const QStyleOptionViewItem &styleoptionviewitem, const QModelIndex &modelindex ) const { if ( modelindex.column() != 1 ) return 0; HODBCINSTPROPERTY pProperty = modelindex.model()->data( modelindex, Qt::EditRole ).value(); switch ( pProperty->nPromptType ) { case ODBCINST_PROMPTTYPE_LABEL: { QLabel *pLabel = new QLabel( pwidgetParent ); return pLabel; } break; case ODBCINST_PROMPTTYPE_LISTBOX: { QComboBox *pComboBox = new QComboBox( pwidgetParent ); for ( int n = 0; (pProperty->aPromptData)[n]; n++ ) { pComboBox->insertItem( 0, (pProperty->aPromptData)[n] ); } return pComboBox; } break; case ODBCINST_PROMPTTYPE_COMBOBOX: { QComboBox *pComboBox = new QComboBox( pwidgetParent ); for ( int n = 0; (pProperty->aPromptData)[n]; n++ ) { pComboBox->insertItem( 0, (pProperty->aPromptData)[n] ); } pComboBox->setEditable( true ); return pComboBox; } break; case ODBCINST_PROMPTTYPE_FILENAME: { CFileSelector *pFileSelector = new CFileSelector( CFileSelector::Driver, QString::null, true, true, pwidgetParent ); return pFileSelector; } break; case ODBCINST_PROMPTTYPE_HIDDEN: break; default: // PROMPTTYPE_TEXTEDIT and PROMPTTYPE_TEXTEDIT_PASSWORD { QLineEdit *pLineEdit = new QLineEdit( pwidgetParent ); if ( pProperty->nPromptType == ODBCINST_PROMPTTYPE_TEXTEDIT_PASSWORD ) pLineEdit->setEchoMode( QLineEdit::Password ) ; return pLineEdit; } break; } return 0; } void CPropertiesDelegate::setEditorData( QWidget *pwidgetEditor, const QModelIndex &modelindex ) const { HODBCINSTPROPERTY pProperty = modelindex.model()->data( modelindex, Qt::EditRole ).value(); switch ( pProperty->nPromptType ) { case ODBCINST_PROMPTTYPE_LABEL: break; case ODBCINST_PROMPTTYPE_LISTBOX: { QComboBox *pComboBox = static_cast( pwidgetEditor ); pComboBox->setCurrentIndex( pComboBox->findText( pProperty->szValue, Qt::MatchExactly ) ); } break; case ODBCINST_PROMPTTYPE_COMBOBOX: { QComboBox *pComboBox = static_cast( pwidgetEditor ); pComboBox->lineEdit()->setText( pProperty->szValue ); } break; case ODBCINST_PROMPTTYPE_FILENAME: { CFileSelector *pFileSelector = static_cast( pwidgetEditor ); pFileSelector->setText( pProperty->szValue ); } break; case ODBCINST_PROMPTTYPE_HIDDEN: break; default: // PROMPTTYPE_TEXTEDIT and PROMPTTYPE_TEXTEDIT_PASSWORD { QLineEdit *pLineEdit = static_cast( pwidgetEditor ); pLineEdit->setText( pProperty->szValue ); } break; } } /* we could just update the HODBCINSTPROPERTY value here but we go with the Qt encouraged flow of things and defer to the views setData */ void CPropertiesDelegate::setModelData( QWidget *pwidgetEditor, QAbstractItemModel *abstractitemmodel, const QModelIndex &modelindex) const { HODBCINSTPROPERTY pProperty = abstractitemmodel->data( modelindex, Qt::EditRole ).value(); switch ( pProperty->nPromptType ) { case ODBCINST_PROMPTTYPE_LABEL: break; case ODBCINST_PROMPTTYPE_LISTBOX: { QComboBox *pComboBox = static_cast( pwidgetEditor ); abstractitemmodel->setData( modelindex, pComboBox->currentText(), Qt::EditRole ); } break; case ODBCINST_PROMPTTYPE_COMBOBOX: { QComboBox *pComboBox = static_cast( pwidgetEditor ); abstractitemmodel->setData( modelindex, pComboBox->currentText(), Qt::EditRole ); } break; case ODBCINST_PROMPTTYPE_FILENAME: { CFileSelector *pFileSelector = static_cast( pwidgetEditor ); abstractitemmodel->setData( modelindex, pFileSelector->getText(), Qt::EditRole ); } break; case ODBCINST_PROMPTTYPE_HIDDEN: break; default: // PROMPTTYPE_TEXTEDIT and PROMPTTYPE_TEXTEDIT_PASSWORD { QLineEdit *pLineEdit = static_cast( pwidgetEditor ); abstractitemmodel->setData( modelindex, pLineEdit->text(), Qt::EditRole ); } break; } } void CPropertiesDelegate::updateEditorGeometry( QWidget *pwidgetEditor, const QStyleOptionViewItem &styleoptionviewitem, const QModelIndex &modelindex ) const { pwidgetEditor->setGeometry( styleoptionviewitem.rect ); } unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitorHandleCounts.h0000644000175000001440000000160611506076310017677 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #ifndef CMONITORHANDLECOUNTS_H #define CMONITORHANDLECOUNTS_H #include "CODBCInst.h" #include class CMonitorHandleCounts : public QWidget { Q_OBJECT public: CMonitorHandleCounts( QWidget* pwidgetParent = NULL ); virtual ~CMonitorHandleCounts(); protected: bool bEnabled; void * hStats; int nSliderMax; QTimer * pTimer; QLabel * plabelEnvironment; QLabel * plabelConnection; QLabel * plabelStatement; QLabel * plabelDescriptor; QSlider * psliderEnvironment; QSlider * psliderConnection; QSlider * psliderStatement; QSlider * psliderDescriptor; protected slots: void slotLoad(); }; #endif unixodbc-gui-qt-2.3.0/odbcinstQ4/CMonitorHandleCounts.cpp0000644000175000001440000001322511506076310020232 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include "CMonitorHandleCounts.h" CMonitorHandleCounts::CMonitorHandleCounts( QWidget *pwidgetParent ) : QWidget( pwidgetParent ) { setToolTip( tr( "number of active ODBC handles" ) ); setWhatsThis( tr( "This shows the number of active ODBC handles at any given moment. The values are automatically updated frequently. This is useful for debugging and performance monitoring." ) ); // lets assume, for the moment, that we can get monitoring info from DM... bEnabled = true; QGridLayout *pLayout = new QGridLayout; // setup labels to show current values as simple numbers... { plabelEnvironment = new QLabel( "0" ); plabelConnection = new QLabel( "0" ); plabelStatement = new QLabel( "0" ); plabelDescriptor = new QLabel( "0" ); pLayout->addWidget( plabelEnvironment, 0, 0 ); pLayout->addWidget( plabelConnection, 0, 1 ); pLayout->addWidget( plabelStatement, 0, 2 ); pLayout->addWidget( plabelDescriptor, 0, 3 ); } // setup sliders to show current values in an interesting manner... { // set default scale for sliders... nSliderMax = 10; psliderEnvironment = new QSlider; psliderConnection = new QSlider; psliderStatement = new QSlider; psliderDescriptor = new QSlider; psliderEnvironment->setInvertedAppearance( true ); psliderConnection->setInvertedAppearance( true ); psliderStatement->setInvertedAppearance( true ); psliderDescriptor->setInvertedAppearance( true ); // psliderEnvironment->setTickmarks( QSlider::Both ); // psliderConnection->setTickmarks( QSlider::Both ); // psliderStatement->setTickmarks( QSlider::Both ); // psliderDescriptor->setTickmarks( QSlider::Both ); psliderEnvironment->setMinimum( 0-nSliderMax ); psliderConnection->setMinimum( 0-nSliderMax ); psliderStatement->setMinimum( 0-nSliderMax ); psliderDescriptor->setMinimum( 0-nSliderMax ); psliderEnvironment->setMaximum( 0 ); psliderConnection->setMaximum( 0 ); psliderStatement->setMaximum( 0 ); psliderDescriptor->setMaximum( 0 ); pLayout->addWidget( psliderEnvironment, 1, 0 ); pLayout->addWidget( psliderConnection, 1, 1 ); pLayout->addWidget( psliderStatement, 1, 2 ); pLayout->addWidget( psliderDescriptor, 1, 3 ); } // setup some labels to show what each slider is for... { pLayout->addWidget( new QLabel( tr( "Env" ) ), 2, 0 ); pLayout->addWidget( new QLabel( tr( "Con" ) ), 2, 1 ); pLayout->addWidget( new QLabel( tr( "Sta" ) ), 2, 2 ); pLayout->addWidget( new QLabel( tr( "Des" ) ), 2, 3 ); } // get timer going... { hStats = 0; pTimer = new QTimer( this ); connect( pTimer, SIGNAL(timeout()), SLOT(slotLoad()) ); pTimer->start( 2000 ); // 1000 = 1 second } // adopt our layout... setLayout( pLayout ); } CMonitorHandleCounts::~CMonitorHandleCounts() { if ( hStats ) uodbc_close_stats( hStats ); } void CMonitorHandleCounts::slotLoad() { // only bother with this if we are visible... if ( !isVisible() ) return; if ( !bEnabled ) return; // init coms with DM but don't even bother the DM until (if) we become visible... if ( !hStats ) { if ( uodbc_open_stats( &hStats, UODBC_STATS_READ ) != 0 ) { // char szError[512]; // QMessageBox::critical( this, tr( "Monitor Handle Counts" ), QString( tr( "uodbc_open_stats failed\n%1" ) ).arg( uodbc_stats_error( szError, 512 ) ) ); // bEnabled = false; return; } } // get current handle counts... { uodbc_stats_retentry aStats[4]; uodbc_get_stats( hStats, -1, aStats, 4 ); // if ( uodbc_get_stats( hStats, -1, aStats, 4 ) == 4 ) // { // char szError[512]; // QMessageBox::critical( this, tr( "Monitor Handle Counts" ), QString( tr( "uodbc_get_stats failed\n%1" ) ).arg( uodbc_stats_error( szError, 512 ) ) ); // bEnabled = false; // return; // } // bump up our scale for the sliders as needed... if ( aStats[0].value.l_value > nSliderMax ) nSliderMax = aStats[0].value.l_value; if ( aStats[1].value.l_value > nSliderMax ) nSliderMax = aStats[1].value.l_value; if ( aStats[2].value.l_value > nSliderMax ) nSliderMax = aStats[2].value.l_value; if ( aStats[3].value.l_value > nSliderMax ) nSliderMax = aStats[3].value.l_value; // update UI bits... plabelEnvironment->setText( QString( "%1" ).arg( aStats[0].value.l_value ) ); psliderEnvironment->setMinimum( 0-nSliderMax ); psliderEnvironment->setValue( 0-aStats[0].value.l_value ); plabelConnection->setText( QString( "%1" ).arg( aStats[1].value.l_value ) ); psliderConnection->setMinimum( 0-nSliderMax ); psliderConnection->setValue( 0-aStats[1].value.l_value ); plabelStatement->setText( QString( "%1" ).arg( aStats[2].value.l_value ) ); psliderStatement->setMinimum( 0-nSliderMax ); psliderStatement->setValue( 0-aStats[2].value.l_value ); plabelDescriptor->setText( QString( "%1" ).arg( aStats[3].value.l_value ) ); psliderDescriptor->setMinimum( 0-nSliderMax ); psliderDescriptor->setValue( 0-aStats[3].value.l_value ); } } unixodbc-gui-qt-2.3.0/odbcinstQ4/GreatBritain.xpm0000644000175000001440000000721311506076310016565 00000000000000/* XPM */ static const char *xpmGreatBritain[] = { /* width height num_colors chars_per_pixel */ " 32 22 129 2", /* colors */ ".. c #000000", ".# c #6762cf", ".a c #da6666", ".b c #cc1d1d", ".c c #130bb8", ".d c #d0b4cc", ".e c #d23d3d", ".f c #352ec2", ".g c #d64e4e", ".h c #de797a", ".i c #a39cdb", ".j c #3e37c4", ".k c #554fca", ".l c #e59b9b", ".m c #b4aadb", ".n c #ddaab4", ".o c #e8aaab", ".p c #dfa3ac", ".q c #d96161", ".r c #c70707", ".s c #e18c8d", ".t c #e69f9f", ".u c #0b03b6", ".v c #e9aeaf", ".w c #aaa3de", ".x c #c80b0b", ".y c #cc1c1c", ".z c #dd7475", ".A c #db9fab", ".B c #e9b2b2", ".C c #edc3c3", ".D c #d23c3c", ".E c #d64d4d", ".F c #cd2020", ".G c #dda5b0", ".H c #b4b2e4", ".I c #1008b7", ".J c #e8e1ec", ".K c #ede2e7", ".L c #d8b1c2", ".M c #e59a9a", ".N c #1a13ba", ".O c #7873d4", ".P c #d96060", ".Q c #231cbc", ".R c #c80a0a", ".S c #d2d1ed", ".T c #8b87d9", ".U c #443dc5", ".V c #dd7374", ".W c #c4c2e9", ".X c #0800b5", ".Y c #edc2c2", ".Z c #d23b3b", ".0 c #eee3e7", ".1 c #cf2e2e", ".2 c #c60101", ".3 c #dc6c6c", ".4 c #ca1212", ".5 c #db6a6b", ".6 c #b4a8d9", ".7 c #e8a8a9", ".8 c #c70505", ".9 c #3d37c4", "#. c #c9c7ea", "## c #9893db", "#a c #df7f7f", "#b c #2f28c0", "#c c #d2d0ec", "#d c #e18c8e", "#e c #e69fa0", "#f c #0901b5", "#g c #ce2929", "#h c #db6767", "#i c #d0b3cc", "#j c #cf2d2d", "#k c #c60000", "#l c #e49697", "#m c #e8a7a8", "#n c #df7a7b", "#o c #cd2021", "#p c #de7a7a", "#q c #d54d4d", "#r c #cc2020", "#s c #c70404", "#t c #deabb5", "#u c #e07e7f", "#v c #d79fae", "#w c #231cbd", "#x c #0b04b6", "#y c #c80a0b", "#z c #8a87d9", "#A c #b9b7e6", "#B c #d2b6cd", "#C c #eab3b3", "#D c #cf2c2c", "#E c #6560cf", "#F c #918cd9", "#G c #cc1f1f", "#H c #a39cda", "#I c #1109b8", "#J c #c70303", "#K c #ede1e7", "#L c #d8b2c2", "#M c #ca1213", "#N c #b4a8da", "#O c #dd7071", "#P c #ce2727", "#Q c #443ec5", "#R c #dda1ac", "#S c #cb1a1a", "#T c #cf2b2b", "#U c #dea7b0", "#V c #2922be", "#W c #e9e3ec", "#X c #dab3c3", "#Y c #cf2d2e", "#Z c #d8b1c1", "#0 c #f0dddf", "#1 c #1b13ba", "#2 c #de7a7b", "#3 c #d95e5f", "#4 c #0e06b7", "#5 c #251ebd", "#6 c #e49a9b", "#7 c #e8abac", "#8 c #2f29c0", "#9 c #e08b8d", "a. c #e6a0a0", /* pixels */ "................................................................", "..#Y#L.k.X.X.X.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X.X.X.X#f.##t.F..", "...y.8#n.i#1.X.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X.X.X#5#N#h.2#P..", "..#K.P.2.1.L.k.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X#f.##t#o#J.V#W..", "..#b.W.B.y.8#p#H#1.X.X.X.X#I#l#k#k#v.X.X.X.X.X#5.6#h.2#g.Y.H.Q..", "...X.u.O#K.P.2#j#Z.k.X.X.X#I#l#k#k#v.X.X.X#f.#.n#r#J.V.J#E#f.X..", "...X.X.X#8.W.B.b.8.h#H#1.X#I#l#k#k#v.X.X#5.6.a.2#g.Y.H#w.X.X.X..", "...X.X.X.X#x.O#K.q.2#j#Z.k#I#l#k#k#v#f.#.n#r#s.z.J#E#f.X.X.X.X..", "..#4#4#4#4#4#4.f#.#C#G.x#a.w#l#k#k#U.m.3.r#T.C#A#V#4#4#4#4#4#4..", "..#6#6#6#6#6#6#6#6.l.l.M.M.l#3#k#k#O.l.M.M.l.l#6#6#6#6#6#6#6#6..", "..#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k..", "..#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k#k..", "...A.A.A.A.A.A.A.p.v#m#e#e#7.5#k#k#u.o#e#e.7.v#R.A.A.A.A.A.A.A..", "...X.X.X.X.X.X.j.Sa.#M.R#9###l#k#k.G.i.h.8.b#C.W#b.X.X.X.X.X.X..", "...X.X.X.X.I#z#0.g#k.D#i.U#I#l#k#k#v.X.k#Z#j.2.q.K.O.u.X.X.X.X..", "...X.X.X.j#c.t#M#y#9#F.c.X#I#l#k#k#v.X.X.N.i.h.8.b.B.W#b.X.X.X..", "...X.I.T#0#q#k.D#i#Q.X.X.X#I#l#k#k#v.X.X.X.X.k#Z#j.2.P#K.O.u.X..", "...9#c.t.4.x.s#F.c.X.X.X.X#I#l#k#k#v.X.X.X.X.X#1.i#p.8.y.B.W#8..", "..#0.E#k.e.d.U.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X.X.k.L.1.2.P.0..", "...4.x#d#F.c.X.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X.X.X#1.i#2.8#S..", "...Z#B#Q.X.X.X.X.X.X.X.X.X#I#l#k#k#v.X.X.X.X.X.X.X.X.X.X.k#X#D..", "................................................................" }; unixodbc-gui-qt-2.3.0/odbcinstQ4/mCDSNWizard.cpp0000644000175000001440000000440711506076451016265 00000000000000/**************************************************************************** ** Meta object code from reading C++ file 'CDSNWizard.h' ** ** Created: Mon Dec 27 12:48:57 2010 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "CDSNWizard.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'CDSNWizard.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_CDSNWizard[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 12, 11, 11, 11, 0x09, 0 // eod }; static const char qt_meta_stringdata_CDSNWizard[] = { "CDSNWizard\0\0slotHelp()\0" }; const QMetaObject CDSNWizard::staticMetaObject = { { &QWizard::staticMetaObject, qt_meta_stringdata_CDSNWizard, qt_meta_data_CDSNWizard, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &CDSNWizard::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *CDSNWizard::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *CDSNWizard::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_CDSNWizard)) return static_cast(const_cast< CDSNWizard*>(this)); return QWizard::qt_metacast(_clname); } int CDSNWizard::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWizard::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: slotHelp(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE unixodbc-gui-qt-2.3.0/README0000644000175000001440000000244611506076311012336 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ README --------------------------------------------------------------- Description: unixODBC-GUI-Qt is a compliment to unixODBC - providing the Qt-based GUI bits. License: All libraries are LGPL and can be used by commercial software. All programs are GPL. See; COPYING Parts: unixODBC-GUI-Qt includes the following; - a Qt based installer library/plugin (odbcinstQ4) - ODBC Administrator (ODBCManageDataSourcesQ4) - create Data Source Name wizard (ODBCCreateDataSourceQ4) - Data Manager (ODBCDataManagerQ4 - not done) - an interactive test program (ODBCTestQ4) How To Start: Look for and read README files with extensions of interest. Then read the INSTALL file. You can also jump into the doc directory and browse information there. And do not forget the online stuff. Some documentation may be a bit out of date the vast majority of it should be ok. Resources: http://unixodbc-gui-qt.sourceforge.net http://unixodbc-test.sourceforge.net http://unixodbc.sourceforge.net --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/README.qmake0000644000175000001440000000262011506076311013425 00000000000000*** THIS NEEDS TO BE UPDATED *** +-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ README qmake --------------------------------------------------------------- Description: Read this if you want to know how to build things using TrollTech's qmake. Why have qmake enter the picture? Frankly; I find the GNU auto tools to be a great idea - if you never have to figure them out. Unfortunately; many projects, this included, do not have the resources to allocate a GNU auto-tools specialist. This means that development time has to be spent in figuring it out. This is particularly bad for someone who just wants to configure the build for his/her own purposes. Also; at this time, the GNU auto-tools are not a simple solution for OSX, and MS users. Requirements: Guess what? You are going to need qmake. If you have Qt -dev installed then you probably already have qmake installed. If not then get it from your distro or directly from www.trolltech.com. You need Qt version 4 or better. Make & Install: The qmake project files have .pro & .pri extensions. You should read the root pro file (unixODBC-GUI-Qt.pro) as it has some details on building using qmake. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/qt.m40000644000175000001440000001032211506076311012334 00000000000000# FUN_CHECK_QT() # check for qt (headers, libs, progs and compilation) # substs QT_CXXFLAGS, QT_LDFLAGS, and QT_LIBS AC_DEFUN([FUN_CHECK_QT], [ AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PATH_X]) AC_REQUIRE([AC_PATH_XTRA]) AC_CACHE_SAVE AC_MSG_NOTICE([checking for Qt]) # Variables we want to fill... qt_dir="" qt_dir_include="" qt_dir_lib="" qt_dir_bin="" qt_libs="-lQtGui -lQtCore -lQtAssistantClient -lQtNetwork" MOC="" UIC="" # # Create configure option for include location... # AC_ARG_WITH([qt_dir_include], AC_HELP_STRING([--with-qt-include=DIR], [location of Qt include files]), [ qt_dir_include="$withval" ]) # # Create configure option for lib location... # AC_ARG_WITH([qt_dir_lib], AC_HELP_STRING([--with-qt-lib=DIR], [location of Qt lib files]), [ qt_dir_lib="$withval" ]) # # Create configure option for bin location... # AC_ARG_WITH([qt_dir_bin], AC_HELP_STRING([--with-qt-bin=DIR], [location of Qt bin files]), [ qt_dir_bin="$withval" ]) # # No include location given? Lets check a few known places. # if test "x$qt_dir_include" = x; then if test -d "/usr/include/QtCore"; then qt_dir_include="/usr/include" fi fi # # No lib location given? Lets check a few known places. # if test "x$qt_dir_lib" = x; then if test -e "/usr/lib64/libQtCore.so"; then qt_dir_lib="/usr/lib64" elif test -e "/usr/lib/libQtCore.so"; then qt_dir_lib="/usr/lib" fi fi # # No bin location given? Lets check a few known places. # if test "x$qt_dir_bin" = x; then if test -e "/usr/bin/moc"; then qt_dir_bin="/usr/bin" fi fi # # Still not found - we fail. # if test "x$qt_dir_include" = x; then AC_MSG_RESULT([no (include try specifying with --with-qt-include or try a different value)]) AC_MSG_ERROR([cannot find Qt!]) fi # # Still not found - we fail. # if test "x$qt_dir_lib" = x; then AC_MSG_RESULT([no (lib try specifying with --with-qt-lib or try a different value)]) AC_MSG_ERROR([cannot find Qt!]) fi # # Still not found - we fail. # if test "x$qt_dir_bin" = x; then AC_MSG_RESULT([no (bin try specifying with --with-qt-bin or try a different value)]) AC_MSG_ERROR([cannot find Qt!]) fi AC_MSG_RESULT([yes ($qt_dir_include)]) AC_MSG_RESULT([yes ($qt_dir_lib)]) AC_MSG_RESULT([yes ($qt_dir_bin)]) # qt_dir_include="$qt_dir"/include # qt_dir_lib="$qt_dir"/lib # qt_dir_bin="$qt_dir"/bin AC_CHECK_FILE([$qt_dir_include/QtGui/QWizard], [have_qtwizard=yes], [have_qtwizard=no]) AC_CHECK_FILE([$qt_dir_include/QtGui/QMdiArea], [have_qtmdiarea=yes], [have_qtmdiarea=no]) MOC="$qt_dir_bin"/moc UIC="$qt_dir_bin"/uic FUN_QT_COMPILE AC_SUBST(MOC) AC_SUBST(UIC) QT_CXXFLAGS="-I$qt_dir_include -I$qt_dir_include/QtCore -I$qt_dir_include/QtGui -I$qt_dir_include/QtAssistant -I$qt_dir_include/QtNetwork" AC_SUBST(QT_CXXFLAGS) QT_LDFLAGS="-L$qt_dir_lib" AC_SUBST(QT_LDFLAGS) QT_LIBS="$qt_libs" AC_SUBST(QT_LIBS) have_qt="yes" ])#FUN_CHECK_QT # FUN_QT_COMPILE # helper function for FUN_CHECK_QT # compile a simple qt program AC_DEFUN([FUN_QT_COMPILE], [ AC_LANG_PUSH(C++) AC_MSG_NOTICE([qt_dir_lib=$qt_dir_lib]) AC_MSG_NOTICE([LDFLAGS=$LDFLAGS]) AC_MSG_NOTICE([X_LIBS=$X_LIBS]) AC_MSG_CHECKING([whether a simple Qt program compiles]) ac_cxxflags_save="$CXXFLAGS" ac_ldflags_save="$LDFLAGS" ac_libs_save="$LIBS" CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS -I$qt_dir_include -I$qt_dir_include/QtCore -I$qt_dir_include/QtGui $X_CFLAGS $all_includes" LDFLAGS="$LDFLAGS -L$qt_dir_lib $X_LIBS $X_LDFLAGS" LIBS="$LIBS $PTHREAD_LIBS $qt_libs $X_EXTRA_LIBS -lXext -lX11 $X_PRE_LIBS $EXTRA_XLIBS" AC_TRY_LINK([ #include #include ], [QString s = "hello world"; QMessageBox::information(0, s, "no he is not"); return 0;], qt_compile=yes, qt_compile=no) CXXFLAGS="$ac_cxxflags_save" LDFLAGS="$ac_ldflags_save" LIBS="$ac_libs_save" AC_LANG_POP(C++) if test "x$qt_compile" = "xyes" ; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) AC_MSG_ERROR([cannot compile a Qt program!]) fi ])#FUN_QT_COMPILE unixodbc-gui-qt-2.3.0/ini/0000755000175000001440000000000011506076450012313 500000000000000unixodbc-gui-qt-2.3.0/ini/iniAppend.c0000644000175000001440000000442711506076306014315 00000000000000/********************************************************************************** * iniAppend * * - Appends Sections which do not exist in hIni. Ignores all else. * - Does not try to append 'missing' Entries to existing Sections (does not try to merge). * - hIni will become ReadOnly * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniAppend( HINI hIni, char *pszFileName ) { FILE *hFile; char szLine[INI_MAX_LINE+1]; char szObjectName[INI_MAX_OBJECT_NAME+1]; char szPropertyName[INI_MAX_PROPERTY_NAME+1]; char szPropertyValue[INI_MAX_PROPERTY_VALUE+1]; /* SANITY CHECK */ if ( strlen( pszFileName ) > ODBC_FILENAME_MAX ) return INI_ERROR; /* OPEN FILE */ hFile = uo_fopen( pszFileName, "r" ); if ( !hFile ) return INI_ERROR; iniObjectLast( hIni ); iniPropertyLast( hIni ); /* SCAN UNTIL WE GET TO AN OBJECT NAME OR EOF */ szLine[0] = '\0'; if ( _iniScanUntilObject( hIni, hFile, szLine ) == INI_SUCCESS ) { do { if ( szLine[0] == hIni->cLeftBracket ) { _iniObjectRead( hIni, szLine, szObjectName ); if ( iniObjectSeek( hIni, szObjectName ) == INI_SUCCESS ) { iniObjectLast( hIni ); iniPropertyLast( hIni ); if ( _iniScanUntilNextObject( hIni, hFile, szLine ) != INI_SUCCESS) break; } else { iniObjectInsert( hIni, szObjectName ); if ( uo_fgets( szLine, INI_MAX_LINE, hFile ) == NULL ) break; } } else if ( (strchr( hIni->cComment, szLine[0] ) == NULL ) && isalnum(szLine[0]) ) { _iniPropertyRead( hIni, szLine, szPropertyName, szPropertyValue ); iniPropertyInsert( hIni, szPropertyName, szPropertyValue ); if ( uo_fgets( szLine, INI_MAX_LINE, hFile ) == NULL ) break; } else { if ( uo_fgets( szLine, INI_MAX_LINE, hFile ) == NULL ) break; } } while( 1 ); } /* WE ARE NOT GOING TO TRY TO BE SMART ENOUGH TO SAVE THIS STUFF */ hIni->bReadOnly = 1; /* CLEANUP */ if ( hFile != NULL ) uo_fclose( hFile ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertyEOL.c0000644000175000001440000000122011506076306015256 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyEOL( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return TRUE; if ( hIni->hCurObject == NULL ) return TRUE; if ( hIni->hCurProperty == NULL ) return TRUE; return FALSE; } unixodbc-gui-qt-2.3.0/ini/_iniScanUntilObject.c0000644000175000001440000000301711506076306016266 00000000000000/********************************************************************************** * _iniScanUntilObject * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int _iniScanUntilObject( HINI hIni, FILE *hFile, char *pszLine ) { /* SCAN UNTIL WE GET TO AN OBJECT NAME OR EOF */ pszLine[0] = '\0'; while ( 1 ) { if ( uo_fgets( pszLine, INI_MAX_LINE, hFile ) == NULL ) { return INI_NO_DATA; } /* printf( "[PAH][%s][%d] Line=[%s]\n", __FILE__, __LINE__, pszLine ); */ if ( pszLine[0] == hIni->cLeftBracket ) { return INI_SUCCESS; } iniAllTrim( pszLine ); if ( pszLine[0] == '\0' ) { continue; } if ( strchr( hIni->cComment, pszLine[0] ) == NULL ) { return INI_ERROR; } } return INI_SUCCESS; } int _iniScanUntilNextObject( HINI hIni, FILE *hFile, char *pszLine ) { /* SCAN UNTIL WE GET TO AN OBJECT NAME OR EOF, SKIPPING BODY */ pszLine[0] = '\0'; while ( 1 ) { if ( uo_fgets( pszLine, INI_MAX_LINE, hFile ) == NULL ) { return INI_NO_DATA; } if ( pszLine[0] == hIni->cLeftBracket ) { return INI_SUCCESS; } } return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertySeekSure.c0000644000175000001440000000215111506076306016371 00000000000000/********************************************************************************** * iniPropertySeek * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 06.MAR.99 Added this func **************************************************/ #include "ini.h" int iniPropertySeekSure( HINI hIni, char *pszObject, char *pszProperty, char *pszValue ) { int nReturn; /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( !pszObject ) return INI_ERROR; if ( !pszProperty ) return INI_ERROR; if ( !pszValue ) return INI_ERROR; /* OK */ if ( (nReturn = iniPropertySeek( hIni, pszObject, pszProperty, "" )) == INI_NO_DATA ) { iniObjectSeekSure( hIni, pszObject ); return iniPropertyInsert( hIni, pszProperty, pszValue ); } else if ( nReturn == INI_SUCCESS ) return iniValue( hIni, pszValue ); return nReturn; } unixodbc-gui-qt-2.3.0/ini/iniPropertyFirst.c0000644000175000001440000000134711506076306015740 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyFirst( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; hIni->hCurProperty = hIni->hCurObject->hFirstProperty; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectInsert.c0000644000175000001440000000260711506076306015477 00000000000000/********************************************************************************** * iniObjectInsert * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniObjectInsert( HINI hIni, char *pszObject ) { HINIOBJECT hObject; char szObjectName[INI_MAX_OBJECT_NAME+1]; /* SANITY CHECK */ if ( hIni == NULL ) return INI_ERROR; if ( pszObject == NULL ) return INI_ERROR; strncpy( szObjectName, pszObject, INI_MAX_OBJECT_NAME ); iniAllTrim( szObjectName ); /* CREATE OBJECT STRUCT */ hObject = malloc( sizeof(INIOBJECT) ); hIni->hCurProperty = NULL; hObject->hFirstProperty = NULL; hObject->hLastProperty = NULL; hObject->nProperties = 0; hObject->pNext = NULL; hObject->pPrev = NULL; strncpy( hObject->szName, szObjectName, INI_MAX_OBJECT_NAME ); /* APPEND TO OBJECT LIST */ if ( hIni->hFirstObject == NULL ) hIni->hFirstObject = hObject; hObject->pPrev = hIni->hLastObject; hIni->hLastObject = hObject; if ( hObject->pPrev != NULL ) hObject->pPrev->pNext = hObject; hIni->hCurObject = hObject; hIni->nObjects++; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/README0000644000175000001440000000214411506076306013114 00000000000000*************************************************************** * This code is LGPL. You CAN make commercial solutions using * * LGPL software. * * * * Peter Harvey 21.FEB.99 pharvey@codebydesign.com * *************************************************************** +-------------------------------------------------------------+ | unixODBC | | INI lib (libini.so) | +-------------------------------------------------------------+ This library provides some usefull functions for processing INI files (such as odbc.ini). It is heavily used in unixODBC by the ODBCConfig and unixODBC Driver Config libs. Peter Harvey pharvey@codebydesign.com 22.MAR.99 +-------------------------------------------------------------+ | Please visit; | | www.unixodbc.org | +-------------------------------------------------------------+ unixodbc-gui-qt-2.3.0/ini/_iniDump.c0000644000175000001440000000511711506076306014147 00000000000000/********************************************************************************** * _iniDump * * Dump contents to hStream. * * - iniCommit calls this. You can bypass iniCommit restrictions to get some debugging information by calling directly. * - Make sure the stream is open before calling. * - leaves list position at iniObjectFirst() * - always returns true * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int __iniDebug( HINI hIni ) { /* SANITY CHECK */ if ( hIni == NULL ) return INI_ERROR; /* SCAN OBJECTS */ iniObjectFirst( hIni ); while ( iniObjectEOL( hIni ) == FALSE ) { printf( "%c%s%c\n", hIni->cLeftBracket, hIni->hCurObject->szName, hIni->cRightBracket ); iniPropertyFirst( hIni ); while ( iniPropertyEOL( hIni ) == FALSE ) { printf( "%s\t\t%c %s\n", hIni->hCurProperty->szName, hIni->cEqual, hIni->hCurProperty->szValue ); iniPropertyNext( hIni ); } printf( "\n" ); iniPropertyFirst( hIni ); iniObjectNext( hIni ); } iniObjectFirst( hIni ); return INI_SUCCESS; } int _iniDump( HINI hIni, FILE *hStream ) { /* SANITY CHECK */ if ( hIni == NULL ) return INI_ERROR; if ( !hStream ) return INI_ERROR; /* SCAN OBJECTS */ iniObjectFirst( hIni ); while ( iniObjectEOL( hIni ) == FALSE ) { #ifdef __OS2__ if ( hIni->iniFileType == 0 ) #endif uo_fprintf( hStream, "%c%s%c\n", hIni->cLeftBracket, hIni->hCurObject->szName, hIni->cRightBracket ); iniPropertyFirst( hIni ); while ( iniPropertyEOL( hIni ) == FALSE ) { #ifdef __OS2__ if ( hIni->iniFileType == 0 ) { #endif uo_fprintf( hStream, "%s\t\t%c %s\n", hIni->hCurProperty->szName, hIni->cEqual, hIni->hCurProperty->szValue ); #ifdef __OS2__ } else { iniOS2Write( hStream, hIni->hCurObject->szName, hIni->hCurProperty->szName, hIni->hCurProperty->szValue); } #endif iniPropertyNext( hIni ); } #ifdef __OS2__ if ( hIni->iniFileType == 0 ) #endif uo_fprintf( hStream, "\n" ); iniPropertyFirst( hIni ); iniObjectNext( hIni ); } iniObjectFirst( hIni ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniOpen.c0000644000175000001440000002746211506076306014013 00000000000000/********************************************************************************** * iniOpen * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 06.MAR.99 Can now create file-less INI. Pass NULL for * pszFileName. Then copy a file name into hIni->szFileName * before calling iniCommit. **************************************************/ #include "ini.h" /* * Changes sent by MQJoe, to avoid limit on number of open file handles */ /*************************************************** * Override fstream command to overcome 255 file * handle limit ***************************************************/ #include #ifdef HAVE_SYS_STAT_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #include #include #if defined( HAVE_VSNPRINTF ) && defined( USE_LL_FIO ) FILE *uo_fopen( const char *filename, const char *mode ) { int fp; long oMode = 0, pMode = 0; pMode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH; switch ( mode[0] ) { case 'r': oMode = O_RDONLY; break; case 'w': oMode = O_RDWR | O_CREAT | O_TRUNC; break; case 'o': oMode = O_RDWR | O_CREAT | O_TRUNC; break; case 'a': oMode = O_CREAT | O_APPEND | O_WRONLY; break; default: return FALSE; } fp = open(filename, oMode, pMode ); return(fp != -1) ? (FILE*)fp : NULL; } int uo_fclose( FILE *stream ) { close((int)stream); return 0; } char *uo_fgets( char *buffer, int n, FILE *stream ) { int fp = (int)stream; char ch; int i = 0, c = 0; buffer[0] = 0; do { c = read(fp, &ch, 1); if ( c == 1 ) { buffer[i++] = ch; if ( ch == '\n' ) break; } } while ( c && i < n ); buffer[i] = 0; return(c) ? buffer : NULL; } int uo_vfprintf( FILE *stream, const char *fmt, va_list ap) { int fp = (int)stream; long lNeededSize = 256; char* szBuffer = NULL; long lBufSize = 0; int r = 0; do { if ( lNeededSize > lBufSize ) { if ( szBuffer ) free(szBuffer); szBuffer = (char*)malloc(lNeededSize); lBufSize = lNeededSize; } lNeededSize = vsnprintf(szBuffer, lBufSize, fmt, ap); lNeededSize++; } while ( lNeededSize > lBufSize ); r = write(fp, szBuffer, (lNeededSize - 1) ); if ( szBuffer ) free(szBuffer); return r; } int uo_fprintf( FILE *stream, const char *fmt, ...) { int r; va_list ap; va_start(ap, fmt); r = uo_vfprintf(stream,fmt,ap); va_end(ap); return r; } #endif /***************************************************/ #ifdef __OS2__ int iniOpen( HINI *hIni, char *pszFileName, char *cComment, char cLeftBracket, char cRightBracket, char cEqual, int bCreate, int bFileType ) { FILE *hFile; char szLine[INI_MAX_LINE+1]; char szObjectName[INI_MAX_OBJECT_NAME+1]; char szPropertyName[INI_MAX_PROPERTY_NAME+1]; char szPropertyValue[INI_MAX_PROPERTY_VALUE+1]; int nValidFile; char *ObjectList; char *PropertyList; char *ValueList; int numberObject; int ObjectNumber; int numberProperty; int PropertyNumber; int nValidProperty; char *tmpObjectName; char *tmpPropertyName; char *tmpProperyValue; #ifdef __OS2DEBUG__ printf("iniOpen entered \n"); #endif /* INIT STATEMENT */ *hIni = malloc( sizeof(INI) ); if ( pszFileName && pszFileName != STDINFILE ) strncpy((*hIni)->szFileName, pszFileName, ODBC_FILENAME_MAX ); else if ( pszFileName == STDINFILE ) strncpy((*hIni)->szFileName, "stdin", ODBC_FILENAME_MAX ); else strncpy((*hIni)->szFileName, "", ODBC_FILENAME_MAX ); strcpy( (*hIni)->cComment, cComment ); (*hIni)->cLeftBracket = cLeftBracket; (*hIni)->cRightBracket = cRightBracket; (*hIni)->cEqual = cEqual; (*hIni)->bChanged = FALSE; (*hIni)->hCurObject = NULL; (*hIni)->hFirstObject = NULL; (*hIni)->hLastObject = NULL; (*hIni)->nObjects = 0; (*hIni)->bReadOnly = 0; (*hIni)->iniFileType = bFileType; #ifdef __OS2DEBUG__ printf("iniOpen file is mode %d \n", bFileType); #endif /* OPEN FILE */ if ( pszFileName ) { if ( pszFileName == STDINFILE ) { hFile = stdin; (*hIni)->iniFileType = 0; /* stdin is always text */ } else { if ( (*hIni)->iniFileType == 0 ) hFile = uo_fopen( pszFileName, "r" ); else hFile = (FILE *)iniOS2Open( pszFileName); } if ( !hFile ) { /* * This could fail because of something other than the file not existing... */ if ( bCreate == TRUE ) { if ( (*hIni)->iniFileType == 0 ) hFile = uo_fopen( pszFileName, "w" ); else hFile = (FILE *)iniOS2Open( pszFileName); } } if ( !hFile ) { free( *hIni ); *hIni = NULL; return INI_ERROR; } if ( (*hIni)->iniFileType == 1 ) { nValidFile = INI_ERROR; ObjectList = (char *)iniOS2LoadObjectList( hFile, &numberObject); if ( numberObject > 0 ) { nValidFile = INI_SUCCESS; ObjectNumber = 0; do { tmpObjectName = (char *)(ObjectList + ObjectNumber); strcpy(szObjectName, tmpObjectName); iniObjectInsert( (*hIni), szObjectName ); PropertyList = (char *)iniOS2LoadPropertyList( hFile, szObjectName, &numberProperty); if ( numberProperty > 0 ) { PropertyNumber = 0; do { tmpPropertyName = PropertyList + PropertyNumber; strcpy(szPropertyName, tmpPropertyName); ValueList = (char *)iniOS2Read( hFile, szObjectName, szPropertyName, szPropertyValue); strcpy(szPropertyValue, ValueList); iniPropertyInsert( (*hIni), szPropertyName, szPropertyValue); PropertyNumber = PropertyNumber + strlen(szPropertyName) + 1; } while ( PropertyNumber < numberProperty ); free(PropertyList); } ObjectNumber = ObjectNumber + strlen(szObjectName) + 1; } while ( ObjectNumber < numberObject ); free(ObjectList); } } else { nValidFile = _iniScanUntilObject( *hIni, hFile, szLine ); if ( nValidFile == INI_SUCCESS ) { char *ptr; do { if ( szLine[0] == cLeftBracket ) { _iniObjectRead( (*hIni), szLine, szObjectName ); iniObjectInsert( (*hIni), szObjectName ); } else if ( (strchr( cComment, szLine[0] ) == NULL ) && !isspace(szLine[0]) ) { _iniPropertyRead( (*hIni), szLine, szPropertyName, szPropertyValue ); iniPropertyInsert( (*hIni), szPropertyName, szPropertyValue ); } } while ( (ptr = uo_fgets( szLine, INI_MAX_LINE, hFile )) != NULL ); } } if ( nValidFile == INI_ERROR ) { /* INVALID FILE */ if ( hFile != NULL ) { if ( (*hIni)->iniFileType == 0 ) uo_fclose( hFile ); else iniOS2Close(hFile); } free( *hIni ); *hIni = NULL; return INI_ERROR; } /* CLEANUP */ if ( hFile != NULL ) { if ( (*hIni)->iniFileType == 0 ) { uo_fclose( hFile ); } else iniOS2Close(hFile); } iniObjectFirst( *hIni ); } /* if file given */ return INI_SUCCESS; } #else int iniOpen( HINI *hIni, char *pszFileName, char *cComment, char cLeftBracket, char cRightBracket, char cEqual, int bCreate ) { FILE *hFile; char szLine[INI_MAX_LINE+1]; char szObjectName[INI_MAX_OBJECT_NAME+1]; char szPropertyName[INI_MAX_PROPERTY_NAME+1]; char szPropertyValue[INI_MAX_PROPERTY_VALUE+1]; int nValidFile; /* INIT STATEMENT */ *hIni = malloc( sizeof(INI) ); if ( pszFileName && pszFileName != STDINFILE ) strncpy((*hIni)->szFileName, pszFileName, ODBC_FILENAME_MAX ); else if ( pszFileName == STDINFILE ) strncpy((*hIni)->szFileName, "stdin", ODBC_FILENAME_MAX ); else strncpy((*hIni)->szFileName, "", ODBC_FILENAME_MAX ); strcpy( (*hIni)->cComment, cComment ); (*hIni)->cLeftBracket = cLeftBracket; (*hIni)->cRightBracket = cRightBracket; (*hIni)->cEqual = cEqual; (*hIni)->bChanged = FALSE; (*hIni)->hCurObject = NULL; (*hIni)->hFirstObject = NULL; (*hIni)->hLastObject = NULL; (*hIni)->nObjects = 0; (*hIni)->bReadOnly = 0; /* OPEN FILE */ if ( pszFileName ) { errno = 0; if ( pszFileName == STDINFILE ) { hFile = stdin; } else { hFile = uo_fopen( pszFileName, "r" ); } if ( ( !hFile ) && ( errno != ENFILE ) && ( errno != EMFILE ) && ( errno != ENOMEM ) && ( errno != EACCES ) ) { /* * This could fail because of something other than the file not existing... */ if ( bCreate == TRUE ) { hFile = uo_fopen( pszFileName, "w" ); } } if ( !hFile ) { free( *hIni ); *hIni = NULL; return INI_ERROR; } nValidFile = _iniScanUntilObject( *hIni, hFile, szLine ); if ( nValidFile == INI_SUCCESS ) { char *ptr; do { if ( szLine[0] == cLeftBracket ) { _iniObjectRead( (*hIni), szLine, szObjectName ); iniObjectInsert( (*hIni), szObjectName ); } else if ( (strchr( cComment, szLine[0] ) == NULL ) && !isspace(szLine[0]) ) { _iniPropertyRead( (*hIni), szLine, szPropertyName, szPropertyValue ); iniPropertyInsert( (*hIni), szPropertyName, szPropertyValue ); } } while ( (ptr = uo_fgets( szLine, INI_MAX_LINE, hFile )) != NULL ); } else if ( nValidFile == INI_ERROR ) { /* INVALID FILE */ if ( hFile != NULL ) uo_fclose( hFile ); free( *hIni ); *hIni = NULL; return INI_ERROR; } /* CLEANUP */ if ( hFile != NULL ) uo_fclose( hFile ); iniObjectFirst( *hIni ); } /* if file given */ return INI_SUCCESS; } #endif unixodbc-gui-qt-2.3.0/ini/iniObjectUpdate.c0000644000175000001440000000134211506076306015450 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniObjectUpdate( HINI hIni, char *pszObject ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_ERROR; /* Ok */ strncpy( hIni->hCurObject->szName, pszObject, INI_MAX_OBJECT_NAME ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/_iniObjectRead.c0000644000175000001440000000214611506076306015243 00000000000000/********************************************************************************** * _iniObjectRead * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int _iniObjectRead( HINI hIni, char *szLine, char *pszObjectName ) { int nChar; /* SANITY CHECK */ if ( hIni == NULL ) return INI_ERROR; /* SCAN LINE TO EXTRACT OBJECT NAME WITH NO BRACKETS */ nChar = 1; while ( 1 ) { if ( (szLine[nChar] == '\0') || (nChar == INI_MAX_OBJECT_NAME) ) { pszObjectName[nChar-1] = '\0'; break; } if ( szLine[nChar] == hIni->cRightBracket ) { pszObjectName[nChar-1] = '\0'; break; } pszObjectName[nChar-1] = szLine[nChar]; nChar++; } iniAllTrim( pszObjectName ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectEOL.c0000644000175000001440000000113711506076306014647 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniObjectEOL( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return TRUE; return FALSE; } unixodbc-gui-qt-2.3.0/ini/iniToUpper.c0000644000175000001440000000114111506076306014472 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniToUpper( char *pszString ) { int n = 0; for ( n = 0; pszString[n] != '\0'; n++ ) pszString[n] = toupper((unsigned char)pszString[n]); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniDelete.c0000644000175000001440000000137011506076306014302 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniDelete * ******************************/ int iniDelete( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; /* REMOVE ALL SUBORDINATE INFO */ iniObjectFirst( hIni ); while ( iniObjectDelete( hIni ) == INI_SUCCESS ) { } return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectSeek.c0000644000175000001440000000161611506076306015121 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found **************************************************/ #include "ini.h" int iniObjectSeek( HINI hIni, char *pszObject ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; iniObjectFirst( hIni ); while ( iniObjectEOL( hIni ) == FALSE ) { if ( strcasecmp( pszObject, hIni->hCurObject->szName ) == 0 ) return INI_SUCCESS; iniObjectNext( hIni ); } return INI_NO_DATA; } unixodbc-gui-qt-2.3.0/ini/iniPropertySeek.c0000644000175000001440000000262711506076306015542 00000000000000/********************************************************************************** * iniPropertySeek * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertySeek( HINI hIni, char *pszObject, char *pszProperty, char *pszValue ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; /* Ok */ iniObjectFirst( hIni ); while ( iniObjectEOL( hIni ) != TRUE ) { if ( pszObject[0] == '\0' || strcasecmp( pszObject, hIni->hCurObject->szName ) == 0 ) { /* EITHER THE OBJECT HAS BEEN FOUND OR THE OBJECT DOES NOT MATTER */ /* IN ANYCASE LETS SCAN FOR PROPERTY */ iniPropertyFirst( hIni ); while ( iniPropertyEOL( hIni ) != TRUE ) { if ( pszProperty[0] == '\0' || strcasecmp( pszProperty, hIni->hCurProperty->szName ) == 0 ) { if ( pszValue[0] == '\0' || strcasecmp( pszValue, hIni->hCurProperty->szValue ) == 0 ) { /* FOUND IT !! */ return INI_SUCCESS; } } iniPropertyNext( hIni ); } if ( pszObject[0] != '\0' ) { hIni->hCurObject = NULL; return INI_NO_DATA; } } iniObjectNext( hIni ); } return INI_NO_DATA; } unixodbc-gui-qt-2.3.0/ini/iniValue.c0000644000175000001440000000152711506076306014160 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniValue * ******************************/ int iniValue( HINI hIni, char *pszValue ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; strncpy( pszValue, hIni->hCurProperty->szValue, INI_MAX_PROPERTY_VALUE ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/_iniPropertyRead.c0000644000175000001440000000206211506076306015656 00000000000000/********************************************************************************** * _iniPropertyRead * * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int _iniPropertyRead( HINI hIni, char *szLine, char *pszPropertyName, char *pszPropertyValue ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_ERROR; /* SCAN LINE TO EXTRACT PROPERTY NAME AND VALUE WITH NO TRAILING SPACES */ strcpy( pszPropertyName, "" ); strcpy( pszPropertyValue, "" ); iniElement( szLine, '=', '\0', 0, pszPropertyName, INI_MAX_PROPERTY_NAME ); iniElementToEnd( szLine, '=', '\0', 1, pszPropertyValue, INI_MAX_PROPERTY_VALUE ); iniAllTrim( pszPropertyName ); iniAllTrim( pszPropertyValue ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniCommit.c0000644000175000001440000000221211506076306014324 00000000000000/********************************************************************************** * iniCommit * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniCommit( HINI hIni ) { FILE *hFile; /* SANITY CHECK */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->bReadOnly ) return INI_ERROR; /* OPEN FILE */ #ifdef __OS2__ if (hIni->iniFileType == 0) { #endif hFile = uo_fopen( hIni->szFileName, "w" ); #ifdef __OS2__ } else { hFile = (FILE *)iniOS2Open (hIni->szFileName); } #endif if ( !hFile ) return INI_ERROR; _iniDump( hIni, hFile ); /* CLEANUP */ if ( hFile != NULL ) { #ifdef __OS2__ if (hIni->iniFileType == 0) #endif uo_fclose( hFile ); #ifdef __OS2__ else iniOS2Close( hFile); #endif } return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniElement.c0000644000175000001440000000771311506076306014500 00000000000000/********************************************************************************** * iniElement * * Use when; * 1. strtok is scary (also does not handle empty elements well) * 2. strstr is not portable * 3. performance is less important than simplicity and the above (feel free to improve on this) * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniElement( char *pszData, char cSeperator, char cTerminator, int nElement, char *pszElement, int nMaxElement ) { int nCurElement = 0; int nChar = 0; int nCharInElement = 0; memset( pszElement, '\0', nMaxElement ); for ( ; nCurElement <= nElement && (nCharInElement+1) < nMaxElement; nChar++ ) { /* check for end of data */ if ( cSeperator != cTerminator && pszData[nChar] == cTerminator ) { break; } if ( cSeperator == cTerminator && pszData[nChar] == cSeperator && pszData[nChar+1] == cTerminator ) { break; } /* check for end of element */ if ( pszData[nChar] == cSeperator ) { nCurElement++; } else if ( nCurElement == nElement ) { pszElement[nCharInElement] = pszData[nChar]; nCharInElement++; } } if ( pszElement[0] == '\0' ) { return INI_NO_DATA; } return INI_SUCCESS; } /* Like iniElement(), but rather than a terminator, the input buffer length is given */ int iniElementMax( char *pData, char cSeperator, int nDataLen, int nElement, char *pszElement, int nMaxElement ) { int nCurElement = 0; int nChar = 0; int nCharInElement = 0; memset( pszElement, '\0', nMaxElement ); for ( ; nCurElement <= nElement && (nCharInElement+1) < nMaxElement && nChar < nDataLen ; nChar++ ) { /* check for end of element */ if ( pData[nChar] == cSeperator ) { nCurElement++; } else if ( nCurElement == nElement ) { pszElement[nCharInElement] = pData[nChar]; nCharInElement++; } } if ( pszElement[0] == '\0' ) { return INI_NO_DATA; } return INI_SUCCESS; } int iniElementEOL( char *pszData, char cSeperator, char cTerminator, int nElement, char *pszElement, int nMaxElement ) { int nCurElement = 0; int nChar = 0; int nCharInElement = 0; memset( pszElement, '\0', nMaxElement ); for ( ;(nCharInElement+1) < nMaxElement; nChar++ ) { /* check for end of data */ if ( cSeperator != cTerminator && pszData[nChar] == cTerminator ) { break; } if ( cSeperator == cTerminator && pszData[nChar] == cSeperator && pszData[nChar+1] == cTerminator ) { break; } /* check for end of element */ if ( pszData[nChar] == cSeperator && nCurElement < nElement ) { nCurElement++; } else if ( nCurElement >= nElement ) { pszElement[nCharInElement] = pszData[nChar]; nCharInElement++; } } if ( pszElement[0] == '\0' ) { return INI_NO_DATA; } return INI_SUCCESS; } int iniElementToEnd( char *pszData, char cSeperator, char cTerminator, int nElement, char *pszElement, int nMaxElement ) { int nCurElement = 0; int nChar = 0; int nCharInElement = 0; memset( pszElement, '\0', nMaxElement ); for ( ; nCurElement <= nElement && (nCharInElement+1) < nMaxElement; nChar++ ) { /* check for end of data */ if ( cSeperator != cTerminator && pszData[nChar] == cTerminator ) break; if ( cSeperator == cTerminator && pszData[nChar] == cSeperator && pszData[nChar+1] == cTerminator ) break; /* check for end of element */ if ( pszData[nChar] == cSeperator && ( nCurElement < nElement )) nCurElement++; else if ( nCurElement == nElement ) { pszElement[nCharInElement] = pszData[nChar]; nCharInElement++; } } if ( pszElement[0] == '\0' ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectFirst.c0000644000175000001440000000146611506076306015324 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found **************************************************/ #include "ini.h" int iniObjectFirst( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; hIni->hCurObject = hIni->hFirstObject; iniPropertyFirst( hIni ); if ( hIni->hCurObject == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniClose.c0000644000175000001440000000152211506076306014144 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniClose * * 1. free memory previously allocated for HINI * 2. DO NOT save any changes (see iniCommit) ******************************/ int iniClose( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; hIni->hCurObject = hIni->hFirstObject; while ( iniObjectDelete( hIni ) == INI_SUCCESS ) { } free( hIni ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniGetBookmark.c0000644000175000001440000000146211506076306015307 00000000000000/********************************************************************************** * iniGetBookmark * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 18.MAR.99 Created. **************************************************/ #include "ini.h" int iniGetBookmark( HINI hIni, HINIBOOKMARK hIniBookmark ) { if ( hIni == NULL || hIniBookmark == NULL ) return INI_ERROR; hIniBookmark->hIni = hIni; hIniBookmark->hCurObject = hIni->hCurObject; hIniBookmark->hCurProperty = hIni->hCurProperty; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/Makefile.am0000644000175000001440000000146411506076306014274 00000000000000noinst_LTLIBRARIES = libinilc.la libinilc_la_LDFLAGS = -no-undefined libinilc_la_SOURCES = \ iniAllTrim.c \ iniAppend.c \ iniDelete.c \ iniClose.c \ iniCommit.c \ iniObject.c \ iniObjectFirst.c \ iniObjectLast.c \ iniObjectNext.c \ iniObjectSeek.c \ iniObjectSeekSure.c \ iniObjectUpdate.c \ iniObjectInsert.c \ iniObjectDelete.c \ iniObjectEOL.c \ iniOpen.c \ iniProperty.c \ iniPropertyFirst.c \ iniPropertyLast.c \ iniPropertyNext.c \ iniPropertySeek.c \ iniPropertySeekSure.c \ iniPropertyUpdate.c \ iniPropertyInsert.c \ iniPropertyDelete.c \ iniPropertyEOL.c \ iniPropertyValue.c \ iniValue.c \ iniToUpper.c \ iniElement.c \ iniElementCount.c \ iniGetBookmark.c \ iniGotoBookmark.c \ iniCursor.c \ _iniObjectRead.c \ _iniPropertyRead.c \ _iniDump.c \ _iniScanUntilObject.c unixodbc-gui-qt-2.3.0/ini/iniPropertyInsert.c0000644000175000001440000000266111506076306016115 00000000000000/********************************************************************************** * iniPropertyInsert * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyInsert( HINI hIni, char *pszProperty, char *pszValue ) { HINIOBJECT hObject; HINIPROPERTY hProperty; /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_ERROR; if ( pszProperty == NULL ) return INI_ERROR; hObject = hIni->hCurObject; /* CREATE PROPERTY STRUCT */ hProperty = (HINIPROPERTY)malloc( sizeof(INIPROPERTY) ); strncpy( hProperty->szName, pszProperty, INI_MAX_PROPERTY_NAME ); strncpy( hProperty->szValue, pszValue, INI_MAX_PROPERTY_VALUE ); hProperty->pNext = NULL; iniAllTrim( hProperty->szName ); iniAllTrim( hProperty->szValue ); /* APPEND TO LIST */ if ( hObject->hFirstProperty == NULL ) hObject->hFirstProperty = hProperty; hProperty->pPrev = hObject->hLastProperty; hObject->hLastProperty = hProperty; if ( hProperty->pPrev != NULL ) hProperty->pPrev->pNext = hProperty; hIni->hCurProperty = hProperty; hObject->nProperties++; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/Makefile.in0000644000175000001440000004565511506076376014326 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = ini DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libinilc_la_LIBADD = am_libinilc_la_OBJECTS = iniAllTrim.lo iniAppend.lo iniDelete.lo \ iniClose.lo iniCommit.lo iniObject.lo iniObjectFirst.lo \ iniObjectLast.lo iniObjectNext.lo iniObjectSeek.lo \ iniObjectSeekSure.lo iniObjectUpdate.lo iniObjectInsert.lo \ iniObjectDelete.lo iniObjectEOL.lo iniOpen.lo iniProperty.lo \ iniPropertyFirst.lo iniPropertyLast.lo iniPropertyNext.lo \ iniPropertySeek.lo iniPropertySeekSure.lo iniPropertyUpdate.lo \ iniPropertyInsert.lo iniPropertyDelete.lo iniPropertyEOL.lo \ iniPropertyValue.lo iniValue.lo iniToUpper.lo iniElement.lo \ iniElementCount.lo iniGetBookmark.lo iniGotoBookmark.lo \ iniCursor.lo _iniObjectRead.lo _iniPropertyRead.lo _iniDump.lo \ _iniScanUntilObject.lo libinilc_la_OBJECTS = $(am_libinilc_la_OBJECTS) libinilc_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(libinilc_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libinilc_la_SOURCES) DIST_SOURCES = $(libinilc_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ noinst_LTLIBRARIES = libinilc.la libinilc_la_LDFLAGS = -no-undefined libinilc_la_SOURCES = \ iniAllTrim.c \ iniAppend.c \ iniDelete.c \ iniClose.c \ iniCommit.c \ iniObject.c \ iniObjectFirst.c \ iniObjectLast.c \ iniObjectNext.c \ iniObjectSeek.c \ iniObjectSeekSure.c \ iniObjectUpdate.c \ iniObjectInsert.c \ iniObjectDelete.c \ iniObjectEOL.c \ iniOpen.c \ iniProperty.c \ iniPropertyFirst.c \ iniPropertyLast.c \ iniPropertyNext.c \ iniPropertySeek.c \ iniPropertySeekSure.c \ iniPropertyUpdate.c \ iniPropertyInsert.c \ iniPropertyDelete.c \ iniPropertyEOL.c \ iniPropertyValue.c \ iniValue.c \ iniToUpper.c \ iniElement.c \ iniElementCount.c \ iniGetBookmark.c \ iniGotoBookmark.c \ iniCursor.c \ _iniObjectRead.c \ _iniPropertyRead.c \ _iniDump.c \ _iniScanUntilObject.c all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ini/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ini/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libinilc.la: $(libinilc_la_OBJECTS) $(libinilc_la_DEPENDENCIES) $(libinilc_la_LINK) $(libinilc_la_OBJECTS) $(libinilc_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_iniDump.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_iniObjectRead.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_iniPropertyRead.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/_iniScanUntilObject.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniAllTrim.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniAppend.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniClose.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniCommit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniCursor.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniDelete.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniElement.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniElementCount.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniGetBookmark.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniGotoBookmark.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObject.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectDelete.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectEOL.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectFirst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectInsert.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectLast.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectNext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectSeek.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectSeekSure.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniObjectUpdate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniOpen.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniProperty.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyDelete.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyEOL.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyFirst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyInsert.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyLast.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyNext.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertySeek.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertySeekSure.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyUpdate.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniPropertyValue.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniToUpper.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iniValue.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/ini/iniPropertyDelete.c0000644000175000001440000000256311506076306016054 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniPropertyDelete * ******************************/ int iniPropertyDelete( HINI hIni ) { HINIPROPERTY hProperty; HINIOBJECT hObject; /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_ERROR; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; hObject = hIni->hCurObject; hProperty = hIni->hCurProperty; if ( hObject->hFirstProperty == hProperty ) hObject->hFirstProperty = hProperty->pNext; if ( hObject->hLastProperty == hProperty ) hObject->hLastProperty = hProperty->pPrev; hIni->hCurProperty = NULL; if ( hProperty->pNext ) { hProperty->pNext->pPrev = hProperty->pPrev; hIni->hCurProperty = hProperty->pNext; } if ( hProperty->pPrev ) { hProperty->pPrev->pNext = hProperty->pNext; hIni->hCurProperty = hProperty->pPrev; } hObject->nProperties--; /* FREE MEMORY */ free( hProperty ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniGotoBookmark.c0000644000175000001440000000142311506076306015475 00000000000000/********************************************************************************** * iniGotoBookmark * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 18.MAR.99 Created. **************************************************/ #include "ini.h" int iniGotoBookmark( INIBOOKMARK IniBookmark ) { if ( IniBookmark.hIni == NULL ) return INI_ERROR; (IniBookmark.hIni)->hCurObject = IniBookmark.hCurObject; (IniBookmark.hIni)->hCurProperty = IniBookmark.hCurProperty; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectNext.c0000644000175000001440000000156011506076306015146 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found **************************************************/ #include "ini.h" int iniObjectNext( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; hIni->hCurObject = hIni->hCurObject->pNext; iniPropertyFirst( hIni ); if ( hIni->hCurObject == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectDelete.c0000644000175000001440000000260511506076306015433 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniObjectDelete * ******************************/ int iniObjectDelete( HINI hIni ) { HINIOBJECT hObject; /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; hObject = hIni->hCurObject; /* REMOVE ALL SUBORDINATE INFO */ hIni->hCurProperty = hObject->hFirstProperty; while ( iniPropertyDelete( hIni ) == INI_SUCCESS ) { } /* REMOVE FROM LIST */ if ( hIni->hFirstObject == hObject ) hIni->hFirstObject = hObject->pNext; if ( hIni->hLastObject == hObject ) hIni->hLastObject = hObject->pPrev; hIni->hCurObject = NULL; if ( hObject->pNext ) { hObject->pNext->pPrev = hObject->pPrev; hIni->hCurObject = hObject->pNext; } if ( hObject->pPrev ) { hObject->pPrev->pNext = hObject->pNext; hIni->hCurObject = hObject->pPrev; } hIni->nObjects--; /* FREE MEMORY */ free( hObject ); iniPropertyFirst( hIni ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertyValue.c0000644000175000001440000000250011506076306015715 00000000000000/********************************************************************************** * . * totally untested * * see iniElement instead **********************************************************************************/ #include "ini.h" int iniPropertyValue( char *pszString, char *pszProperty, char *pszValue, char cEqual, char cPropertySep ) { char szBuffer[INI_MAX_LINE+1]; char szEqual[2]; char szPropertySep[2]; char *pProperty; char *pValue; char *pValueLastChar; szEqual[0] = cEqual; szEqual[1] = '\0'; szPropertySep[0] = cPropertySep; szPropertySep[1] = '\0'; strcpy( pszValue, "" ); strncpy( szBuffer, pszString, INI_MAX_LINE ); /* find pszProperty */ while ( 1 ) { pProperty = (char *)strtok( szBuffer, (const char *)szPropertySep ); if ( pProperty == NULL ) break; else { /* extract pszValue */ if ( strncmp( pProperty, pszProperty, strlen(pszProperty) ) == 0 ) { pValue = (char *)strtok( szBuffer, (const char *)szEqual ); if ( pValue ) { /* truncate any other data */ pValueLastChar = (char *)strchr( pValue, szPropertySep[ 0 ] ); if ( pValueLastChar ) pValueLastChar[0] = '\0'; strncpy( pszValue, pValue, INI_MAX_PROPERTY_VALUE ); iniAllTrim( pszValue ); } break; } } } return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniProperty.c0000644000175000001440000000143211506076306014723 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniProperty( HINI hIni, char *pszProperty ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; /* Ok */ strncpy( pszProperty, hIni->hCurProperty->szName, INI_MAX_PROPERTY_NAME ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObjectSeekSure.c0000644000175000001440000000152111506076306015753 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 06.MAR.99 Added this func **************************************************/ #include "ini.h" int iniObjectSeekSure( HINI hIni, char *pszObject ) { int nReturn; /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( !pszObject ) return INI_ERROR; if ( (nReturn = iniObjectSeek( hIni, pszObject )) == INI_NO_DATA ) return iniObjectInsert( hIni, pszObject ); return nReturn; } unixodbc-gui-qt-2.3.0/ini/iniCursor.c0000644000175000001440000000130411506076306014352 00000000000000/********************************************************************************** * iniCursor * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 18.MAR.99 Created. **************************************************/ #include "ini.h" int iniCursor( HINI hIni, HINI hIniCursor ) { if ( hIni == NULL || hIniCursor == NULL ) return INI_ERROR; memcpy( hIniCursor, hIni, sizeof(INI) ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertyUpdate.c0000644000175000001440000000160611506076306016071 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyUpdate( HINI hIni, char *pszProperty, char *pszValue ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_ERROR; if ( hIni->hCurProperty == NULL ) return INI_ERROR; /* Ok */ strncpy( hIni->hCurProperty->szName, pszProperty, INI_MAX_PROPERTY_NAME ); strncpy( hIni->hCurProperty->szValue, pszValue, INI_MAX_PROPERTY_VALUE ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniObject.c0000644000175000001440000000144611506076306014312 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" /****************************** * iniObject * ******************************/ int iniObject( HINI hIni, char *pszObject ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; /* Ok */ strncpy( pszObject, hIni->hCurObject->szName, INI_MAX_OBJECT_NAME ); return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniAllTrim.c0000644000175000001440000000210111506076306014435 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniAllTrim( char *pszString ) { int nForwardCursor = 0; int nTrailingCursor = 0; int bTrim = 1; /* TRIM LEFT */ for ( nForwardCursor=0; pszString[nForwardCursor] != '\0'; nForwardCursor++ ) { if ( bTrim && isspace( pszString[nForwardCursor] ) ) { /* DO NOTHING */ } else { bTrim = 0; pszString[nTrailingCursor] = pszString[nForwardCursor]; nTrailingCursor++; } } pszString[nTrailingCursor] = '\0'; /* TRIM RIGHT */ for ( nForwardCursor=strlen(pszString)-1; nForwardCursor >= 0 && isspace( pszString[nForwardCursor] ); nForwardCursor-- ) { } pszString[nForwardCursor+1] = '\0'; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniElementCount.c0000644000175000001440000000173411506076306015506 00000000000000/********************************************************************************** * iniElementCount * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 05.APR.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniElementCount( char *pszData, char cSeperator, char cTerminator ) { int nToManyElements = 30000; int nCurElement = 0; int nChar = 0; for ( ; nCurElement <= nToManyElements; nChar++ ) { /* check for end of data */ if ( cSeperator != cTerminator && pszData[nChar] == cTerminator ) break; if ( cSeperator == cTerminator && pszData[nChar] == cSeperator && pszData[nChar+1] == cTerminator ) break; /* check for end of element */ if ( pszData[nChar] == cSeperator ) nCurElement++; } return nCurElement; } unixodbc-gui-qt-2.3.0/ini/iniObjectLast.c0000644000175000001440000000147711506076306015142 00000000000000/********************************************************************************** * iniObjectLast * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * PAH = Peter Harvey - pharvey@codebydesign.com * ----------------------------------------------- * * PAH 19.MAR.99 Now sets hCurProperty to hFirstProperty when found **************************************************/ #include "ini.h" int iniObjectLast( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; hIni->hCurObject = hIni->hLastObject; iniPropertyFirst( hIni ); if ( hIni->hCurObject == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertyLast.c0000644000175000001440000000136311506076306015552 00000000000000/********************************************************************************** * iniPropertyLast * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyLast( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; hIni->hCurProperty = hIni->hCurObject->hLastProperty; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/ini/iniPropertyNext.c0000644000175000001440000000146411506076306015567 00000000000000/********************************************************************************** * . * * ************************************************** * This code was created by Peter Harvey @ CodeByDesign. * Released under LGPL 28.JAN.99 * * Contributions from... * ----------------------------------------------- * Peter Harvey - pharvey@codebydesign.com **************************************************/ #include "ini.h" int iniPropertyNext( HINI hIni ) { /* SANITY CHECKS */ if ( hIni == NULL ) return INI_ERROR; if ( hIni->hCurObject == NULL ) return INI_NO_DATA; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; hIni->hCurProperty = hIni->hCurProperty->pNext; if ( hIni->hCurProperty == NULL ) return INI_NO_DATA; return INI_SUCCESS; } unixodbc-gui-qt-2.3.0/defines.pri0000644000175000001440000000154011506076311013601 00000000000000# # \brief These are some DEFINES for qmake. # # Edit these settings, as needed, before using qmake to # generate the Makefiles. All sources are likely to use # the options reflected here. # # \sa *.pri *.pro # DEFINES = V_MAJOUR=1 V_MINOR=0 V_RELEASE=1 # ######################################################### # WIN32 # ######################################################### win32 { DEFINES -= UNICODE DEFINES += _CRT_SECURE_NO_WARNINGS } # ######################################################### # MAC/UNIX shared # ######################################################### unix { INSTALL_TARGET_BIN = /usr/bin INSTALL_TARGET_LIB = /usr/lib64 } # ######################################################### # MAC/UNIX specific # ######################################################### mac { } else:unix { } unixodbc-gui-qt-2.3.0/aclocal.m40000644000175000001440000131137611506076372013333 00000000000000# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, [m4_warning([this file was generated for autoconf 2.68. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, # Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, # Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 57 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_WITH_SYSROOT])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PREPARE_SED_QUOTE_VARS # -------------------------- # Define a few sed substitution that help us do robust quoting. m4_defun([_LT_PREPARE_SED_QUOTE_VARS], [# Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\([["`\\]]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ]) # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$[]1 _LTECHO_EOF' } # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done _LT_OUTPUT_LIBTOOL_INIT ]) # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) # ------------------------------------ # Generate a child script FILE with all initialization necessary to # reuse the environment learned by the parent script, and make the # file executable. If COMMENT is supplied, it is inserted after the # `#!' sequence but before initialization text begins. After this # macro, additional text can be appended to FILE to form the body of # the child script. The macro ends with non-zero status if the # file could not be fully written (such as if the disk is full). m4_ifdef([AS_INIT_GENERATED], [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], [m4_defun([_LT_GENERATED_FILE_INIT], [m4_require([AS_PREPARE])]dnl [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl [lt_write_fail=0 cat >$1 <<_ASEOF || lt_write_fail=1 #! $SHELL # Generated by $as_me. $2 SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$1 <<\_ASEOF || lt_write_fail=1 AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 _ASEOF test $lt_write_fail = 0 && chmod +x $1[]dnl m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], [# Run this file to recreate a libtool stub with the current configuration.]) cat >>"$CONFIG_LT" <<\_LTEOF lt_cl_silent=false exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD lt_cl_help="\ \`$as_me' creates a local libtool stub from the current configuration, for use in further configure time tests before the real libtool is generated. Usage: $[0] [[OPTIONS]] -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files Report bugs to ." lt_cl_version="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2010 Free Software Foundation, Inc. This config.lt script is free software; the Free Software Foundation gives unlimited permision to copy, distribute and modify it." while test $[#] != 0 do case $[1] in --version | --v* | -V ) echo "$lt_cl_version"; exit 0 ;; --help | --h* | -h ) echo "$lt_cl_help"; exit 0 ;; --debug | --d* | -d ) debug=: ;; --quiet | --q* | --silent | --s* | -q ) lt_cl_silent=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_EXIT(0) _LTEOF chmod +x "$CONFIG_LT" # configure is writing to config.log, but config.lt does its own redirection, # appending to config.log, which fails on DOS, as config.log is still kept # open by configure. Here we exec the FD to /dev/null, effectively closing # config.log, so it can be properly (re)opened and appended to by config.lt. lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_REPLACE_SHELLFNS mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) dnl AC_DEFUN([AC_LIBTOOL_RC], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], [lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then lt_cv_ld_force_load=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM ]) case $host_os in rhapsody* | darwin1.[[012]]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[[012]]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported if test "$lt_cv_ld_force_load" = "yes"; then _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else _LT_TAGVAR(whole_archive_flag_spec, $1)='' fi _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) # ---------------------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. # Store the results from the different compilers for each TAGNAME. # Allow to override them for all tags through lt_cv_aix_libpath. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed='[ /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }]' _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" fi ]) aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [m4_divert_text([M4SH-INIT], [$1 ])])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Find how we can fake an echo command that does not interpret backslash. # In particular, with Autoconf 2.60 or later we add some code to the start # of the generated configure script which will find a shell with a builtin # printf (which we can use as an echo command). m4_defun([_LT_PROG_ECHO_BACKSLASH], [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO AC_MSG_CHECKING([how to print strings]) # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $[]1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } case "$ECHO" in printf*) AC_MSG_RESULT([printf]) ;; print*) AC_MSG_RESULT([print -r]) ;; *) AC_MSG_RESULT([cat]) ;; esac m4_ifdef([_AS_DETECT_SUGGESTED], [_AS_DETECT_SUGGESTED([ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test "X`printf %s $ECHO`" = "X$ECHO" \ || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], [AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [ --with-sysroot[=DIR] Search for dependent libraries within DIR (or the compiler's sysroot if not specified).], [], [with_sysroot=no]) dnl lt_sysroot will always be passed unquoted. We quote it here dnl in case the user passed a directory name. lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) AC_MSG_RESULT([${with_sysroot}]) AC_MSG_ERROR([The sysroot must be an absolute path.]) ;; esac AC_MSG_RESULT([${lt_sysroot:-no}]) _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl [dependent libraries, and in which our libraries should be installed.])]) # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" ])# _LT_ENABLE_LOCK # _LT_PROG_AR # ----------- m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} : ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no AC_COMPILE_IFELSE([AC_LANG_PROGRAM], [echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a AC_TRY_EVAL([lt_ar_try]) if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a ]) ]) if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi _LT_DECL([], [archiver_list_spec], [1], [How to feed a file listing to the archiver]) ])# _LT_PROG_AR # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [_LT_PROG_AR AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) _LT_DECL([], [lock_old_archive_extraction], [0], [Whether to use a lock for old archive extraction]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&AS_MESSAGE_LOG_FD $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[[lt_foo]]++; } if (lt_freq[[lt_foo]] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[[4-9]]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[[123]]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[[01]]* | freebsdelf3.[[01]]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; haiku*) version_type=linux need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[[3-9]]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], [lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [lt_cv_shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir ]) shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[List of archive names. First name is the real one, the rest are links. The last name is the one that the linker finds with -lNAME]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [install_override_mode], [1], [Permission mode override for installation of shared libraries]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [case $MAGIC_CMD in [[\\/*] | ?:[\\/]*]) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PROG_ECHO_BACKSLASH])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]]* | ?:[[\\/]]*) re_direlt='/[[^/]][[^/]]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[[3-9]]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac ]) file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method = "file_magic"]) _LT_DECL([], [file_magic_glob], [1], [How to find potential files when deplibs_check_method = "file_magic"]) _LT_DECL([], [want_nocaseglob], [1], [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # _LT_CHECK_SHAREDLIB_FROM_LINKLIB # -------------------------------- # how to determine the name of the shared library # associated with a specific link library. # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) m4_require([_LT_DECL_DLLTOOL]) AC_CACHE_CHECK([how to associate runtime and link libraries], lt_cv_sharedlib_from_linklib_cmd, [lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac ]) sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO _LT_DECL([], [sharedlib_from_linklib_cmd], [1], [Command to associate shared and link libraries]) ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB # _LT_PATH_MANIFEST_TOOL # ---------------------- # locate the manifest tool m4_defun([_LT_PATH_MANIFEST_TOOL], [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], [lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&AS_MESSAGE_LOG_FD if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest*]) if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl ])# _LT_PATH_MANIFEST_TOOL # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then case $cc_basename in nvcc*) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; *) _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; esac _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[[BCDEGRST]]' # Regexp to match symbols that can be accessed directly from C. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[[ABCDGISTW]]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;; osf*) symcode='[[BCDEGQRST]]' ;; solaris*) symcode='[[BDRT]]' ;; sco3.2v5*) symcode='[[DT]]' ;; sysv4.2uw2*) symcode='[[DT]]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[[ABDT]]' ;; sysv4) symcode='[[DFNSTU]]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT@&t@_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT@&t@_DLSYM_CONST #else # define LT@&t@_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT@&t@_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then nm_file_list_spec='@' fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) _LT_DECL([], [nm_file_list_spec], [1], [Specify filename containing input files for $NM]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL 8.0, 9.0 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. _LT_TAGVAR(lt_prog_compiler_static, $1)= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; nagfor*) # NAG Fortran compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_CACHE_CHECK([for $compiler option to produce PIC], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] ;; esac ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. dnl Note also adjust exclude_expsyms for C++ above. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[[3-9]]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) m4_if($1, [], [ # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) _LT_LINKER_OPTION([if $CC understands -b], _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], [lt_cv_irix_exported_symbol], [save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE( [AC_LANG_SOURCE( [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], [C++], [[int foo (void) { return 0; }]], [Fortran 77], [[ subroutine foo end]], [Fortran], [[ subroutine foo end]])])], [lt_cv_irix_exported_symbol=yes], [lt_cv_irix_exported_symbol=no]) LDFLAGS="$save_LDFLAGS"]) if test "$lt_cv_irix_exported_symbol" = yes; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. AC_CACHE_CHECK([whether -lc should be explicitly linked in], [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), [$RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no else lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* ]) _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary and the resulting library dependency is "absolute", i.e impossible to change by setting ${shlibpath_var} if the library is relocated]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [postlink_cmds], [2], [Commands necessary for finishing linking programs]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' _LT_TAG_COMPILER # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_PATH_MANIFEST_TOOL])dnl if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[[012]]|aix4.[[012]].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 _LT_TAGVAR(hardcode_direct, $1)=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX([$1]) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' fi _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(file_list_spec, $1)='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes # Don't use ranlib _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; haiku*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(link_all_deplibs, $1)=yes ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ '"$_LT_TAGVAR(old_archive_cmds, $1)" _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ '"$_LT_TAGVAR(reload_cmds, $1)" ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_FUNC_STRIPNAME_CNF # ---------------------- # func_stripname_cnf prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # # This function is identical to the (non-XSI) version of func_stripname, # except this one can be used by m4 code that may be executed by configure, # rather than the libtool script. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl AC_REQUIRE([_LT_DECL_SED]) AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf ])# _LT_FUNC_STRIPNAME_CNF # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; esac dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_LANG_PUSH(Fortran 77) if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${F77-"f77"} CFLAGS=$FFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" CFLAGS="$lt_save_CFLAGS" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_LANG_PUSH(Fortran) if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC lt_save_CFLAGS=$CFLAGS CC=${FC-"f95"} CFLAGS=$FCFLAGS compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} CFLAGS=$GCJFLAGS compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(reload_flag, $1)=$reload_flag _LT_TAGVAR(reload_cmds, $1)=$reload_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_CFLAGS=$CFLAGS lt_save_GCC=$GCC GCC= CC=${RC-"windres"} CFLAGS= compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_DLLTOOL # ---------------- # Ensure DLLTOOL variable is set. m4_defun([_LT_DECL_DLLTOOL], [AC_CHECK_TOOL(DLLTOOL, dlltool, false) test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) # ------------------------------------------------------ # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. m4_defun([_LT_PROG_FUNCTION_REPLACE], [dnl { sed -e '/^$1 ()$/,/^} # $1 /c\ $1 ()\ {\ m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: ]) # _LT_PROG_REPLACE_SHELLFNS # ------------------------- # Replace existing portable implementations of several shell functions with # equivalent extended shell implementations where those features are available.. m4_defun([_LT_PROG_REPLACE_SHELLFNS], [if test x"$xsi_shell" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}"]) _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"}]) _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl func_split_long_opt_name=${1%%=*} func_split_long_opt_arg=${1#*=}]) _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl func_split_short_opt_arg=${1#??} func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac]) _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) fi if test x"$lt_shell_append" = xyes; then _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl func_quote_for_eval "${2}" dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) fi ]) # _LT_PATH_CONVERSION_FUNCTIONS # ----------------------------- # Determine which file name conversion functions should be used by # func_to_host_file (and, implicitly, by func_to_host_path). These are needed # for certain cross-compile configurations and native mingw. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_MSG_CHECKING([how to convert $build file names to $host format]) AC_CACHE_VAL(lt_cv_to_host_file_cmd, [case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac ]) to_host_file_cmd=$lt_cv_to_host_file_cmd AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], [0], [convert $build file names to $host format])dnl AC_MSG_CHECKING([how to convert $build file names to toolchain format]) AC_CACHE_VAL(lt_cv_to_tool_file_cmd, [#assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac ]) to_tool_file_cmd=$lt_cv_to_tool_file_cmd AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], [0], [convert $build files to toolchain format])dnl ])# _LT_PATH_CONVERSION_FUNCTIONS # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*- # # Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc. # Written by Thomas Tanner, 1999 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 18 LTDL_INIT # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE]) # ------------------------------------------ # DIRECTORY contains the libltdl sources. It is okay to call this # function multiple times, as long as the same DIRECTORY is always given. AC_DEFUN([LT_CONFIG_LTDL_DIR], [AC_BEFORE([$0], [LTDL_INIT]) _$0($*) ])# LT_CONFIG_LTDL_DIR # We break this out into a separate macro, so that we can call it safely # internally without being caught accidentally by the sed scan in libtoolize. m4_defun([_LT_CONFIG_LTDL_DIR], [dnl remove trailing slashes m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$])) m4_case(_LTDL_DIR, [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.' m4_if(_ARG_DIR, [.], [], [m4_define([_LTDL_DIR], _ARG_DIR) _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])], [m4_if(_ARG_DIR, _LTDL_DIR, [], [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])]) m4_popdef([_ARG_DIR]) ])# _LT_CONFIG_LTDL_DIR # Initialise: m4_define([_LTDL_DIR], []) # _LT_BUILD_PREFIX # ---------------- # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise # to `${top_builddir}/'. m4_define([_LT_BUILD_PREFIX], [m4_ifdef([AC_AUTOCONF_VERSION], [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]), [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX], [${top_build_prefix}], [${top_builddir}/])], [${top_build_prefix}])], [${top_builddir}/])[]dnl ]) # LTDL_CONVENIENCE # ---------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with # '${top_build_prefix}' if available, otherwise with '${top_builddir}/', # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single # quotes!). If your package is not flat and you're not using automake, # define top_build_prefix, top_builddir, and top_srcdir appropriately # in your Makefiles. AC_DEFUN([LTDL_CONVENIENCE], [AC_BEFORE([$0], [LTDL_INIT])dnl dnl Although the argument is deprecated and no longer documented, dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one dnl here make sure it is the same as any other declaration of libltdl's dnl location! This also ensures lt_ltdl_dir is set when configure.ac is dnl not yet using an explicit LT_CONFIG_LTDL_DIR. m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl _$0() ])# LTDL_CONVENIENCE # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools, # now we have LT_CONFIG_LTDL_DIR: AU_DEFUN([AC_LIBLTDL_CONVENIENCE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_CONVENIENCE]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], []) # _LTDL_CONVENIENCE # ----------------- # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]). m4_defun([_LTDL_CONVENIENCE], [case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" LTDLDEPS=$LIBLTDL LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" AC_SUBST([LIBLTDL]) AC_SUBST([LTDLDEPS]) AC_SUBST([LTDLINCL]) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" AC_SUBST([INCLTDL]) ])# _LTDL_CONVENIENCE # LTDL_INSTALLABLE # ---------------- # sets LIBLTDL to the link flags for the libltdl installable library # and LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if # available, otherwise with '${top_builddir}/', and LTDLINCL will be # prefixed with '${top_srcdir}/' (note the single quotes!). If your # package is not flat and you're not using automake, define top_build_prefix, # top_builddir, and top_srcdir appropriately in your Makefiles. # In the future, this macro may have to be called after LT_INIT. AC_DEFUN([LTDL_INSTALLABLE], [AC_BEFORE([$0], [LTDL_INIT])dnl dnl Although the argument is deprecated and no longer documented, dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one dnl here make sure it is the same as any other declaration of libltdl's dnl location! This also ensures lt_ltdl_dir is set when configure.ac is dnl not yet using an explicit LT_CONFIG_LTDL_DIR. m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl _$0() ])# LTDL_INSTALLABLE # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools, # now we have LT_CONFIG_LTDL_DIR: AU_DEFUN([AC_LIBLTDL_INSTALLABLE], [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])]) _LTDL_INSTALLABLE]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], []) # _LTDL_INSTALLABLE # ----------------- # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]). m4_defun([_LTDL_INSTALLABLE], [if test -f $prefix/lib/libltdl.la; then lt_save_LDFLAGS="$LDFLAGS" LDFLAGS="-L$prefix/lib $LDFLAGS" AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes]) LDFLAGS="$lt_save_LDFLAGS" if test x"${lt_lib_ltdl-no}" = xyes; then if test x"$enable_ltdl_install" != xyes; then # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install AC_MSG_WARN([not overwriting libltdl at $prefix, force with `--enable-ltdl-install']) enable_ltdl_install=no fi elif test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) fi fi # If configure.ac declared an installable ltdl, and the user didn't override # with --disable-ltdl-install, we will install the shipped libltdl. case $enable_ltdl_install in no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLDEPS= LTDLINCL= ;; *) enable_ltdl_install=yes ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la" LTDLDEPS=$LIBLTDL LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" ;; esac AC_SUBST([LIBLTDL]) AC_SUBST([LTDLDEPS]) AC_SUBST([LTDLINCL]) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" AC_SUBST([INCLTDL]) ])# LTDL_INSTALLABLE # _LTDL_MODE_DISPATCH # ------------------- m4_define([_LTDL_MODE_DISPATCH], [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself: m4_if(_LTDL_DIR, [], [], dnl if _LTDL_MODE was not set already, the default value is `subproject': [m4_case(m4_default(_LTDL_MODE, [subproject]), [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR) _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])], [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])], [recursive], [], [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl dnl Be careful not to expand twice: m4_define([$0], []) ])# _LTDL_MODE_DISPATCH # _LT_LIBOBJ(MODULE_NAME) # ----------------------- # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead # of into LIBOBJS. AC_DEFUN([_LT_LIBOBJ], [ m4_pattern_allow([^_LT_LIBOBJS$]) _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext" ])# _LT_LIBOBJS # LTDL_INIT([OPTIONS]) # -------------------- # Clients of libltdl can use this macro to allow the installer to # choose between a shipped copy of the ltdl sources or a preinstalled # version of the library. If the shipped ltdl sources are not in a # subdirectory named libltdl, the directory name must be given by # LT_CONFIG_LTDL_DIR. AC_DEFUN([LTDL_INIT], [dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) dnl We need to keep our own list of libobjs separate from our parent project, dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while dnl we look for our own LIBOBJs. m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ])) m4_pushdef([AC_LIBSOURCES]) dnl If not otherwise defined, default to the 1.5.x compatible subproject mode: m4_if(_LTDL_MODE, [], [m4_define([_LTDL_MODE], m4_default([$2], [subproject])) m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])], [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])]) AC_ARG_WITH([included_ltdl], [AS_HELP_STRING([--with-included-ltdl], [use the GNU ltdl sources included here])]) if test "x$with_included_ltdl" != xyes; then # We are not being forced to use the included libltdl sources, so # decide whether there is a useful installed version we can use. AC_CHECK_HEADER([ltdl.h], [AC_CHECK_DECL([lt_dlinterface_register], [AC_CHECK_LIB([ltdl], [lt_dladvise_preload], [with_included_ltdl=no], [with_included_ltdl=yes])], [with_included_ltdl=yes], [AC_INCLUDES_DEFAULT #include ])], [with_included_ltdl=yes], [AC_INCLUDES_DEFAULT] ) fi dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE dnl was called yet, then for old times' sake, we assume libltdl is in an dnl eponymous directory: AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])]) AC_ARG_WITH([ltdl_include], [AS_HELP_STRING([--with-ltdl-include=DIR], [use the ltdl headers installed in DIR])]) if test -n "$with_ltdl_include"; then if test -f "$with_ltdl_include/ltdl.h"; then : else AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include']) fi else with_ltdl_include=no fi AC_ARG_WITH([ltdl_lib], [AS_HELP_STRING([--with-ltdl-lib=DIR], [use the libltdl.la installed in DIR])]) if test -n "$with_ltdl_lib"; then if test -f "$with_ltdl_lib/libltdl.la"; then : else AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib']) fi else with_ltdl_lib=no fi case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in ,yes,no,no,) m4_case(m4_default(_LTDL_TYPE, [convenience]), [convenience], [_LTDL_CONVENIENCE], [installable], [_LTDL_INSTALLABLE], [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)]) ;; ,no,no,no,) # If the included ltdl is not to be used, then use the # preinstalled libltdl we found. AC_DEFINE([HAVE_LTDL], [1], [Define this if a modern libltdl is already installed]) LIBLTDL=-lltdl LTDLDEPS= LTDLINCL= ;; ,no*,no,*) AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together]) ;; *) with_included_ltdl=no LIBLTDL="-L$with_ltdl_lib -lltdl" LTDLDEPS= LTDLINCL="-I$with_ltdl_include" ;; esac INCLTDL="$LTDLINCL" # Report our decision... AC_MSG_CHECKING([where to find libltdl headers]) AC_MSG_RESULT([$LTDLINCL]) AC_MSG_CHECKING([where to find libltdl library]) AC_MSG_RESULT([$LIBLTDL]) _LTDL_SETUP dnl restore autoconf definition. m4_popdef([AC_LIBOBJ]) m4_popdef([AC_LIBSOURCES]) AC_CONFIG_COMMANDS_PRE([ _ltdl_libobjs= _ltdl_ltlibobjs= if test -n "$_LT_LIBOBJS"; then # Remove the extension. _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" done fi AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs]) AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs]) ]) # Only expand once: m4_define([LTDL_INIT]) ])# LTDL_INIT # Old names: AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)]) AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)]) AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIB_LTDL], []) dnl AC_DEFUN([AC_WITH_LTDL], []) dnl AC_DEFUN([LT_WITH_LTDL], []) # _LTDL_SETUP # ----------- # Perform all the checks necessary for compilation of the ltdl objects # -- including compiler checks and header checks. This is a public # interface mainly for the benefit of libltdl's own configure.ac, most # other users should call LTDL_INIT instead. AC_DEFUN([_LTDL_SETUP], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_SYS_MODULE_EXT])dnl AC_REQUIRE([LT_SYS_MODULE_PATH])dnl AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl AC_REQUIRE([LT_LIB_DLLOAD])dnl AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl AC_REQUIRE([gl_FUNC_ARGZ])dnl m4_require([_LT_CHECK_OBJDIR])dnl m4_require([_LT_HEADER_DLFCN])dnl m4_require([_LT_CHECK_DLPREOPEN])dnl m4_require([_LT_DECL_SED])dnl dnl Don't require this, or it will be expanded earlier than the code dnl that sets the variables it relies on: _LT_ENABLE_INSTALL dnl _LTDL_MODE specific code must be called at least once: _LTDL_MODE_DISPATCH # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS # the user used. This is so that ltdl.h can pick up the parent projects # config.h file, The first file in AC_CONFIG_HEADERS must contain the # definitions required by ltdl.c. # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). AC_CONFIG_COMMANDS_PRE([dnl m4_pattern_allow([^LT_CONFIG_H$])dnl m4_ifset([AH_HEADER], [LT_CONFIG_H=AH_HEADER], [m4_ifset([AC_LIST_HEADERS], [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[ ]]*,,;s,[[ :]].*$,,'`], [])])]) AC_SUBST([LT_CONFIG_H]) AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h], [], [], [AC_INCLUDES_DEFAULT]) AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])]) AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])]) m4_pattern_allow([LT_LIBEXT])dnl AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension]) name= eval "lt_libprefix=\"$libname_spec\"" m4_pattern_allow([LT_LIBPREFIX])dnl AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix]) name=ltdl eval "LTDLOPEN=\"$libname_spec\"" AC_SUBST([LTDLOPEN]) ])# _LTDL_SETUP # _LT_ENABLE_INSTALL # ------------------ m4_define([_LT_ENABLE_INSTALL], [AC_ARG_ENABLE([ltdl-install], [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])]) case ,${enable_ltdl_install},${enable_ltdl_convenience} in *yes*) ;; *) enable_ltdl_convenience=yes ;; esac m4_ifdef([AM_CONDITIONAL], [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno) AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)]) ])# _LT_ENABLE_INSTALL # LT_SYS_DLOPEN_DEPLIBS # --------------------- AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether deplibs are loaded by dlopen], [lt_cv_sys_dlopen_deplibs], [# PORTME does your system automatically load deplibs for dlopen? # or its logical equivalent (e.g. shl_load for HP-UX < 11) # For now, we just catch OSes we know something about -- in the # future, we'll try test this programmatically. lt_cv_sys_dlopen_deplibs=unknown case $host_os in aix3*|aix4.1.*|aix4.2.*) # Unknown whether this is true for these versions of AIX, but # we want this `case' here to explicitly catch those versions. lt_cv_sys_dlopen_deplibs=unknown ;; aix[[4-9]]*) lt_cv_sys_dlopen_deplibs=yes ;; amigaos*) case $host_cpu in powerpc) lt_cv_sys_dlopen_deplibs=no ;; esac ;; darwin*) # Assuming the user has installed a libdl from somewhere, this is true # If you are looking for one http://www.opendarwin.org/projects/dlcompat lt_cv_sys_dlopen_deplibs=yes ;; freebsd* | dragonfly*) lt_cv_sys_dlopen_deplibs=yes ;; gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) # GNU and its variants, using gnu ld.so (Glibc) lt_cv_sys_dlopen_deplibs=yes ;; hpux10*|hpux11*) lt_cv_sys_dlopen_deplibs=yes ;; interix*) lt_cv_sys_dlopen_deplibs=yes ;; irix[[12345]]*|irix6.[[01]]*) # Catch all versions of IRIX before 6.2, and indicate that we don't # know how it worked for any of those versions. lt_cv_sys_dlopen_deplibs=unknown ;; irix*) # The case above catches anything before 6.2, and it's known that # at 6.2 and later dlopen does load deplibs. lt_cv_sys_dlopen_deplibs=yes ;; netbsd*) lt_cv_sys_dlopen_deplibs=yes ;; openbsd*) lt_cv_sys_dlopen_deplibs=yes ;; osf[[1234]]*) # dlopen did load deplibs (at least at 4.x), but until the 5.x series, # it did *not* use an RPATH in a shared library to find objects the # library depends on, so we explicitly say `no'. lt_cv_sys_dlopen_deplibs=no ;; osf5.0|osf5.0a|osf5.1) # dlopen *does* load deplibs and with the right loader patch applied # it even uses RPATH in a shared library to search for shared objects # that the library depends on, but there's no easy way to know if that # patch is installed. Since this is the case, all we can really # say is unknown -- it depends on the patch being installed. If # it is, this changes to `yes'. Without it, it would be `no'. lt_cv_sys_dlopen_deplibs=unknown ;; osf*) # the two cases above should catch all versions of osf <= 5.1. Read # the comments above for what we know about them. # At > 5.1, deplibs are loaded *and* any RPATH in a shared library # is used to find them so we can finally say `yes'. lt_cv_sys_dlopen_deplibs=yes ;; qnx*) lt_cv_sys_dlopen_deplibs=yes ;; solaris*) lt_cv_sys_dlopen_deplibs=yes ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) libltdl_cv_sys_dlopen_deplibs=yes ;; esac ]) if test "$lt_cv_sys_dlopen_deplibs" != yes; then AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1], [Define if the OS needs help to load dependent libraries for dlopen().]) fi ])# LT_SYS_DLOPEN_DEPLIBS # Old name: AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], []) # LT_SYS_MODULE_EXT # ----------------- AC_DEFUN([LT_SYS_MODULE_EXT], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl AC_CACHE_CHECK([which extension is used for runtime loadable modules], [libltdl_cv_shlibext], [ module=yes eval libltdl_cv_shlibext=$shrext_cmds ]) if test -n "$libltdl_cv_shlibext"; then m4_pattern_allow([LT_MODULE_EXT])dnl AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"], [Define to the extension used for runtime loadable modules, say, ".so".]) fi ])# LT_SYS_MODULE_EXT # Old name: AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_SHLIBEXT], []) # LT_SYS_MODULE_PATH # ------------------ AC_DEFUN([LT_SYS_MODULE_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl AC_CACHE_CHECK([which variable specifies run-time module search path], [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"]) if test -n "$lt_cv_module_path_var"; then m4_pattern_allow([LT_MODULE_PATH_VAR])dnl AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"], [Define to the name of the environment variable that determines the run-time module search path.]) fi ])# LT_SYS_MODULE_PATH # Old name: AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_SHLIBPATH], []) # LT_SYS_DLSEARCH_PATH # -------------------- AC_DEFUN([LT_SYS_DLSEARCH_PATH], [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl AC_CACHE_CHECK([for the default library search path], [lt_cv_sys_dlsearch_path], [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"]) if test -n "$lt_cv_sys_dlsearch_path"; then sys_dlsearch_path= for dir in $lt_cv_sys_dlsearch_path; do if test -z "$sys_dlsearch_path"; then sys_dlsearch_path="$dir" else sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" fi done m4_pattern_allow([LT_DLSEARCH_PATH])dnl AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"], [Define to the system default library search path.]) fi ])# LT_SYS_DLSEARCH_PATH # Old name: AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], []) # _LT_CHECK_DLPREOPEN # ------------------- m4_defun([_LT_CHECK_DLPREOPEN], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen], [libltdl_cv_preloaded_symbols], [if test -n "$lt_cv_sys_global_symbol_pipe"; then libltdl_cv_preloaded_symbols=yes else libltdl_cv_preloaded_symbols=no fi ]) if test x"$libltdl_cv_preloaded_symbols" = xyes; then AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1], [Define if libtool can extract symbol lists from object files.]) fi ])# _LT_CHECK_DLPREOPEN # LT_LIB_DLLOAD # ------------- AC_DEFUN([LT_LIB_DLLOAD], [m4_pattern_allow([^LT_DLLOADERS$]) LT_DLLOADERS= AC_SUBST([LT_DLLOADERS]) AC_LANG_PUSH([C]) LIBADD_DLOPEN= AC_SEARCH_LIBS([dlopen], [dl], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) if test "$ac_cv_search_dlopen" != "none required" ; then LIBADD_DLOPEN="-ldl" fi libltdl_cv_lib_dl_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H # include #endif ]], [[dlopen(0, 0);]])], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) libltdl_cv_func_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"], [AC_CHECK_LIB([svld], [dlopen], [AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.]) LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])]) if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes then lt_save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DLOPEN" AC_CHECK_FUNCS([dlerror]) LIBS="$lt_save_LIBS" fi AC_SUBST([LIBADD_DLOPEN]) LIBADD_SHL_LOAD= AC_CHECK_FUNC([shl_load], [AC_DEFINE([HAVE_SHL_LOAD], [1], [Define if you have the shl_load function.]) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"], [AC_CHECK_LIB([dld], [shl_load], [AC_DEFINE([HAVE_SHL_LOAD], [1], [Define if you have the shl_load function.]) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" LIBADD_SHL_LOAD="-ldld"])]) AC_SUBST([LIBADD_SHL_LOAD]) case $host_os in darwin[[1567]].*) # We only want this for pre-Mac OS X 10.4. AC_CHECK_FUNC([_dyld_func_lookup], [AC_DEFINE([HAVE_DYLD], [1], [Define if you have the _dyld_func_lookup function.]) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"]) ;; beos*) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" ;; cygwin* | mingw* | os2* | pw32*) AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include ]]) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" ;; esac AC_CHECK_LIB([dld], [dld_link], [AC_DEFINE([HAVE_DLD], [1], [Define if you have the GNU dld library.]) LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"]) AC_SUBST([LIBADD_DLD_LINK]) m4_pattern_allow([^LT_DLPREOPEN$]) LT_DLPREOPEN= if test -n "$LT_DLLOADERS" then for lt_loader in $LT_DLLOADERS; do LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " done AC_DEFINE([HAVE_LIBDLLOADER], [1], [Define if libdlloader will be built on this platform]) fi AC_SUBST([LT_DLPREOPEN]) dnl This isn't used anymore, but set it for backwards compatibility LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" AC_SUBST([LIBADD_DL]) AC_LANG_POP ])# LT_LIB_DLLOAD # Old name: AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_DLLIB], []) # LT_SYS_SYMBOL_USCORE # -------------------- # does the compiler prefix global symbols with an underscore? AC_DEFUN([LT_SYS_SYMBOL_USCORE], [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl AC_CACHE_CHECK([for _ prefix in compiled symbols], [lt_cv_sys_symbol_underscore], [lt_cv_sys_symbol_underscore=no cat > conftest.$ac_ext <<_LT_EOF void nm_test_func(){} int main(){nm_test_func;return 0;} _LT_EOF if AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. ac_nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then # See whether the symbols have a leading underscore. if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then lt_cv_sys_symbol_underscore=yes else if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then : else echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD fi fi else echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.c >&AS_MESSAGE_LOG_FD fi rm -rf conftest* ]) sys_symbol_underscore=$lt_cv_sys_symbol_underscore AC_SUBST([sys_symbol_underscore]) ])# LT_SYS_SYMBOL_USCORE # Old name: AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], []) # LT_FUNC_DLSYM_USCORE # -------------------- AC_DEFUN([LT_FUNC_DLSYM_USCORE], [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl if test x"$lt_cv_sys_symbol_underscore" = xyes; then if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then AC_CACHE_CHECK([whether we have to add an underscore for dlsym], [libltdl_cv_need_uscore], [libltdl_cv_need_uscore=unknown save_LIBS="$LIBS" LIBS="$LIBS $LIBADD_DLOPEN" _LT_TRY_DLOPEN_SELF( [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes], [], [libltdl_cv_need_uscore=cross]) LIBS="$save_LIBS" ]) fi fi if test x"$libltdl_cv_need_uscore" = xyes; then AC_DEFINE([NEED_USCORE], [1], [Define if dlsym() requires a leading underscore in symbol names.]) fi ])# LT_FUNC_DLSYM_USCORE # Old name: AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], []) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, # Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 7 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [1], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # @configure_input@ # serial 3293 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.4]) m4_define([LT_PACKAGE_REVISION], [1.3293]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.4' macro_revision='1.3293' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 5 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_PROG_LEX # ----------- # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a # "missing" invocation, for better error output. AC_DEFUN([AM_PROG_LEX], [AC_PREREQ(2.50)dnl AC_REQUIRE([AM_MISSING_HAS_RUN])dnl AC_REQUIRE([AC_PROG_LEX])dnl if test "$LEX" = :; then LEX=${am_missing_run}flex fi]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([acinclude.m4]) unixodbc-gui-qt-2.3.0/install-sh0000755000175000001440000003253711430301060013452 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: unixodbc-gui-qt-2.3.0/NEWS0000644000175000001440000000007611506076311012152 00000000000000Release History =============== Release 2.3.0-1 23.02.2010 unixodbc-gui-qt-2.3.0/common.pri0000644000175000001440000000046611506076311013462 00000000000000# # \brief These are misc options which are common among all # sources. # # These are global qmake options. You probably do not # want to change these. # # If you are NOT using qmake then you can ignore this file. # # # \sa *.pri *.pro # OBJECTS_DIR = .tmp UI_DIR = .tmp MOC_DIR = .tmp unixodbc-gui-qt-2.3.0/missing0000755000175000001440000002623311430301060013041 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program 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 General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: unixodbc-gui-qt-2.3.0/config.rpath0000644000175000001440000000000011506076351013747 00000000000000unixodbc-gui-qt-2.3.0/depcomp0000755000175000001440000004426711430301060013026 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program 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 General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: unixodbc-gui-qt-2.3.0/Makefile.am0000644000175000001440000000071111506076311013503 00000000000000ACLOCAL_AMFLAGS=-I m4 SUBDIRS = \ ini \ gtrtstQ4 \ odbcinstQ4 \ ODBCCreateDataSourceQ4 \ ODBCManageDataSourcesQ4 \ ODBCTestQ4 EXTRA_DIST = \ AUTHORS \ ChangeLog \ common.pri \ config.pri \ configure.in \ COPYING \ defines.pri \ GPL.txt \ INSTALL \ LGPL.txt \ Makefile.am \ Makefile.svn \ NEWS \ odbc.pri \ qt.m4 \ README \ README.build \ README.dist \ README.qmake \ README.svn \ unixODBC-GUI-Qt.pro \ unixODBC-GUI-Qt.spec unixodbc-gui-qt-2.3.0/COPYING0000644000175000001440000000103411506076311012501 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ COPYING --------------------------------------------------------------- This project is governed by two popular 'play-it-forward' licenses. The programs are governed by the GPL (see GPL.txt) while the libraries are governed by the LGPL (see LGPL.txt). --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/LGPL.txt0000644000175000001440000001672711506076311012764 00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. unixodbc-gui-qt-2.3.0/unixODBC-GUI-Qt.pro0000644000175000001440000000264411506076311014617 00000000000000# # building # ======== # # This can be built for UNIX'ism or MS'ism. # # UNIX'ism # -------- # # Install unixODBC-Core and unixODBC-Dev. Set the following # environment variables to tell us where unixODBC was # installed; # # export UNIXODBC_DIR=/usr # export UNIXODBC_LIBDIR=$UNIXODBC_DIR/lib64 # # Get unixODBC-Test (do not build it yet) and set the # following environment variable to tell us where it is; # # export UNIXODBC_TEST_SRC=~/unixodbc-test/trunk # # Build This # # $ qmake # $ make # $ sudo make install # # MS'ism # ------ # # Get unixODBC-Test (do not build it yet) and set the # following environment variable to tell us where it is; # # SET UNIXODBC_TEST_SRC=C:/unixodbc-test/trunk # # Build This # # > qmake # > nmake # TEMPLATE = subdirs # ######################################################### # WIN32 # ######################################################### win32 { DEFINES -= UNICODE DEFINES += _CRT_SECURE_NO_WARNINGS SUBDIRS = \ gtrtstQ4 \ ODBCTestQ4 } # ######################################################### # MAC/UNIX shared # ######################################################### unix { SUBDIRS = \ ini \ odbcinstQ4 \ gtrtstQ4 \ ODBCCreateDataSourceQ4 \ ODBCManageDataSourcesQ4 \ ODBCTestQ4 } # ######################################################### # MAC/UNIX specific # ######################################################### mac { } else:unix { } unixodbc-gui-qt-2.3.0/configure0000755000175000001440000243270311506076400013371 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for unixODBC-GUI-Qt 2.3.0. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software # Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO PATH=/empty FPATH=/empty; export PATH FPATH test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" lt_ltdl_dir='libltdl' SHELL=${CONFIG_SHELL-/bin/sh} test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='unixODBC-GUI-Qt' PACKAGE_TARNAME='unixodbc-gui-qt' PACKAGE_VERSION='2.3.0' PACKAGE_STRING='unixODBC-GUI-Qt 2.3.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS ALLOCA INCLUDES_COMMON QT_LIBS QT_LDFLAGS QT_CXXFLAGS UIC MOC X_EXTRA_LIBS X_LIBS X_PRE_LIBS X_CFLAGS XMKMF LIBNSL LIBSOCKET PTH_LIBS PTH_LDFLAGS PTH_CFLAGS PTH_CPPFLAGS LIBADD_DL LFLAGS HAVE_FLEX_FALSE HAVE_FLEX_TRUE READLINE LIBADD_POW LIBADD_CRYPT ICONV_UNICODE_ENCODING ICONV_CHAR_ENCODING LIBICONV SHLIBEXT subdirs CXXCPP OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL MANIFEST_TOOL RANLIB ac_ct_AR AR NM ac_ct_DUMPBIN DUMPBIN LD FGREP SED LIBTOOL OBJDUMP DLLTOOL AS host_os host_vendor host_cpu host build_os build_vendor build_cpu build INCLTDL LTDLINCL LTDLDEPS LIBLTDL EGREP GREP am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX LN_S LEXLIB LEX_OUTPUT_ROOT LEX CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC YFLAGS YACC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_threads enable_gnuthreads enable_readline enable_inicaching enable_stats enable_rtldgroup enable_ltdllib enable_shared enable_static with_pic enable_fast_install with_gnu_ld with_sysroot enable_libtool_lock with_libiconv_prefix with_iconv_char_enc with_iconv_ucode_enc with_pth with_pth_test with_x with_qt_dir_include with_qt_dir_lib with_qt_dir_bin ' ac_precious_vars='build_alias host_alias target_alias YACC YFLAGS CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP XMKMF' ac_subdirs_all='libltdl' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used" >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures unixODBC-GUI-Qt 2.3.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/unixodbc-gui-qt] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names X features: --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of unixODBC-GUI-Qt 2.3.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-threads build with thread support default=yes --enable-gnuthreads build with gnu threads support default=no --enable-readline build with readline support default=yes --enable-inicaching build with ini file caching support default=yes --enable-stats build with statistic gathering support default=yes --enable-rtldgroup build with RTLD_GROUP passed to dlopen (when supported) default=yes --enable-ltdllib Use system libltdl.so (if found) default=no --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-sysroot=DIR Search for dependent libraries within DIR (or the compiler's sysroot if not specified). --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib --with-iconv-char-enc=enc Encoding to use as ASCII default=auto-search --with-iconv-ucode-enc=enc Encoding to use as UNICODE default=auto-search --with-pth=ARG Build with GNU Pth Library (default=yes) --with-pth-test Perform GNU Pth Sanity Test (default=yes) --with-x use the X Window System --with-qt-include=DIR location of Qt include files --with-qt-lib=DIR location of Qt lib files --with-qt-bin=DIR location of Qt bin files Some influential environment variables: YACC The `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor XMKMF Path to xmkmf, Makefile generator for X Window System Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF unixODBC-GUI-Qt configure 2.3.0 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp # ac_fn_cxx_try_link LINENO # ------------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_link # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 &5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by unixODBC-GUI-Qt $as_me 2.3.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='unixodbc-gui-qt' VERSION='2.3.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_YACC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_YACC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 $as_echo "$YACC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LEX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LEX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 $as_echo "$LEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { yyless (input () != 0); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 $as_echo_n "checking lex output file root... " >&6; } if ${ac_cv_prog_lex_root+:} false; then : $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 $as_echo_n "checking lex library... " >&6; } if ${ac_cv_lib_lex+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 $as_echo_n "checking whether yytext is a pointer... " >&6; } if ${ac_cv_prog_lex_yytext_pointer+:} false; then : $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi if test "$LEX" = :; then LEX=${am_missing_run}flex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi # Check whether --enable-threads was given. if test "${enable_threads+set}" = set; then : enableval=$enable_threads; case "${enableval}" in yes) thread=true ;; no) thread=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-thread" "$LINENO" 5 ;; esac else thread=true fi # Check whether --enable-gnuthreads was given. if test "${enable_gnuthreads+set}" = set; then : enableval=$enable_gnuthreads; case "${enableval}" in yes) gnuthread=true ;; no) gnuthread=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-gnuthread" "$LINENO" 5 ;; esac else gnuthread=false fi # Check whether --enable-readline was given. if test "${enable_readline+set}" = set; then : enableval=$enable_readline; case "${enableval}" in yes) readline=true ;; no) readline=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-readline" "$LINENO" 5 ;; esac else readline=true fi # Check whether --enable-inicaching was given. if test "${enable_inicaching+set}" = set; then : enableval=$enable_inicaching; case "${enableval}" in yes) inicaching=true ;; no) inicaching=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-inicaching" "$LINENO" 5 ;; esac else inicaching=true fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/sem.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/sem.h" "ac_cv_header_sys_sem_h" "$ac_includes_default" if test "x$ac_cv_header_sys_sem_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SEM_H 1 _ACEOF semh=true else semh=false fi done # Check whether --enable-stats was given. if test "${enable_stats+set}" = set; then : enableval=$enable_stats; case "${enableval}" in yes) if test "x$semh" = "xfalse"; then as_fn_error $? "stats enabled but required header was not found" "$LINENO" 5 fi stats=true ;; no) stats=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-stats" "$LINENO" 5 ;; esac else stats=$semh fi # Check whether --enable-rtldgroup was given. if test "${enable_rtldgroup+set}" = set; then : enableval=$enable_rtldgroup; case "${enableval}" in yes) rtldgroup=true ;; no) rtldgroup=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-rltdgroup" "$LINENO" 5 ;; esac else rtldgroup=true fi # Check whether --enable-ltdllib was given. if test "${enable_ltdllib+set}" = set; then : enableval=$enable_ltdllib; case "${enableval}" in yes) ltdllib=true ;; no) ltdllib=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-ltdllib" "$LINENO" 5 ;; esac else ltdllib=false fi INCLTDL="" LIBLTDL="" { $as_echo "$as_me:${as_lineno-$LINENO}: checking Have we enabled using RTLD_GROUP " >&5 $as_echo_n "checking Have we enabled using RTLD_GROUP ... " >&6; } if test "x$rtldgroup" = "xtrue"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes " >&5 $as_echo "yes " >&6; } case $enable_ltdl_convenience in no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" LTDLDEPS=$LIBLTDL LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5 $as_echo "no " >&6; }; case $enable_ltdl_convenience in no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience CFLAGS=-DWITHOUT_RTLD_GROUP" ;; esac LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la LTDLINCL='-I${top_srcdir}/''libltdl' # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" fi enable_dlopen=yes # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AS"; then ac_cv_prog_AS="$AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AS="${ac_tool_prefix}as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AS=$ac_cv_prog_AS if test -n "$AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 $as_echo "$AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_AS"; then ac_ct_AS=$AS # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AS"; then ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AS="as" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AS=$ac_cv_prog_ac_ct_AS if test -n "$ac_ct_AS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 $as_echo "$ac_ct_AS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_AS" = x; then AS="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AS=$ac_ct_AS fi else AS="$ac_cv_prog_AS" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi ;; esac test -z "$AS" && AS=as test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$OBJDUMP" && OBJDUMP=objdump case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; esac macro_version='2.4' macro_revision='1.3293' ltmain="$ac_aux_dir/ltmain.sh" # Backslashify metacharacters that are still active within # double-quoted strings. sed_quote_subst='s/\(["`$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to delay expansion of an escaped single quote. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 $as_echo_n "checking how to print strings... " >&6; } # Test print first, because it will be a builtin if present. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='print -r --' elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then ECHO='printf %s\n' else # Use this function as a fallback that always works. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } ECHO='func_fallback_echo' fi # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "" } case "$ECHO" in printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 $as_echo "printf" >&6; } ;; print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 $as_echo "print -r" >&6; } ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 $as_echo "cat" >&6; } ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ for ac_i in 1 2 3 4 5 6 7; do ac_script="$ac_script$as_nl$ac_script" done echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed { ac_script=; unset ac_script;} if test -z "$SED"; then ac_path_SED_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue # Check for GNU ac_path_SED and select it if it is found. # Check for GNU $ac_path_SED case `"$ac_path_SED" --version 2>&1` in *GNU*) ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo '' >> "conftest.nl" "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_SED_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_SED="$ac_path_SED" ac_path_SED_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_SED_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_SED"; then as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 fi else ac_cv_path_SED=$SED fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 $as_echo "$ac_cv_path_SED" >&6; } SED="$ac_cv_path_SED" rm -f conftest.sed test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 $as_echo_n "checking for fgrep... " >&6; } if ${ac_cv_path_FGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 then ac_cv_path_FGREP="$GREP -F" else if test -z "$FGREP"; then ac_path_FGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in fgrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue # Check for GNU ac_path_FGREP and select it if it is found. # Check for GNU $ac_path_FGREP case `"$ac_path_FGREP" --version 2>&1` in *GNU*) ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'FGREP' >> "conftest.nl" "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_FGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_FGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_FGREP"; then as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_FGREP=$FGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 $as_echo "$ac_cv_path_FGREP" >&6; } FGREP="$ac_cv_path_FGREP" test -z "$GREP" && GREP=grep # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then # Let the user override the test. lt_cv_path_NM="$NM" else lt_nm_to_check="${ac_tool_prefix}nm" if test -n "$ac_tool_prefix" && test "$build" = "$host"; then lt_nm_to_check="$lt_nm_to_check nm" fi for lt_tmp_nm in $lt_nm_to_check; do lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. tmp_nm="$ac_dir/$lt_tmp_nm" if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but continue # so that we can try to find one that supports BSD flags ;; esac ;; esac fi done IFS="$lt_save_ifs" done : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$DUMPBIN"; then : # Let the user override the test. else if test -n "$ac_tool_prefix"; then for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DUMPBIN"; then ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DUMPBIN=$ac_cv_prog_DUMPBIN if test -n "$DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 $as_echo "$DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$DUMPBIN" && break done fi if test -z "$DUMPBIN"; then ac_ct_DUMPBIN=$DUMPBIN for ac_prog in dumpbin "link -dump" do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DUMPBIN"; then ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN if test -n "$ac_ct_DUMPBIN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 $as_echo "$ac_ct_DUMPBIN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_DUMPBIN" && break done if test "x$ac_ct_DUMPBIN" = x; then DUMPBIN=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DUMPBIN=$ac_ct_DUMPBIN fi fi case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols" ;; *) DUMPBIN=: ;; esac fi if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 $as_echo_n "checking the name lister ($NM) interface... " >&6; } if ${lt_cv_nm_interface+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:$LINENO: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 $as_echo "$lt_cv_nm_interface" >&6; } # find the maximum length of command line arguments { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 $as_echo_n "checking the maximum length of command line arguments... " >&6; } if ${lt_cv_sys_max_cmd_len+:} false; then : $as_echo_n "(cached) " >&6 else i=0 teststring="ABCD" case $build_os in msdosdjgpp*) # On DJGPP, this test can blow up pretty badly due to problems in libc # (any single argument exceeding 2000 bytes causes a buffer overrun # during glob expansion). Even if it were fixed, the result of this # check would be larger than it should be. lt_cv_sys_max_cmd_len=12288; # 12K is about right ;; gnu*) # Under GNU Hurd, this test is not required because there is # no limit to the length of command line arguments. # Libtool will interpret -1 as no limit whatsoever lt_cv_sys_max_cmd_len=-1; ;; cygwin* | mingw* | cegcc*) # On Win9x/ME, this test blows up -- it succeeds, but takes # about 5 minutes as the teststring grows exponentially. # Worse, since 9x/ME are not pre-emptively multitasking, # you end up with a "frozen" computer, even though with patience # the test eventually succeeds (with a max line length of 256k). # Instead, let's just punt: use the minimum linelength reported by # all of the supported platforms: 8192 (on NT/2K/XP). lt_cv_sys_max_cmd_len=8192; ;; mint*) # On MiNT this can take a long time and run out of memory. lt_cv_sys_max_cmd_len=8192; ;; amigaos*) # On AmigaOS with pdksh, this test takes hours, literally. # So we just punt and use a minimum line length of 8192. lt_cv_sys_max_cmd_len=8192; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` elif test -x /usr/sbin/sysctl; then lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` else lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs fi # And add a safety zone lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` ;; interix*) # We know the value 262144 and hardcode it with a safety zone (like BSD) lt_cv_sys_max_cmd_len=196608 ;; osf*) # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not # nice to cause kernel panics so lets avoid the loop below. # First set a reasonable default. lt_cv_sys_max_cmd_len=16384 # if test -x /sbin/sysconfig; then case `/sbin/sysconfig -q proc exec_disable_arg_limit` in *1*) lt_cv_sys_max_cmd_len=-1 ;; esac fi ;; sco3.2v5*) lt_cv_sys_max_cmd_len=102400 ;; sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` else lt_cv_sys_max_cmd_len=32768 fi ;; *) lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` if test -n "$lt_cv_sys_max_cmd_len"; then lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` else # Make teststring a little bigger before we do anything with it. # a 1K string should be a reasonable start. for i in 1 2 3 4 5 6 7 8 ; do teststring=$teststring$teststring done SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} # If test is not a shell built-in, we'll probably end up computing a # maximum length that is only half of the actual maximum length, but # we can't tell. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ = "X$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done # Only check the string length outside the loop. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` teststring= # Add a significant safety factor because C++ compilers can tack on # massive amounts of additional arguments before passing them to the # linker. It appears as though 1/2 is a usable value. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` fi ;; esac fi if test -n $lt_cv_sys_max_cmd_len ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 $as_echo "none" >&6; } fi max_cmd_len=$lt_cv_sys_max_cmd_len : ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,b/c, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi # test EBCDIC or ASCII case `echo X|tr X '\101'` in A) # ASCII based system # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr lt_SP2NL='tr \040 \012' lt_NL2SP='tr \015\012 \040\040' ;; *) # EBCDIC based system lt_SP2NL='tr \100 \n' lt_NL2SP='tr \r\n \100\100' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } if ${lt_cv_to_host_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 ;; esac ;; *-*-cygwin* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin ;; *-*-cygwin* ) lt_cv_to_host_file_cmd=func_convert_file_noop ;; * ) # otherwise, assume *nix lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin ;; esac ;; * ) # unhandled hosts (and "normal" native builds) lt_cv_to_host_file_cmd=func_convert_file_noop ;; esac fi to_host_file_cmd=$lt_cv_to_host_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 $as_echo "$lt_cv_to_host_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } if ${lt_cv_to_tool_file_cmd+:} false; then : $as_echo_n "(cached) " >&6 else #assume ordinary cross tools, or native build. lt_cv_to_tool_file_cmd=func_convert_file_noop case $host in *-*-mingw* ) case $build in *-*-mingw* ) # actually msys lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 ;; esac ;; esac fi to_tool_file_cmd=$lt_cv_to_tool_file_cmd { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if ${lt_cv_ld_reload_flag+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_reload_flag='-r' fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 $as_echo "$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in cygwin* | mingw* | pw32* | cegcc*) if test "$GCC" != yes; then reload_cmds=false fi ;; darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. set dummy ${ac_tool_prefix}objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OBJDUMP"; then ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OBJDUMP=$ac_cv_prog_OBJDUMP if test -n "$OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 $as_echo "$OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OBJDUMP"; then ac_ct_OBJDUMP=$OBJDUMP # Extract the first word of "objdump", so it can be a program name with args. set dummy objdump; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OBJDUMP"; then ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OBJDUMP="objdump" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP if test -n "$ac_ct_OBJDUMP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 $as_echo "$ac_ct_OBJDUMP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OBJDUMP" = x; then OBJDUMP="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OBJDUMP=$ac_ct_OBJDUMP fi else OBJDUMP="$ac_cv_prog_OBJDUMP" fi test -z "$OBJDUMP" && OBJDUMP=objdump { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_deplibs_check_method='unknown' # Need to set the preceding variable on all platforms that support # interlibrary dependencies. # 'none' -- dependencies not supported. # `unknown' -- same as none, but documents that we really don't know. # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path # which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. case $host_os in aix[4-9]*) lt_cv_deplibs_check_method=pass_all ;; beos*) lt_cv_deplibs_check_method=pass_all ;; bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; cygwin*) # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' ;; mingw* | pw32*) # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else # Keep this pattern in sync with the one in func_win32_libid. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; cegcc*) # use the weaker test based on 'objdump'. See mingw*. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac else lt_cv_deplibs_check_method=pass_all fi ;; gnu*) lt_cv_deplibs_check_method=pass_all ;; haiku*) lt_cv_deplibs_check_method=pass_all ;; hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac ;; interix[3-9]*) # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' ;; irix5* | irix6* | nonstopux*) case $LD in *-32|*"-32 ") libmagic=32-bit;; *-n32|*"-n32 ") libmagic=N32;; *-64|*"-64 ") libmagic=64-bit;; *) libmagic=never-match;; esac lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; newos6*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; *nto* | *qnx*) lt_cv_deplibs_check_method=pass_all ;; openbsd*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) lt_cv_deplibs_check_method=pass_all ;; rdos*) lt_cv_deplibs_check_method=pass_all ;; solaris*) lt_cv_deplibs_check_method=pass_all ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; sysv4 | sysv4.3*) case $host_vendor in motorola) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; ncr) lt_cv_deplibs_check_method=pass_all ;; sequent) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; sni) lt_cv_file_magic_cmd='/bin/file' lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" lt_cv_file_magic_test_file=/lib/libc.so ;; siemens) lt_cv_deplibs_check_method=pass_all ;; pc) lt_cv_deplibs_check_method=pass_all ;; esac ;; tpf*) lt_cv_deplibs_check_method=pass_all ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } file_magic_glob= want_nocaseglob=no if test "$build" = "$host"; then case $host_os in mingw* | pw32*) if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then want_nocaseglob=yes else file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi ;; esac fi file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DLLTOOL"; then ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DLLTOOL=$ac_cv_prog_DLLTOOL if test -n "$DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 $as_echo "$DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DLLTOOL"; then ac_ct_DLLTOOL=$DLLTOOL # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DLLTOOL"; then ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DLLTOOL="dlltool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL if test -n "$ac_ct_DLLTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 $as_echo "$ac_ct_DLLTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DLLTOOL" = x; then DLLTOOL="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DLLTOOL=$ac_ct_DLLTOOL fi else DLLTOOL="$ac_cv_prog_DLLTOOL" fi test -z "$DLLTOOL" && DLLTOOL=dlltool { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_sharedlib_from_linklib_cmd='unknown' case $host_os in cygwin* | mingw* | pw32* | cegcc*) # two different shell functions defined in ltmain.sh # decide which to use based on capabilities of $DLLTOOL case `$DLLTOOL --help 2>&1` in *--identify-strict*) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib ;; *) lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback ;; esac ;; *) # fallback: assume linklib IS sharedlib lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO if test -n "$ac_tool_prefix"; then for ac_prog in ar do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AR"; then ac_cv_prog_AR="$AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AR=$ac_cv_prog_AR if test -n "$AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 $as_echo "$AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AR" && break done fi if test -z "$AR"; then ac_ct_AR=$AR for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_AR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_AR=$ac_cv_prog_ac_ct_AR if test -n "$ac_ct_AR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 $as_echo "$ac_ct_AR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_AR" && break done if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi fi : ${AR=ar} : ${AR_FLAGS=cru} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 $as_echo_n "checking for archiver @FILE support... " >&6; } if ${lt_cv_ar_at_file+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ar_at_file=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : echo conftest.$ac_objext > conftest.lst lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -eq 0; then # Ensure the archiver fails upon bogus file names. rm -f conftest.$ac_objext libconftest.a { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 (eval $lt_ar_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if test "$ac_status" -ne 0; then lt_cv_ar_at_file=@ fi fi rm -f conftest.* libconftest.a fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 $as_echo "$lt_cv_ar_at_file" >&6; } if test "x$lt_cv_ar_at_file" = xno; then archiver_list_spec= else archiver_list_spec=$lt_cv_ar_at_file fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi test -z "$STRIP" && STRIP=: if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi test -z "$RANLIB" && RANLIB=: # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' old_postinstall_cmds='chmod 644 $oldlib' old_postuninstall_cmds= if test -n "$RANLIB"; then case $host_os in openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi case $host_os in darwin*) lock_old_archive_extraction=yes ;; *) lock_old_archive_extraction=no ;; esac # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else # These are sane defaults that work on at least a few old systems. # [They come from Ultrix. What could be older than Ultrix?!! ;)] # Character class describing NM global symbol codes. symcode='[BCDEGRST]' # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' ;; osf*) symcode='[BCDEGQRST]' ;; solaris*) symcode='[BDRT]' ;; sco3.2v5*) symcode='[DT]' ;; sysv4.2uw2*) symcode='[DT]' ;; sysv5* | sco5v6* | unixware* | OpenUNIX*) symcode='[ABDT]' ;; sysv4) symcode='[DFNSTU]' ;; esac # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac # Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function # and D for any global variable. # Also find C++ and __fastcall symbols from MSVC++, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; void nm_test_func(void); void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then mv -f "$nlist"T "$nlist" else rm -f "$nlist"T fi # Make sure that we snagged all the symbols we need. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then if $GREP ' nm_test_func$' "$nlist" >/dev/null; then cat <<_LT_EOF > conftest.$ac_ext /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif #ifdef __cplusplus extern "C" { #endif _LT_EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' cat <<_LT_EOF >> conftest.$ac_ext /* The mapping between symbol names and symbols. */ LT_DLSYM_CONST struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext cat <<\_LT_EOF >> conftest.$ac_ext {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt__PROGRAM__LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif _LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_globsym_save_LIBS=$LIBS lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS=$lt_globsym_save_LIBS CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi else echo "cannot find nm_test_var in $nlist" >&5 fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 fi else echo "$progname: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done fi if test -z "$lt_cv_sys_global_symbol_pipe"; then lt_cv_sys_global_symbol_to_cdecl= fi if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; } fi # Response file support. if test "$lt_cv_nm_interface" = "MS dumpbin"; then nm_file_list_spec='@' elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then nm_file_list_spec='@' fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 $as_echo_n "checking for sysroot... " >&6; } # Check whether --with-sysroot was given. if test "${with_sysroot+set}" = set; then : withval=$with_sysroot; else with_sysroot=no fi lt_sysroot= case ${with_sysroot} in #( yes) if test "$GCC" = yes; then lt_sysroot=`$CC --print-sysroot 2>/dev/null` fi ;; #( /*) lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` ;; #( no|'') ;; #( *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 $as_echo "${with_sysroot}" >&6; } as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 $as_echo "${lt_sysroot:-no}" >&6; } # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Some flags need to be propagated to the compiler or linker for good # libtool support. case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE="32" ;; *ELF-64*) HPUX_IA64_MODE="64" ;; esac fi rm -rf conftest* ;; *-*-irix6*) # Find out which ABI we are using. echo '#line '$LINENO' "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; *N32*) LD="${LD-ld} -melf32bmipn32" ;; *64-bit*) LD="${LD-ld} -melf64bmip" ;; esac else case `/usr/bin/file conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; *N32*) LD="${LD-ld} -n32" ;; *64-bit*) LD="${LD-ld} -64" ;; esac fi fi rm -rf conftest* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) LD="${LD-ld} -m elf_s390" ;; sparc64-*linux*) LD="${LD-ld} -m elf32_sparc" ;; esac ;; *64-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_x86_64_fbsd" ;; x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; ppc*-*linux*|powerpc*-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) LD="${LD-ld} -m elf64_s390" ;; sparc*-*linux*) LD="${LD-ld} -m elf64_sparc" ;; esac ;; esac fi rm -rf conftest* ;; *-*-sco3.2v5*) # On SCO OpenServer 5, we need -belf to get full-featured binaries. SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } if ${lt_cv_cc_needs_belf+:} false; then : $as_echo_n "(cached) " >&6 else ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_cc_needs_belf=yes else lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 $as_echo "$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then LD="${LD-ld} -64" fi ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. set dummy ${ac_tool_prefix}mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MANIFEST_TOOL"; then ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL if test -n "$MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 $as_echo "$MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_MANIFEST_TOOL"; then ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL # Extract the first word of "mt", so it can be a program name with args. set dummy mt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_MANIFEST_TOOL"; then ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL if test -n "$ac_ct_MANIFEST_TOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_MANIFEST_TOOL" = x; then MANIFEST_TOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL fi else MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" fi test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } if ${lt_cv_path_mainfest_tool+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_path_mainfest_tool=no echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out cat conftest.err >&5 if $GREP 'Manifest Tool' conftest.out > /dev/null; then lt_cv_path_mainfest_tool=yes fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 $as_echo "$lt_cv_path_mainfest_tool" >&6; } if test "x$lt_cv_path_mainfest_tool" != xyes; then MANIFEST_TOOL=: fi case $host_os in rhapsody* | darwin*) if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$DSYMUTIL"; then ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi DSYMUTIL=$ac_cv_prog_DSYMUTIL if test -n "$DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 $as_echo "$DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_DSYMUTIL"; then ac_ct_DSYMUTIL=$DSYMUTIL # Extract the first word of "dsymutil", so it can be a program name with args. set dummy dsymutil; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_DSYMUTIL"; then ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL if test -n "$ac_ct_DSYMUTIL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 $as_echo "$ac_ct_DSYMUTIL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_DSYMUTIL" = x; then DSYMUTIL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac DSYMUTIL=$ac_ct_DSYMUTIL fi else DSYMUTIL="$ac_cv_prog_DSYMUTIL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. set dummy ${ac_tool_prefix}nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NMEDIT"; then ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NMEDIT=$ac_cv_prog_NMEDIT if test -n "$NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 $as_echo "$NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_NMEDIT"; then ac_ct_NMEDIT=$NMEDIT # Extract the first word of "nmedit", so it can be a program name with args. set dummy nmedit; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_NMEDIT"; then ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_NMEDIT="nmedit" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT if test -n "$ac_ct_NMEDIT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 $as_echo "$ac_ct_NMEDIT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_NMEDIT" = x; then NMEDIT=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac NMEDIT=$ac_ct_NMEDIT fi else NMEDIT="$ac_cv_prog_NMEDIT" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LIPO"; then ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LIPO=$ac_cv_prog_LIPO if test -n "$LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 $as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_LIPO"; then ac_ct_LIPO=$LIPO # Extract the first word of "lipo", so it can be a program name with args. set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_LIPO"; then ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO if test -n "$ac_ct_LIPO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 $as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_LIPO" = x; then LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac LIPO=$ac_ct_LIPO fi else LIPO="$ac_cv_prog_LIPO" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL"; then ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL=$ac_cv_prog_OTOOL if test -n "$OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 $as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL"; then ac_ct_OTOOL=$OTOOL # Extract the first word of "otool", so it can be a program name with args. set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL"; then ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL if test -n "$ac_ct_OTOOL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 $as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL" = x; then OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL=$ac_ct_OTOOL fi else OTOOL="$ac_cv_prog_OTOOL" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OTOOL64"; then ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OTOOL64=$ac_cv_prog_OTOOL64 if test -n "$OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 $as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_OTOOL64"; then ac_ct_OTOOL64=$OTOOL64 # Extract the first word of "otool64", so it can be a program name with args. set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_OTOOL64"; then ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 if test -n "$ac_ct_OTOOL64"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 $as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_OTOOL64" = x; then OTOOL64=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac OTOOL64=$ac_ct_OTOOL64 fi else OTOOL64="$ac_cv_prog_OTOOL64" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 $as_echo_n "checking for -single_module linker flag... " >&6; } if ${lt_cv_apple_cc_single_mod+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_apple_cc_single_mod=no if test -z "${LT_MULTI_MODULE}"; then # By default we will add the -single_module flag. You can override # by either setting the environment variable LT_MULTI_MODULE # non-empty at configure time, or by adding -multi_module to the # link flags. rm -rf libconftest.dylib* echo "int foo(void){return 1;}" > conftest.c echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c" >&5 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&5 fi rm -rf libconftest.dylib* rm -f conftest.* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } if ${lt_cv_ld_exported_symbols_list+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_ld_exported_symbols_list=yes else lt_cv_ld_exported_symbols_list=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 $as_echo_n "checking for -force_load linker flag... " >&6; } if ${lt_cv_ld_force_load+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_ld_force_load=no cat > conftest.c << _LT_EOF int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 echo "$AR cru libconftest.a conftest.o" >&5 $AR cru libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF int main() { return 0;} _LT_EOF echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err _lt_result=$? if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then lt_cv_ld_force_load=yes else cat conftest.err >&5 fi rm -f conftest.err libconftest.a conftest conftest.c rm -rf conftest.dSYM fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 $as_echo "$lt_cv_ld_force_load" >&6; } case $host_os in rhapsody* | darwin1.[012]) _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; darwin*) # darwin 5.x on # if running on 10.5 or later, the deployment target defaults # to the OS version, if on x86, and 10.4, the deployment # target defaults to 10.4. Don't you love it? case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10.0,*86*-darwin8*|10.0,*-darwin[91]*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10.[012]*) _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; esac ;; esac if test "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; then _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' else _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' fi if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac for ac_header in dlfcn.h do : ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default " if test "x$ac_cv_header_dlfcn_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done func_stripname_cnf () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname_cnf # Set options # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then : enableval=$enable_shared; p=${PACKAGE-default} case $enableval in yes) enable_shared=yes ;; no) enable_shared=no ;; *) enable_shared=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_shared=yes fi done IFS="$lt_save_ifs" ;; esac else enable_shared=yes fi # Check whether --enable-static was given. if test "${enable_static+set}" = set; then : enableval=$enable_static; p=${PACKAGE-default} case $enableval in yes) enable_static=yes ;; no) enable_static=no ;; *) enable_static=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_static=yes fi done IFS="$lt_save_ifs" ;; esac else enable_static=yes fi # Check whether --with-pic was given. if test "${with_pic+set}" = set; then : withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Check whether --enable-fast-install was given. if test "${enable_fast_install+set}" = set; then : enableval=$enable_fast_install; p=${PACKAGE-default} case $enableval in yes) enable_fast_install=yes ;; no) enable_fast_install=no ;; *) enable_fast_install=no # Look at the argument we got. We use all the common list separators. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for pkg in $enableval; do IFS="$lt_save_ifs" if test "X$pkg" = "X$p"; then enable_fast_install=yes fi done IFS="$lt_save_ifs" ;; esac else enable_fast_install=yes fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' test -z "$LN_S" && LN_S="ln -s" if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 $as_echo_n "checking for objdir... " >&6; } if ${lt_cv_objdir+:} false; then : $as_echo_n "(cached) " >&6 else rm -f .libs 2>/dev/null mkdir .libs 2>/dev/null if test -d .libs; then lt_cv_objdir=.libs else # MS-DOS does not allow filenames that begin with a dot. lt_cv_objdir=_libs fi rmdir .libs 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 $as_echo "$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir cat >>confdefs.h <<_ACEOF #define LT_OBJDIR "$lt_cv_objdir/" _ACEOF case $host_os in aix3*) # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Global variables: ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$LD" && LD=ld test -z "$ac_objext" && ac_objext=o for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/${ac_tool_prefix}file; then lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in [\\/*] | ?:[\\/]*) lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. ;; *) lt_save_MAGIC_CMD="$MAGIC_CMD" lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/file; then lt_cv_path_MAGIC_CMD="$ac_dir/file" if test -n "$file_magic_test_file"; then case $deplibs_check_method in "file_magic "*) file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | $EGREP "$file_magic_regex" > /dev/null; then : else cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. *** The result is that libtool may fail to recognize shared libraries *** as such. This will affect the creation of libtool libraries that *** depend on shared libraries, but programs linked with such libtool *** libraries will work regardless of this problem. Nevertheless, you *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org _LT_EOF fi ;; esac fi break fi done IFS="$lt_save_ifs" MAGIC_CMD="$lt_save_MAGIC_CMD" ;; esac fi MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 $as_echo "$MAGIC_CMD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac # Use C for the default configuration in the libtool script lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o objext=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(){return(0);}' # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # Save the default compiler, since it gets overwritten when the other # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then case $cc_basename in nvcc*) lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; *) lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static= ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) # +Z the default ;; *) lt_prog_compiler_pic='-fPIC' ;; esac ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; msdosdjgpp*) # Just because we use GCC doesn't mean we suddenly get shared libraries # on systems that don't support them. lt_prog_compiler_can_build_shared=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; *) lt_prog_compiler_pic='-fPIC' ;; esac case $cc_basename in nvcc*) # Cuda Compiler Driver 2.2 lt_prog_compiler_wl='-Xlinker ' lt_prog_compiler_pic='-Xcompiler -fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl='-Wl,' # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but # not for PA HP-UX. case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static='-non_shared' ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fPIC' lt_prog_compiler_static='-static' ;; # Lahey Fortran 8.1. lf95*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='--shared' lt_prog_compiler_static='--static' ;; nagfor*) # NAG Fortran compiler lt_prog_compiler_wl='-Wl,-Wl,,' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' ;; ccc*) lt_prog_compiler_wl='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; xl* | bgxl* | bgf* | mpixl*) # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ F* | *Sun*Fortran*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='' ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; esac ;; esac ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic='-fPIC -shared' ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static='-non_shared' ;; rdos*) lt_prog_compiler_static='-non_shared' ;; solaris*) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl='-Qoption ld ' lt_prog_compiler_pic='-PIC' lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic='-Kconform_pic' lt_prog_compiler_static='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; unicos*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_can_build_shared=no ;; uts4*) lt_prog_compiler_pic='-pic' lt_prog_compiler_static='-Bstatic' ;; *) lt_prog_compiler_can_build_shared=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic= ;; *) lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic=$lt_prog_compiler_pic fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 $as_echo "$lt_cv_prog_compiler_pic" >&6; } lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } if test x"$lt_cv_prog_compiler_pic_works" = xyes; then case $lt_prog_compiler_pic in "" | " "*) ;; *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; esac else lt_prog_compiler_pic= lt_prog_compiler_can_build_shared=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes fi else lt_cv_prog_compiler_static_works=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } if test x"$lt_cv_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= always_export_symbols=no archive_cmds= archive_expsym_cmds= compiler_needs_object=no enable_shared_with_static_runtimes=no export_dynamic_flag_spec= export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' hardcode_automatic=no hardcode_direct=no hardcode_direct_absolute=no hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_minus_L=no hardcode_shlibpath_var=unsupported inherit_rpath=no link_all_deplibs=unknown module_cmds= module_expsym_cmds= old_archive_from_new_cmds= old_archive_from_expsyms_cmds= thread_safe_flag_spec= whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= # exclude_expsyms can be an extended regexp of symbols to exclude # it will be wrapped by ` (' and `)$', so one must not match beginning or # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', # as well as any symbol that contains `d'. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out # platforms (ab)use it in PIC code, but their linkers get confused if # the symbol is explicitly referenced. Since portable code cannot # rely on this symbol name, it's probably fine to never include it in # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= case $host_os in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes # On some targets, GNU ld is compatible enough with the native linker # that we're better off using the native interface for both. lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then case $host_os in aix*) # The AIX port of GNU ld has always aspired to compatibility # with the native linker. However, as the warning in the GNU ld # block says, versions before 2.19.5* couldn't really create working # shared libraries, regardless of the interface used. case `$LD -v 2>&1` in *\ \(GNU\ Binutils\)\ 2.19.5*) ;; *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; *\ \(GNU\ Binutils\)\ [3-9]*) ;; *) lt_use_gnu_ld_interface=yes ;; esac ;; *) lt_use_gnu_ld_interface=yes ;; esac fi if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec= fi supports_anon_versioning=no case `$LD -v 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... *\ 2.11.*) ;; # other 2.11 versions *) supports_anon_versioning=yes ;; esac # See if GNU ld supports shared libraries. case $host_os in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you *** really care for shared libraries, you may want to install binutils *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. *** You will then need to restart the configuration process. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs=no fi ;; haiku*) archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs=yes ;; interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) tmp_diet=no if test "$host_os" = linux-dietlibc; then case $cc_basename in diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) esac fi if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ && test "$tmp_diet" = no then tmp_addflag=' $pic_flag' tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group f77 and f90 compilers whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; lf95*) # Lahey Fortran 8.1 whole_archive_flag_spec= tmp_sharedflag='--shared' ;; xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; nvcc*) # Cuda Compiler Driver 2.2 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi case $cc_basename in xlf* | bgf* | bgxlf* | mpixlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else ld_shlibs=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.9.1 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** reliably create shared libraries on SCO systems. Therefore, libtool *** is disabling shared libraries support. We urge you to upgrade GNU *** binutils to release 2.16.91.0.3 or newer. Another option is to modify *** your PATH or compiler configuration so that the native linker is *** used, and then restart. _LT_EOF ;; *) # For security reasons, it is highly recommended that you always # use absolute paths for naming shared libraries, and exclude the # DT_RUNPATH tag from executables and libraries. But doing so # requires that you compile everything twice, which is a pain. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac ;; sunos4*) archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct=yes hardcode_shlibpath_var=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then runpath_var= hardcode_libdir_flag_spec= export_dynamic_flag_spec= whole_archive_flag_spec= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag=unsupported always_export_symbols=yes archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global # defined symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds='' hardcode_direct=yes hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath_+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath_"; then lt_cv_aix_libpath_="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath_ fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds='' ;; m68k) archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in cl*) # Native MSVC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes file_list_spec='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, )='true' enable_shared_with_static_runtimes=yes export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' # Don't use ranlib old_postinstall_cmds='chmod 644 $oldlib' postlink_cmds='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # Assume MSVC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_from_new_cmds='true' # FIXME: Should let the user specify the lib program. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' enable_shared_with_static_runtimes=yes ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec='' fi link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" else ld_shlibs=no fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=no ;; # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little # extra space). freebsd2.2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes export_dynamic_flag_spec='${wl}-E' ;; hpux10*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_libdir_separator=: hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) # Older versions of the 11.00 compiler do not understand -b yet # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 $as_echo_n "checking if $CC understands -b... " >&6; } if ${lt_cv_prog_compiler__b+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler__b=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -b" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler__b=yes fi else lt_cv_prog_compiler__b=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 $as_echo "$lt_cv_prog_compiler__b" >&6; } if test x"$lt_cv_prog_compiler__b" = xyes; then archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi ;; esac fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' # Try to use the -exported_symbol ld option, if it does not # work, assume that -exports_file does not work either and # implicitly export all symbols. # This should be the same for all languages, so no per-tag cache variable. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } if ${lt_cv_irix_exported_symbol+:} false; then : $as_echo_n "(cached) " >&6 else save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (void) { return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : lt_cv_irix_exported_symbol=yes else lt_cv_irix_exported_symbol=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 $as_echo "$lt_cv_irix_exported_symbol" >&6; } if test "$lt_cv_irix_exported_symbol" = yes; then archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: inherit_rpath=yes link_all_deplibs=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; newsos6) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: hardcode_shlibpath_var=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no hardcode_direct_absolute=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' export_dynamic_flag_spec='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' else case `$CC -V 2>&1` in *"Compilers 5.0"*) wlarc='' archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' ;; *) wlarc='${wl}' archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' ;; esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes hardcode_shlibpath_var=no ;; sysv4) case $host_vendor in sni) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds='$CC -r -o $output$reload_objs' hardcode_direct=no ;; motorola) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var=no ;; sysv4.3*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no export_dynamic_flag_spec='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag='${wl}-z,text' archive_cmds_need_lc=no hardcode_shlibpath_var=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag='${wl}-z,text' allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; *) ld_shlibs=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) export_dynamic_flag_spec='${wl}-Blargedynsym' ;; esac fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no with_gnu_ld=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc" in x|xyes) # Assume -lc should be added archive_cmds_need_lc=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl pic_flag=$lt_prog_compiler_pic compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc=no else lt_cv_archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac case $host_os in mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; *) lt_sed_strip_eq="s,=/,/,g" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` case $lt_search_path_spec in *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` ;; *) lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` ;; esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` for lt_sys_path in $lt_search_path_spec; do if test -d "$lt_sys_path/$lt_multi_os_dir"; then lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" else test -d "$lt_sys_path" && \ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; for (lt_i = NF; lt_i > 0; lt_i--) { if ($lt_i != "" && $lt_i != ".") { if ($lt_i == "..") { lt_count++; } else { if (lt_count == 0) { lt_foo="/" $lt_i lt_foo; } else { lt_count--; } } } } if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` # AWK program above erroneously prepends '/' to C:/dos/paths # for these hosts. case $host_os in mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ $SED 's,/\([A-Za-z]:\),\1,g'` ;; esac sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; haiku*) version_type=linux need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } if test "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown else lt_cv_dlopen=no lt_cv_dlopen_libs= case $host_os in beos*) lt_cv_dlopen="load_add_on" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ;; mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_shl_load=yes else ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dl_dlopen=yes else ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_svld_dlopen=yes else ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dld_dld_link=yes else ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" save_LIBS="$LIBS" LIBS="$lt_cv_dlopen_libs $LIBS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; esac else : # compilation failed lt_cv_dlopen_self=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 $as_echo "$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self_static=cross else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF #line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #ifdef RTLD_GLOBAL # define LT_DLGLOBAL RTLD_GLOBAL #else # ifdef DL_GLOBAL # define LT_DLGLOBAL DL_GLOBAL # else # define LT_DLGLOBAL 0 # endif #endif /* We may have to define LT_DLLAZY_OR_NOW in the command line if we find out it does not work in some platform. */ #ifndef LT_DLLAZY_OR_NOW # ifdef RTLD_LAZY # define LT_DLLAZY_OR_NOW RTLD_LAZY # else # ifdef DL_LAZY # define LT_DLLAZY_OR_NOW DL_LAZY # else # ifdef RTLD_NOW # define LT_DLLAZY_OR_NOW RTLD_NOW # else # ifdef DL_NOW # define LT_DLLAZY_OR_NOW DL_NOW # else # define LT_DLLAZY_OR_NOW 0 # endif # endif # endif # endif #endif /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) int fnord () __attribute__((visibility("default"))); #endif int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; else { if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; else puts (dlerror ()); } /* dlclose (self); */ } else puts (dlerror ()); return status; } _LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; esac else : # compilation failed lt_cv_dlopen_self_static=no fi fi rm -fr conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 $as_echo "$lt_cv_dlopen_self_static" >&6; } fi CPPFLAGS="$save_CPPFLAGS" LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; esac case $lt_cv_dlopen_self in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; *) enable_dlopen_self=unknown ;; esac case $lt_cv_dlopen_self_static in yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; *) enable_dlopen_self_static=unknown ;; esac fi striplib= old_striplib= { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 $as_echo_n "checking whether stripping libraries is possible... " >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } ;; esac fi # Report which library types will actually be built { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 $as_echo_n "checking if libtool supports shared libraries... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 $as_echo "$can_build_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 $as_echo_n "checking whether to build shared libraries... " >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # are all built from PIC. case $host_os in aix3*) test "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 $as_echo "$enable_shared" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 $as_echo_n "checking whether to build static libraries... " >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 $as_echo "$enable_static" >&6; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 $as_echo "$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_cxx_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu else _lt_caught_CXX_error=yes fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds reload_flag_CXX=$reload_flag reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="int some_variable = 0;" # Code to be used in simple link tests lt_simple_link_test_code='int main(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} # If no C compiler flags were specified, use CFLAGS. LTCFLAGS=${LTCFLAGS-"$CFLAGS"} # Allow CC to be a program name with arguments. compiler=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` $RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` $RM -r conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_CFLAGS=$CFLAGS lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} CFLAGS=$CXXFLAGS compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 $as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some variants of GNU ld only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$lt_cv_path_LD" -v 2>&1 &5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 $as_echo "$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no exp_sym_flag='-Bexport' no_entry_flag="" else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; esac exp_sym_flag='-bexport' no_entry_flag='-bnoentry' fi # When large executables or shared objects are built, AIX ld can # have problems creating the table of contents. If linking a library # or program results in "error TOC overflow" add -mminimal-toc to # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes file_list_spec_CXX='${wl}-f,' if test "$GXX" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && strings "$collect2name" | $GREP resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct_CXX=unsupported # It fails to find uninstalled libraries when the uninstalled # path is not listed in the libpath. Setting hardcode_minus_L # to unsupported forces relinking hardcode_minus_L_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; then # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi export_dynamic_flag_spec_CXX='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to # export. always_export_symbols_CXX=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag_CXX='-berok' # Determine the default libpath from the value encoded in an empty # executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else # Determine the default libpath from the value encoded in an # empty executable. if test "${lt_cv_aix_libpath+set}" = set; then aix_libpath=$lt_cv_aix_libpath else if ${lt_cv_aix_libpath__CXX+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\([^ ]*\) *$/\1/ p } }' lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` # Check for a 64-bit object if we didn't find anything. if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test -z "$lt_cv_aix_libpath__CXX"; then lt_cv_aix_libpath__CXX="/usr/lib:/lib" fi fi aix_libpath=$lt_cv_aix_libpath__CXX fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' if test "$with_gnu_ld" = yes; then # We only use this code for GNU lds that support --whole-archive. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' else # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' fi archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared # libraries. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in ,cl* | no,cl*) # Native MSVC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=yes file_list_spec_CXX='@' # Tell ltmain to make .lib files, not .a files. libext=lib # Tell ltmain to make .dll files, not .so files. shrext_cmds=".dll" # FIXME: Setting linknames here is a bad hack. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; else $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; fi~ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ linknames=' # The linker will not automatically build a static lib if we build a DLL. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' enable_shared_with_static_runtimes_CXX=yes # Don't use ranlib old_postinstall_cmds_CXX='chmod 644 $oldlib' postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ lt_tool_outputfile="@TOOL_OUTPUT@"~ case $lt_outputfile in *.exe|*.EXE) ;; *) lt_outputfile="$lt_outputfile.exe" lt_tool_outputfile="$lt_tool_outputfile.exe" ;; esac~ func_to_tool_file "$lt_outputfile"~ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; $RM "$lt_outputfile.manifest"; fi' ;; *) # g++ # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname.def; else echo EXPORTS > $output_objdir/$soname.def; cat $export_symbols >> $output_objdir/$soname.def; fi~ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else ld_shlibs_CXX=no fi ;; esac ;; darwin* | rhapsody*) archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported if test "$lt_cv_ld_force_load" = "yes"; then whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' else whole_archive_flag_spec_CXX='' fi link_all_deplibs_CXX=yes allow_undefined_flag_CXX="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" if test "$lt_cv_apple_cc_single_mod" != "yes"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi else ld_shlibs_CXX=no fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before # switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; haiku*) archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' link_all_deplibs_CXX=yes ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_direct_absolute_CXX=yes hardcode_minus_L_CXX=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}-E' # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. # Instead, shared libraries are loaded at an image base (0x10000000 by # default) and relocated if they conflict, which is a slow very memory # consuming and fragmenting process. To avoid this, we pick a random, # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: inherit_rpath_CXX=yes ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [1-5].* | *pgcpp\ [1-5].*) prelink_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' old_archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ $RANLIB $oldlib' archive_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 and above use weak symbols archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' ;; xl* | mpixl* | bgxl*) # IBM XL 8.0 on PPC, with GNU ld hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' compiler_needs_object_CXX=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) ld_shlibs_CXX=yes ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no hardcode_direct_absolute_CXX=yes archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=func_echo_all else ld_shlibs_CXX=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) case $host in osf3*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' ;; *) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' hardcode_libdir_flag_spec_CXX='-rpath $libdir' ;; esac hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=no case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. # Supported since Solaris 2.6 (maybe 2.5.1?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='func_echo_all' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT use -z defs as we might desire, because we do not # link with -lc, and that would cause any symbols used from libc to # always be unresolved, which means just about no library would # ever link correctly. If we're not using GNU ld we use -z text # though, which does catch some bad symbols but isn't as heavy-handed # as -z defs. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ '"$old_archive_cmds_CXX" reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ '"$reload_cmds_CXX" ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" ## CAVEAT EMPTOR: ## There is no encapsulation within the following macros, do not change ## the running order or otherwise move them around unless you know exactly ## what you are doing... # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF _lt_libdeps_save_CFLAGS=$CFLAGS case "$CC $CFLAGS " in #( *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue fi # Expand the sysroot to ease extracting the directories later. if test -z "$prev"; then case $p in -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; esac fi case $p in =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; esac if test "$pre_test_object_deps_done" = no; then case ${prev} in -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi prev= ;; *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $RM -f confest.$objext CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in interix[3-9]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac compiler_lib_search_dirs_CXX= if test -n "${compiler_lib_search_path_CXX}"; then compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support lt_prog_compiler_pic_CXX='-fPIC' ;; m68k) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; haiku*) # PIC is the default for Haiku. # The "-static" flag exists, but is broken. lt_prog_compiler_static_CXX= ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # PIC is the default for 64-bit PA HP-UX, but not for 32-bit # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag # sets the default TLS model and affects inlining. case $host_cpu in hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix[4-9]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) # IBM XL 8.0, 9.0 on PPC and BlueGene lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-qpic' lt_prog_compiler_static_CXX='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. lt_prog_compiler_pic_CXX='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC* | sunCC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } if ${lt_cv_prog_compiler_pic_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. # The option is referenced via a variable to avoid confusing sed. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works_CXX=yes fi fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works_CXX=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $lt_tmp_static_flag" echo "$lt_simple_link_test_code" > conftest.$ac_ext if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then # The linker can only warn and ignore the option if not recognized # So say no if there are warnings if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works_CXX=yes fi else lt_cv_prog_compiler_static_works_CXX=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o_CXX=no $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-o out/conftest2.$ac_objext" # Insert the option either (1) after the last *FLAGS variable, or # (2) before a word containing "conftest.", or (3) at the end. # Note that $ac_compile itself does not contain backslashes and begins # with a dollar sign (not a hyphen), so the echo should work correctly. lt_compile=`echo "$ac_compile" | $SED \ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o_CXX=yes fi fi chmod u+w . 2>&5 $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files $RM out/* && rmdir out cd .. $RM -r conftest $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 $as_echo "$hard_links" >&6; } if test "$hard_links" = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' case $host_os in aix[4-9]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm # Also, AIX nm treats weak defined symbols like other global defined # symbols, whereas GNU nm marks them as "W". if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) case $cc_basename in cl*) ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' ;; esac ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no with_gnu_ld_CXX=$with_gnu_ld # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX in *'~'*) # FIXME: we may have to deal with multi-command sequences. ;; '$CC '*) # Test whether the compiler implicitly links with -lc since on some # systems, -lgcc has to come before -lc. If gcc already passes -lc # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : $as_echo_n "(cached) " >&6 else $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } then lt_cv_archive_cmds_need_lc_CXX=no else lt_cv_archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX ;; esac fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } library_names_spec= libname_spec='lib$name' soname_spec= shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= finish_eval= shlibpath_var= shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no # when you set need_version to no, make sure it does not cause -set_version # flags to be left without arguments need_version=unknown case $host_os in aix3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH # AIX 3 has no versioning support, so we append a major version to the name. soname_spec='${libname}${release}${shared_ext}$major' ;; aix[4-9]*) version_type=linux need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file # for dependence libraries. The import file would start with # the line `#! .'. This would cause the generated library to # depend on `.', always an invalid library. This was fixed in # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no fi ;; esac # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi ;; amigaos*) case $host_cpu in powerpc) # Since July 2007 AmigaOS4 officially supports .so libraries. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' ;; m68k) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; esac ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs ;; cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$cc_basename in yes,*) # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ chmod a+x \$dldir/$dlname~ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac dynamic_linker='Win32 ld.exe' ;; *,cl*) # Native MSVC libname_spec='$name' soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' library_names_spec='${libname}.dll.lib' case $build_os in mingw*) sys_lib_search_path_spec= lt_save_ifs=$IFS IFS=';' for lt_path in $LIB do IFS=$lt_save_ifs # Let DOS variable expansion print the short 8.3 style file name. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" done IFS=$lt_save_ifs # Convert to MSYS style. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form # but this time dos style (no spaces!) so that the unix form looks # like /cygdrive/c/PROGRA~1:/cygdr... sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` ;; *) sys_lib_search_path_spec="$LIB" if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` else sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # FIXME: find the short name or the path components, as spaces are # common. (e.g. "Program Files" -> "PROGRA~1") ;; esac # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $RM \$dlpath' shlibpath_overrides_runpath=yes dynamic_linker='Win32 link.exe' ;; *) # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' dynamic_linker='Win32 ld.exe' ;; esac # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; darwin* | rhapsody*) dynamic_linker="$host_os dyld" version_type=darwin need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then objformat=`/usr/bin/objformat` else case $host_os in freebsd[123]*) objformat=aout ;; *) objformat=elf ;; esac fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac shlibpath_var=LD_LIBRARY_PATH case $host_os in freebsd2*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; *) # from 4.6 on, and DragonFly shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac ;; gnu*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; haiku*) version_type=linux need_lib_prefix=no need_version=no dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LIBRARY_PATH shlibpath_overrides_runpath=yes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. version_type=sunos need_lib_prefix=no need_version=no case $host_cpu in ia64*) shrext_cmds='.so' hardcode_into_libs=yes dynamic_linker="$host_os dld.so" shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' if test "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; hppa*64*) shrext_cmds='.sl' hardcode_into_libs=yes dynamic_linker="$host_os dld.sl" shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' ;; esac # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' # or fails outright, so override atomically: install_override_mode=555 ;; interix[3-9]*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then version_type=linux else version_type=irix fi ;; esac need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= libmagic=32-bit;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; esac shlibpath_var=LD_LIBRARY${shlibsuff}_PATH shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. linux* | k*bsd*-gnu | kopensolaris*-gnu) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # Some binutils ld are patched to set DT_RUNPATH if ${lt_cv_shlibpath_overrides_runpath+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_shlibpath_overrides_runpath=no save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : lt_cv_shlibpath_overrides_runpath=yes fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS=$save_LDFLAGS libdir=$save_libdir fi shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. hardcode_into_libs=yes # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, # most powerpc-linux boxes support dynamic linking these days and # people can always --disable-shared, the test was removed, and we # assume the GNU/Linux dynamic linker is in use. dynamic_linker='GNU/Linux ld.so' ;; netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; newsos6) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; *nto* | *qnx*) version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes dynamic_linker='ldqnx.so' ;; openbsd*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf need_lib_prefix=no need_version=no soname_spec='${libname}${release}${shared_ext}$major' library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" ;; rdos*) dynamic_linker=no ;; solaris*) version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes # ldd complains unless libraries are executable postinstall_cmds='chmod +x $lib' ;; sunos4*) version_type=sunos library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes if test "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) shlibpath_overrides_runpath=no need_lib_prefix=no runpath_var=LD_RUN_PATH ;; siemens) need_lib_prefix=no ;; motorola) need_lib_prefix=no need_version=no shlibpath_overrides_runpath=no sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' ;; esac ;; sysv4*MP*) if test -d /usr/nec ;then version_type=linux library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) version_type=freebsd-elf need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" ;; esac fi sys_lib_dlsearch_path_spec='/usr/lib' ;; tpf*) # TPF is a cross-target only. Preferred cross-host = GNU/Linux. version_type=linux need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; uts4*) version_type=linux library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH ;; *) dynamic_linker=no ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct_CXX" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 $as_echo "$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink || test "$inherit_rpath_CXX" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi fi # test -n "$compiler" CC=$lt_save_CC CFLAGS=$lt_save_CFLAGS LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_config_commands="$ac_config_commands libtool" # Only expand once: subdirs="$subdirs libltdl" use_builtin_libtool="no" if test "x$ltdllib" = "xtrue"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; } if ${ac_cv_lib_ltdl_lt_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lltdl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char lt_dlopen (); int main () { return lt_dlopen (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ltdl_lt_dlopen=yes else ac_cv_lib_ltdl_lt_dlopen=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; } if test "x$ac_cv_lib_ltdl_lt_dlopen" = xyes; then : LIBLTDL="-lltdl" else use_builtin_libtool="yes" fi if test "x$use_builtin_libtool" = "xno"; then for ac_header in ltdl.h do : ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" if test "x$ac_cv_header_ltdl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LTDL_H 1 _ACEOF else use_builtin_libtool="yes" fi done fi else use_builtin_libtool="yes" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using the included libltdl " >&5 $as_echo_n "checking if we are using the included libltdl ... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_builtin_libtool " >&5 $as_echo "$use_builtin_libtool " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared lib extension" >&5 $as_echo_n "checking for shared lib extension... " >&6; } SHLIBEXT="$shrext_cmds" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shrext_cmds" >&5 $as_echo "$shrext_cmds" >&6; } if test "x$iconv" = "xtrue"; then # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; for dir in `echo "$withval" | tr : ' '`; do if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS -liconv" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 $as_echo_n "checking for iconv declaration... " >&6; } if ${am_cv_proto_iconv+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : am_cv_proto_iconv_arg1="" else am_cv_proto_iconv_arg1="const" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- }$am_cv_proto_iconv" >&5 $as_echo "${ac_t:- }$am_cv_proto_iconv" >&6; } cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi LIBICONV= if test "$am_cv_lib_iconv" = yes; then LIBICONV="-liconv" fi iconv_char_enc="auto-search" # Check whether --with-iconv_char_enc was given. if test "${with_iconv_char_enc+set}" = set; then : withval=$with_iconv_char_enc; iconv_char_enc="$withval" fi ICONV_CHAR_ENCODING="$iconv_char_enc" iconv_ucode_enc="auto-search" # Check whether --with-iconv_ucode_enc was given. if test "${with_iconv_ucode_enc+set}" = set; then : withval=$with_iconv_ucode_enc; iconv_ucode_enc="$withval" fi ICONV_CHAR_ENCODING="" ICONV_UNICODE_ENCODING="" if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for encoding to use for CHAR representations " >&5 $as_echo_n "checking for encoding to use for CHAR representations ... " >&6; }; ICONV_CHAR_ENCODING="$iconv_char_enc" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_char_enc " >&5 $as_echo "$iconv_char_enc " >&6; }; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for encoding to use for UNICODE representations " >&5 $as_echo_n "checking for encoding to use for UNICODE representations ... " >&6; }; ICONV_UNICODE_ENCODING="$iconv_ucode_enc" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_ucode_enc " >&5 $as_echo "$iconv_ucode_enc " >&6; }; fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 $as_echo_n "checking for crypt in -lcrypt... " >&6; } if ${ac_cv_lib_crypt_crypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcrypt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char crypt (); int main () { return crypt (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_crypt_crypt=yes else ac_cv_lib_crypt_crypt=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } if test "x$ac_cv_lib_crypt_crypt" = xyes; then : LIBADD_CRYPT="-lcrypt"; $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 $as_echo_n "checking for pow in -lm... " >&6; } if ${ac_cv_lib_m_pow+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pow (); int main () { return pow (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_pow=yes else ac_cv_lib_m_pow=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 $as_echo "$ac_cv_lib_m_pow" >&6; } if test "x$ac_cv_lib_m_pow" = xyes; then : LIBADD_POW="-lm" fi have_readline="no" if test "x$readline" = "xtrue"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline " >&5 $as_echo_n "checking for readline in -lreadline ... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lreadline $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char readline(); int main () { readline() ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } READLINE=-lreadline have_readline="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline -lcurses " >&5 $as_echo_n "checking for readline in -lreadline -lcurses ... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lreadline -lcurses $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char readline(); int main () { readline() ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } READLINE="-lreadline -lcurses" have_readline="yes" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$have_readline" = "xyes"; then for ac_header in readline/history.h do : ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" if test "x$ac_cv_header_readline_history_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_READLINE_HISTORY_H 1 _ACEOF $as_echo "#define HAVE_READLINE 1" >>confdefs.h fi done fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Are we using ini caching " >&5 $as_echo_n "checking Are we using ini caching ... " >&6; } if test "x$inicaching" = "xtrue"; then CFLAGS="$CFLAGS -DENABLE_INI_CACHING" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes " >&5 $as_echo "yes " >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no " >&5 $as_echo "no " >&6; }; fi if test "x$drivers" = "xtrue"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking Are we using flex " >&5 $as_echo_n "checking Are we using flex ... " >&6; } if test "x$LEX" = "xflex"; then LFLAGS="$LFLAGS -i" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes " >&5 $as_echo "yes " >&6; }; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scandir in -lc" >&5 $as_echo_n "checking for scandir in -lc... " >&6; } if ${ac_cv_lib_c_scandir+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char scandir (); int main () { return scandir (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_scandir=yes else ac_cv_lib_c_scandir=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_scandir" >&5 $as_echo "$ac_cv_lib_c_scandir" >&6; } if test "x$ac_cv_lib_c_scandir" = xyes; then : $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - text driver disabled " >&5 $as_echo "no - text driver disabled " >&6; }; fi if test "x$LEX" = "xflex" ; then HAVE_FLEX_TRUE= HAVE_FLEX_FALSE='#' else HAVE_FLEX_TRUE='#' HAVE_FLEX_FALSE= fi else if test "xabc" = "xdef" ; then HAVE_FLEX_TRUE= HAVE_FLEX_FALSE='#' else HAVE_FLEX_TRUE='#' HAVE_FLEX_FALSE= fi fi case $host_os in *qnx* ) qnx="true" $as_echo "#define QNX_LIBLTDL 1" >>confdefs.h ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_time=yes else ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 $as_echo "$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi for ac_header in sys/time.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" if test "x$ac_cv_header_sys_time_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_TIME_H 1 _ACEOF fi done # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking if platform is 64 bit" >&5 $as_echo_n "checking if platform is 64 bit... " >&6; } if test "$ac_cv_sizeof_long" = "8"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: Yes " >&5 $as_echo "Yes " >&6; }; $as_echo "#define PLATFORM64 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: result: No " >&5 $as_echo "No " >&6; }; fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 $as_echo_n "checking for long long... " >&6; } if ${ac_cv_type_long_long+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { long long x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_type_long_long=yes else ac_cv_type_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 $as_echo "$ac_cv_type_long_long" >&6; } if eval "test \"`echo $ac_cv_type_long_long`\" = yes"; then $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h fi # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : else if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "cannot compute sizeof (long int) See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 $as_echo "$ac_cv_sizeof_long_int" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int _ACEOF for ac_func in strcasecmp strncasecmp vsnprintf strtol atoll strtoll endpwent gettimeofday ftime time stricmp strnicmp do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done LIBADD_DL= THREADLIB="" if test "x$thread" = "xtrue"; then if test "x$gnuthread" = "xtrue"; then PTH_CPPFLAGS='' PTH_CFLAGS='' PTH_LDFLAGS='' PTH_LIBS='' { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5 $as_echo_n "checking for GNU Pth... " >&6; } if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 $as_echo " " >&6; } fi # Check whether --with-pth was given. if test "${with_pth+set}" = set; then : withval=$with_pth; else with_pth="yes" fi # Check whether --with-pth-test was given. if test "${with_pth_test+set}" = set; then : withval=$with_pth_test; else with_pth_test="yes" fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Command Line Options:" >&5 $as_echo " + Command Line Options:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o --with-pth=$with_pth" >&5 $as_echo " o --with-pth=$with_pth" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o --with-pth-test=$with_pth_test" >&5 $as_echo " o --with-pth-test=$with_pth_test" >&6; } fi if test ".$with_pth" != .no; then _pth_subdir=no _pth_subdir_opts='' case "$with_pth" in subdir:* ) _pth_subdir=yes _pth_subdir_opts=`echo $with_pth | sed -e 's/^subdir:[^ ]*[ ]*//'` with_pth=`echo $with_pth | sed -e 's/^subdir:\([^ ]*\).*$/\1/'` ;; esac _pth_version="" _pth_location="" _pth_type="" _pth_cppflags="" _pth_cflags="" _pth_ldflags="" _pth_libs="" if test ".$with_pth" = .yes; then # via config script in $PATH _pth_version=`(pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` if test ".$_pth_version" != .; then _pth_location=`pth-config --prefix` _pth_type='installed' _pth_cppflags=`pth-config --cflags` _pth_cflags=`pth-config --cflags` _pth_ldflags=`pth-config --ldflags` _pth_libs=`pth-config --libs` fi elif test -d "$with_pth"; then with_pth=`echo $with_pth | sed -e 's;/*$;;'` _pth_found=no # via locally included source tree if test ".$_pth_subdir" = .yes; then _pth_location="$with_pth" _pth_type='local' _pth_cppflags="-I$with_pth" _pth_cflags="-I$with_pth" if test -f "$with_pth/ltconfig"; then _pth_ldflags="-L$with_pth/.libs" else _pth_ldflags="-L$with_pth" fi _pth_libs="-lpth" _pth_version=`grep '^const char PTH_Hello' $with_pth/pth_vers.c |\ sed -e 's;^.*Version[ ]*\([0-9]*\.[0-9]*[.ab][0-9]*\)[ ].*$;\1;'` _pth_found=yes ac_configure_args="$ac_configure_args --enable-subdir $_pth_subdir_opts" with_pth_test=no fi # via config script under a specified directory # (a standard installation, but not a source tree) if test ".$_pth_found" = .no; then for _dir in $with_pth/bin $with_pth; do if test -f "$_dir/pth-config"; then test -f "$_dir/pth-config.in" && continue # pth-config in source tree! _pth_version=`($_dir/pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` if test ".$_pth_version" != .; then _pth_location=`$_dir/pth-config --prefix` _pth_type="installed" _pth_cppflags=`$_dir/pth-config --cflags` _pth_cflags=`$_dir/pth-config --cflags` _pth_ldflags=`$_dir/pth-config --ldflags` _pth_libs=`$_dir/pth-config --libs` _pth_found=yes break fi fi done fi # in any subarea under a specified directory # (either a special installation or a Pth source tree) if test ".$_pth_found" = .no; then _pth_found=0 for _file in x `find $with_pth -name "pth.h" -type f -print`; do test .$_file = .x && continue _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` _pth_version=`($_dir/pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` if test ".$_pth_version" = .; then _pth_version=`grep '^#define PTH_VERSION_STR' $_file |\ sed -e 's;^#define[ ]*PTH_VERSION_STR[ ]*"\([0-9]*\.[0-9]*[.ab][0-9]*\)[ ].*$;\1;'` fi _pth_cppflags="-I$_dir" _pth_cflags="-I$_dir" _pth_found=`expr $_pth_found + 1` done for _file in x `find $with_pth -name "libpth.[aso]" -type f -print`; do test .$_file = .x && continue _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` _pth_ldflags="-L$_dir" _pth_libs="-lpth" _pth_found=`expr $_pth_found + 1` done if test ".$_pth_found" = .2; then _pth_location="$with_pth" _pth_type="uninstalled" else _pth_version='' fi fi fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Determined Location:" >&5 $as_echo " + Determined Location:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o path: $_pth_location" >&5 $as_echo " o path: $_pth_location" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o type: $_pth_type" >&5 $as_echo " o type: $_pth_type" >&6; } fi if test ".$_pth_version" = .; then if test ".$with_pth" != .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Unable to locate GNU Pth under $with_pth. Please specify the correct path to either a GNU Pth installation tree (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a path to a pth-X.Y.Z/ directory; but make sure the package is already built, i.e., the "configure; make" step was already performed there). EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Unable to locate GNU Pth in any system-wide location (see \$PATH). Please specify the correct path to either a GNU Pth installation tree (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a path to a pth-X.Y.Z/ directory; but make sure the package is already built, i.e., the "configure; make" step was already performed there). EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 fi fi _req_version="1.3.0 " for _var in _pth_version _req_version; do eval "_val=\"\$${_var}\"" _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'` _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'` _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'` _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'` case $_rtype in "a" ) _rtype=0 ;; "b" ) _rtype=1 ;; "." ) _rtype=2 ;; esac _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \ "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"` eval "${_var}_hex=\"\$_hex\"" done if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Determined Versions:" >&5 $as_echo " + Determined Versions:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o existing: $_pth_version -> 0x$_pth_version_hex" >&5 $as_echo " o existing: $_pth_version -> 0x$_pth_version_hex" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o required: $_req_version -> 0x$_req_version_hex" >&5 $as_echo " o required: $_req_version -> 0x$_req_version_hex" >&6; } fi _ok=0 if test ".$_pth_version_hex" != .; then if test ".$_req_version_hex" != .; then if test $_pth_version_hex -ge $_req_version_hex; then _ok=1 fi fi fi if test ".$_ok" = .0; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Found Pth version $_pth_version, but required at least version $_req_version. Upgrade Pth under $_pth_location to $_req_version or higher first, please. EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 fi if test ".$with_pth_test" = .yes; then _ac_save_CPPFLAGS="$CPPFLAGS" _ac_save_CFLAGS="$CFLAGS" _ac_save_LDFLAGS="$LDFLAGS" _ac_save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $_pth_cppflags" CFLAGS="$CFLAGS $_pth_cflags" LDFLAGS="$LDFLAGS $_pth_ldflags" LIBS="$LIBS $_pth_libs" if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Test Build Environment:" >&5 $as_echo " + Test Build Environment:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o CPPFLAGS=\"$CPPFLAGS\"" >&5 $as_echo " o CPPFLAGS=\"$CPPFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o CFLAGS=\"$CFLAGS\"" >&5 $as_echo " o CFLAGS=\"$CFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o LDFLAGS=\"$LDFLAGS\"" >&5 $as_echo " o LDFLAGS=\"$LDFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o LIBS=\"$LIBS\"" >&5 $as_echo " o LIBS=\"$LIBS\"" >&6; } fi cross_compile=no if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Performing Sanity Checks:" >&5 $as_echo " + Performing Sanity Checks:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o pre-processor test" >&5 $as_echo " o pre-processor test" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : _ok=yes else _ok=no fi rm -f conftest.err conftest.i conftest.$ac_ext if test ".$_ok" != .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity pre-processor check. This means the GNU Pth header pth.h was not found. We used the following build environment: >> CPP="$CPP" >> CPPFLAGS="$CPPFLAGS" See config.log for possibly more details. EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o link check" >&5 $as_echo " o link check" >&6; } fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { int main(int argc, char *argv) { FILE *fp; if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "hmm"); fclose(fp); pth_init(); pth_kill(); if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "yes"); fclose(fp); exit(0); } ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : _ok=yes else _ok=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test ".$_ok" != .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity linker check. This means the GNU Pth library libpth.a was not found. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details. EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o run-time check" >&5 $as_echo " o run-time check" >&6; } fi if test "$cross_compiling" = yes; then : _ok=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main(int argc, char *argv) { FILE *fp; if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "hmm"); fclose(fp); pth_init(); pth_kill(); if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "yes"); fclose(fp); exit(0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : _ok=`cat conftestval` else _ok=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi if test ".$_ok" != .yes; then if test ".$_ok" = .no; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity execution check. This usually means that the GNU Pth shared library libpth.so is present but \$LD_LIBRARY_PATH is incomplete to execute a Pth test. In this case either disable this test via --without-pth-test, or extend \$LD_LIBRARY_PATH, or build GNU Pth as a static library only via its --disable-shared Autoconf option. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details. EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: *FAILED*" >&5 $as_echo "*FAILED*" >&6; } echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity run-time check. This usually means that the GNU Pth library failed to work and possibly caused a core dump in the test program. In this case it is strongly recommended that you re-install GNU Pth and this time make sure that it really passes its "make test" procedure. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details. EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 fi fi _extendvars="yes" if test ".$_extendvars" != .yes; then CPPFLAGS="$_ac_save_CPPFLAGS" CFLAGS="$_ac_save_CFLAGS" LDFLAGS="$_ac_save_LDFLAGS" LIBS="$_ac_save_LIBS" fi else _extendvars="yes" if test ".$_extendvars" = .yes; then if test ".$_pth_subdir" = .yes; then CPPFLAGS="$CPPFLAGS $_pth_cppflags" CFLAGS="$CFLAGS $_pth_cflags" LDFLAGS="$LDFLAGS $_pth_ldflags" LIBS="$LIBS $_pth_libs" fi fi fi PTH_CPPFLAGS="$_pth_cppflags" PTH_CFLAGS="$_pth_cflags" PTH_LDFLAGS="$_pth_ldflags" PTH_LIBS="$_pth_libs" if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: + Final Results:" >&5 $as_echo " + Final Results:" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"" >&5 $as_echo " o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o PTH_CFLAGS=\"$PTH_CFLAGS\"" >&5 $as_echo " o PTH_CFLAGS=\"$PTH_CFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o PTH_LDFLAGS=\"$PTH_LDFLAGS\"" >&5 $as_echo " o PTH_LDFLAGS=\"$PTH_LDFLAGS\"" >&6; } fi if test ".$verbose" = .yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: o PTH_LIBS=\"$PTH_LIBS\"" >&5 $as_echo " o PTH_LIBS=\"$PTH_LIBS\"" >&6; } fi fi if test ".$with_pth" != .no; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $_pth_version, $_pth_type under $_pth_location" >&5 $as_echo "version $_pth_version, $_pth_type under $_pth_location" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } : fi CPPFLAGS="$CPPFLAGS $PTH_CPPFLAGS" CFLAGS="$CFLAGS $PTH_CFLAGS" LDFLAGS="$LDFLAGS $PTH_LDFLAGS" THREADLIB="$PTH_LIBS" $as_echo "#define HAVE_LIBPTH 1" >>confdefs.h $as_echo "#define _REENTRANT 1" >>confdefs.h else gotthread="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: checking if os is AIX " >&5 $as_echo_n "checking if os is AIX ... " >&6; } case $host_os in "aix"*) raw_threads="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disable check for libthread " >&5 $as_echo "yes - disable check for libthread " >&6; }; ;; *) raw_threads="yes"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - enable check for libthread " >&5 $as_echo "no - enable check for libthread " >&6; }; ;; esac if test "x$raw_threads" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutex_lock in -lthread " >&5 $as_echo_n "checking for mutex_lock in -lthread ... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mutex_lock(); int main () { mutex_lock() ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBTHREAD 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -mt" >&5 $as_echo_n "checking if compiler accepts -mt... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -mt -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -mt" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* $as_echo "#define _REENTRANT 1" >>confdefs.h gotthread="yes"; THREADLIB="-lthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$gotthread" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __cplusplus extern "C" #endif #include int main () { pthread_mutex_lock(0) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h $as_echo "#define _REENTRANT 1" >>confdefs.h gotthread="yes"; THREADLIB="-lpthread" if test "x$ac_cv_c_compiler_gnu"="xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5 $as_echo_n "checking if compiler accepts -pthread... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -pthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -mt" >&5 $as_echo_n "checking if compiler accepts -mt... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -mt -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -mt" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$gotthread" = "xno"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lc" >&5 $as_echo_n "checking for pthread_mutex_lock in -lc... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __cplusplus extern "C" #endif #include int main () { pthread_mutex_lock(0) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h $as_echo "#define _REENTRANT 1" >>confdefs.h gotthread="yes"; THREADLIB="" if test "x$ac_cv_c_compiler_gnu"="xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5 $as_echo_n "checking if compiler accepts -pthread... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -pthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -mt" >&5 $as_echo_n "checking if compiler accepts -mt... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -mt -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -mt" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$gotthread" = "xno"; then if test "x$ac_cv_c_compiler_gnu"="xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -pthread" >&5 $as_echo_n "checking if compiler accepts -pthread... " >&6; } echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -pthread -c conftest.c 2>&1`"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } CFLAGS="$CFLAGS -pthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lc" >&5 $as_echo_n "checking for pthread_mutex_lock in -lc... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __cplusplus extern "C" #endif #include int main () { pthread_mutex_lock(0) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h $as_echo "#define _REENTRANT 1" >>confdefs.h THREADLIB="-pthread -lc_r" gotthread="yes"; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test "x$gotthread" = "xno"; then SAVECFLAGS="$CFLAGS" CFLAGS="$CFLAGS -D_THREAD_SAFE -D_ALL_SOURCE -D_LONG_LONG" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } ac_save_LIBS="$LIBS" LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __cplusplus extern "C" #endif #include int main () { pthread_mutex_lock(0) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "ac_cv_lib_$ac_lib_var=yes" else eval "ac_cv_lib_$ac_lib_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h gotthread="yes"; THREADLIB="-lpthread" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi CFLAGS="$SAVECFLAGS" $as_echo "#define _THREAD_SAFE 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _LONG_LONG 1" >>confdefs.h fi if test "x$gotthread" = "xyes"; then save_LIBS=$LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: checking for localtime_r in -lc" >&5 $as_echo_n "checking for localtime_r in -lc... " >&6; } if ${ac_cv_lib_c_localtime_r+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char localtime_r (); int main () { return localtime_r (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_localtime_r=yes else ac_cv_lib_c_localtime_r=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_localtime_r" >&5 $as_echo "$ac_cv_lib_c_localtime_r" >&6; } if test "x$ac_cv_lib_c_localtime_r" = xyes; then : $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h fi LIBS=$save_LIBS fi fi fi case $host_os in "darwin"*) stats="false" macosx="yes" $as_echo "#define OSXHEADER 1" >>confdefs.h ;; sysv5Open*) if test "x$THREADLIB" = "x"; then LIBS="$LIBS $THREADLIB" else LIBS="$LIBS -Kthread" fi ;; *) LIBS="$LIBS $THREADLIB" ;; esac if test "x$stats" = "xtrue"; then for ac_func in ftok semget shmget semop snprintf do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF else stats=false fi done fi if test "x$stats" = "xtrue"; then ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for semundo union" >&5 $as_echo_n "checking for semundo union... " >&6; } if ${ac_cv_semundo_union+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { union semun semctl_arg; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_semundo_union=no else ac_cv_semundo_union=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_semundo_union" >&5 $as_echo "$ac_cv_semundo_union" >&6; } if eval "test \"`echo $ac_cv_semundo_union`\" = yes"; then $as_echo "#define NEED_SEMUNDO_UNION 1" >>confdefs.h fi $as_echo "#define COLLECT_STATS 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } if ${ac_cv_lib_socket_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char socket (); int main () { return socket (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_socket=yes else ac_cv_lib_socket_socket=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } if test "x$ac_cv_lib_socket_socket" = xyes; then : LIBSOCKET="-lsocket" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : LIBNSL="-lnsl" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 $as_echo_n "checking for X... " >&6; } # Check whether --with-x was given. if test "${with_x+set}" = set; then : withval=$with_x; fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else case $x_includes,$x_libraries in #( *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : $as_echo_n "(cached) " >&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=no ac_x_libraries=no rm -f -r conftest.dir if mkdir conftest.dir; then cd conftest.dir cat >Imakefile <<'_ACEOF' incroot: @echo incroot='${INCROOT}' usrlibdir: @echo usrlibdir='${USRLIBDIR}' libdir: @echo libdir='${LIBDIR}' _ACEOF if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. for ac_var in incroot usrlibdir libdir; do eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" done # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl dylib la dll; do if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && test -f "$ac_im_libdir/libX11.$ac_extension"; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case $ac_im_incroot in /usr/include) ac_x_includes= ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; esac case $ac_im_usrlibdir in /usr/lib | /usr/lib64 | /lib | /lib64) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; esac fi cd .. rm -f -r conftest.dir fi # Standard set of common directories for X headers. # Check X11 before X11Rn because it is often a symlink to the current release. ac_x_header_dirs=' /usr/X11/include /usr/X11R7/include /usr/X11R6/include /usr/X11R5/include /usr/X11R4/include /usr/include/X11 /usr/include/X11R7 /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 /usr/local/X11/include /usr/local/X11R7/include /usr/local/X11R6/include /usr/local/X11R5/include /usr/local/X11R4/include /usr/local/include/X11 /usr/local/include/X11R7 /usr/local/include/X11R6 /usr/local/include/X11R5 /usr/local/include/X11R4 /usr/X386/include /usr/x386/include /usr/XFree86/include/X11 /usr/include /usr/local/include /usr/unsupported/include /usr/athena/include /usr/local/x11r5/include /usr/lpp/Xamples/include /usr/openwin/include /usr/openwin/share/include' if test "$ac_x_includes" = no; then # Guess where to find include files, by looking for Xlib.h. # First, try using that file with no special directory specified. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # We can compile using X headers with no special include directory. ac_x_includes= else for ac_dir in $ac_x_header_dirs; do if test -r "$ac_dir/X11/Xlib.h"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest.err conftest.i conftest.$ac_ext fi # $ac_x_includes = no if test "$ac_x_libraries" = no; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { XrmInitialize () ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS=$ac_save_LIBS # We can link X programs with no special library path. ac_x_libraries= else LIBS=$ac_save_LIBS for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` do # Don't even attempt the hair of trying to link an X program! for ac_extension in a so sl dylib la dll; do if test -r "$ac_dir/libX11.$ac_extension"; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi # $ac_x_libraries = no case $ac_x_includes,$ac_x_libraries in #( no,* | *,no | *\'*) # Didn't find X, or a directory has "'" in its name. ac_cv_have_x="have_x=no";; #( *) # Record where we found X for the cache. ac_cv_have_x="have_x=yes\ ac_x_includes='$ac_x_includes'\ ac_x_libraries='$ac_x_libraries'" esac fi ;; #( *) have_x=yes;; esac eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 $as_echo "$have_x" >&6; } no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes\ ac_x_includes='$x_includes'\ ac_x_libraries='$x_libraries'" { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 $as_echo_n "checking whether -R must be followed by a space... " >&6; } ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } X_LIBS="$X_LIBS -R $x_libraries" else { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 $as_echo "neither works" >&6; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext ac_c_werror_flag=$ac_xsave_c_werror_flag LIBS=$ac_xsave_LIBS fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn Johnson says this is needed for Ultrix, if the X # libraries were built with DECnet support. And Karl Berry says # the Alpha needs dnet_stub (dnet does not exist). ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char XOpenDisplay (); int main () { return XOpenDisplay (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_dnet_ntoa=yes else ac_cv_lib_dnet_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldnet_stub $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dnet_ntoa (); int main () { return dnet_ntoa (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dnet_stub_dnet_ntoa=yes else ac_cv_lib_dnet_stub_dnet_ntoa=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" fi fi fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$ac_xsave_LIBS" # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to T.E. Dickey. # The functions gethostbyname, getservbyname, and inet_addr are # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" if test "x$ac_cv_func_gethostbyname" = xyes; then : fi if test $ac_cv_func_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } if ${ac_cv_lib_nsl_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lnsl $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_nsl_gethostbyname=yes else ac_cv_lib_nsl_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" fi if test $ac_cv_lib_nsl_gethostbyname = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } if ${ac_cv_lib_bsd_gethostbyname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lbsd $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gethostbyname (); int main () { return gethostbyname (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_bsd_gethostbyname=yes else ac_cv_lib_bsd_gethostbyname=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" fi fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says Simon Leinen: it contains gethostby* # variants that don't use the name server (or something). -lsocket # must be given before -lnsl if both are needed. We assume that # if connect needs -lnsl, so does gethostbyname. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" if test "x$ac_cv_func_connect" = xyes; then : fi if test $ac_cv_func_connect = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 $as_echo_n "checking for connect in -lsocket... " >&6; } if ${ac_cv_lib_socket_connect+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char connect (); int main () { return connect (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_socket_connect=yes else ac_cv_lib_socket_connect=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 $as_echo "$ac_cv_lib_socket_connect" >&6; } if test "x$ac_cv_lib_socket_connect" = xyes; then : X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" fi fi # Guillermo Gomez says -lposix is necessary on A/UX. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" if test "x$ac_cv_func_remove" = xyes; then : fi if test $ac_cv_func_remove = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 $as_echo_n "checking for remove in -lposix... " >&6; } if ${ac_cv_lib_posix_remove+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lposix $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char remove (); int main () { return remove (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_posix_remove=yes else ac_cv_lib_posix_remove=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 $as_echo "$ac_cv_lib_posix_remove" >&6; } if test "x$ac_cv_lib_posix_remove" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" if test "x$ac_cv_func_shmat" = xyes; then : fi if test $ac_cv_func_shmat = no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 $as_echo_n "checking for shmat in -lipc... " >&6; } if ${ac_cv_lib_ipc_shmat+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lipc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shmat (); int main () { return shmat (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ipc_shmat=yes else ac_cv_lib_ipc_shmat=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } if test "x$ac_cv_lib_ipc_shmat" = xyes; then : X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS=$LDFLAGS test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # John Interrante, Karl Berry { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char IceConnectionNumber (); int main () { return IceConnectionNumber (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ICE_IceConnectionNumber=yes else ac_cv_lib_ICE_IceConnectionNumber=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" fi LDFLAGS=$ac_save_LDFLAGS fi cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5 $as_echo "$as_me: checking for Qt" >&6;} # Variables we want to fill... qt_dir="" qt_dir_include="" qt_dir_lib="" qt_dir_bin="" qt_libs="-lQtGui -lQtCore -lQtAssistantClient -lQtNetwork" MOC="" UIC="" # # Create configure option for include location... # # Check whether --with-qt_dir_include was given. if test "${with_qt_dir_include+set}" = set; then : withval=$with_qt_dir_include; qt_dir_include="$withval" fi # # Create configure option for lib location... # # Check whether --with-qt_dir_lib was given. if test "${with_qt_dir_lib+set}" = set; then : withval=$with_qt_dir_lib; qt_dir_lib="$withval" fi # # Create configure option for bin location... # # Check whether --with-qt_dir_bin was given. if test "${with_qt_dir_bin+set}" = set; then : withval=$with_qt_dir_bin; qt_dir_bin="$withval" fi # # No include location given? Lets check a few known places. # if test "x$qt_dir_include" = x; then if test -d "/usr/include/QtCore"; then qt_dir_include="/usr/include" fi fi # # No lib location given? Lets check a few known places. # if test "x$qt_dir_lib" = x; then if test -e "/usr/lib64/libQtCore.so"; then qt_dir_lib="/usr/lib64" elif test -e "/usr/lib/libQtCore.so"; then qt_dir_lib="/usr/lib" fi fi # # No bin location given? Lets check a few known places. # if test "x$qt_dir_bin" = x; then if test -e "/usr/bin/moc"; then qt_dir_bin="/usr/bin" fi fi # # Still not found - we fail. # if test "x$qt_dir_include" = x; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (include try specifying with --with-qt-include or try a different value)" >&5 $as_echo "no (include try specifying with --with-qt-include or try a different value)" >&6; } as_fn_error $? "cannot find Qt!" "$LINENO" 5 fi # # Still not found - we fail. # if test "x$qt_dir_lib" = x; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (lib try specifying with --with-qt-lib or try a different value)" >&5 $as_echo "no (lib try specifying with --with-qt-lib or try a different value)" >&6; } as_fn_error $? "cannot find Qt!" "$LINENO" 5 fi # # Still not found - we fail. # if test "x$qt_dir_bin" = x; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (bin try specifying with --with-qt-bin or try a different value)" >&5 $as_echo "no (bin try specifying with --with-qt-bin or try a different value)" >&6; } as_fn_error $? "cannot find Qt!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($qt_dir_include)" >&5 $as_echo "yes ($qt_dir_include)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($qt_dir_lib)" >&5 $as_echo "yes ($qt_dir_lib)" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($qt_dir_bin)" >&5 $as_echo "yes ($qt_dir_bin)" >&6; } # qt_dir_include="$qt_dir"/include # qt_dir_lib="$qt_dir"/lib # qt_dir_bin="$qt_dir"/bin as_ac_File=`$as_echo "ac_cv_file_$qt_dir_include/QtGui/QWizard" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $qt_dir_include/QtGui/QWizard" >&5 $as_echo_n "checking for $qt_dir_include/QtGui/QWizard... " >&6; } if eval \${$as_ac_File+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$qt_dir_include/QtGui/QWizard"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi eval ac_res=\$$as_ac_File { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes"; then : have_qtwizard=yes else have_qtwizard=no fi as_ac_File=`$as_echo "ac_cv_file_$qt_dir_include/QtGui/QMdiArea" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $qt_dir_include/QtGui/QMdiArea" >&5 $as_echo_n "checking for $qt_dir_include/QtGui/QMdiArea... " >&6; } if eval \${$as_ac_File+:} false; then : $as_echo_n "(cached) " >&6 else test "$cross_compiling" = yes && as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 if test -r "$qt_dir_include/QtGui/QMdiArea"; then eval "$as_ac_File=yes" else eval "$as_ac_File=no" fi fi eval ac_res=\$$as_ac_File { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_File"\" = x"yes"; then : have_qtmdiarea=yes else have_qtmdiarea=no fi MOC="$qt_dir_bin"/moc UIC="$qt_dir_bin"/uic ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: qt_dir_lib=$qt_dir_lib" >&5 $as_echo "$as_me: qt_dir_lib=$qt_dir_lib" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: LDFLAGS=$LDFLAGS" >&5 $as_echo "$as_me: LDFLAGS=$LDFLAGS" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: X_LIBS=$X_LIBS" >&5 $as_echo "$as_me: X_LIBS=$X_LIBS" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple Qt program compiles" >&5 $as_echo_n "checking whether a simple Qt program compiles... " >&6; } ac_cxxflags_save="$CXXFLAGS" ac_ldflags_save="$LDFLAGS" ac_libs_save="$LIBS" CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS -I$qt_dir_include -I$qt_dir_include/QtCore -I$qt_dir_include/QtGui $X_CFLAGS $all_includes" LDFLAGS="$LDFLAGS -L$qt_dir_lib $X_LIBS $X_LDFLAGS" LIBS="$LIBS $PTHREAD_LIBS $qt_libs $X_EXTRA_LIBS -lXext -lX11 $X_PRE_LIBS $EXTRA_XLIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { QString s = "hello world"; QMessageBox::information(0, s, "no he is not"); return 0; ; return 0; } _ACEOF if ac_fn_cxx_try_link "$LINENO"; then : qt_compile=yes else qt_compile=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext CXXFLAGS="$ac_cxxflags_save" LDFLAGS="$ac_ldflags_save" LIBS="$ac_libs_save" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test "x$qt_compile" = "xyes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error $? "cannot compile a Qt program!" "$LINENO" 5 fi QT_CXXFLAGS="-I$qt_dir_include -I$qt_dir_include/QtCore -I$qt_dir_include/QtGui -I$qt_dir_include/QtAssistant -I$qt_dir_include/QtNetwork" QT_LDFLAGS="-L$qt_dir_lib" QT_LIBS="$qt_libs" have_qt="yes" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in malloc.h unistd.h pwd.h crypt.h limits.h synch.h strings.h string.h locale.h sys/malloc.h sys/types.h sys/sem.h stdarg.h varargs.h sys/time.h sys/timeb.h time.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x$fastvalidate" = "xtrue"; then $as_echo "#define FAST_HANDLE_VALIDATE 1" >>confdefs.h fi if test "x$handlemap" = "xtrue"; then $as_echo "#define WITH_HANDLE_REDIRECT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { struct tm tm; int *p = &tm.tm_sec; return !p; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_struct_tm=time.h else ac_cv_struct_tm=sys/time.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 $as_echo "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "uid_t" >/dev/null 2>&1; then : ac_cv_type_uid_t=yes else ac_cv_type_uid_t=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 $as_echo "$ac_cv_type_uid_t" >&6; } if test $ac_cv_type_uid_t = no; then $as_echo "#define uid_t int" >>confdefs.h $as_echo "#define gid_t int" >>confdefs.h fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi for ac_func in vprintf do : ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" if test "x$ac_cv_func_vprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" if test "x$ac_cv_func__doprnt" = xyes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h fi fi done for ac_func in putenv socket strdup strstr setenv setlocale strchr do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done CFLAGS="$CFLAGS -DV_MAJOUR=1 -DV_MINOR=0 -DV_RELEASE=1" CXXFLAGS="$CXXFLAGS -DV_MAJOUR=1 -DV_MINOR=0 -DV_RELEASE=1" ac_config_files="$ac_config_files Makefile ini/Makefile odbcinstQ4/Makefile gtrtstQ4/Makefile ODBCCreateDataSourceQ4/Makefile ODBCManageDataSourcesQ4/Makefile ODBCTestQ4/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_FLEX_TRUE}" && test -z "${HAVE_FLEX_FALSE}"; then as_fn_error $? "conditional \"HAVE_FLEX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${HAVE_FLEX_TRUE}" && test -z "${HAVE_FLEX_FALSE}"; then as_fn_error $? "conditional \"HAVE_FLEX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by unixODBC-GUI-Qt $as_me 2.3.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ unixODBC-GUI-Qt config.status 2.3.0 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH sed_quote_subst='$sed_quote_subst' double_quote_subst='$double_quote_subst' delay_variable_subst='$delay_variable_subst' AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } # Quote evaled strings. for var in AS \ DLLTOOL \ OBJDUMP \ SHELL \ ECHO \ SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ nm_file_list_spec \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_pic \ lt_prog_compiler_wl \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ MANIFEST_TOOL \ DSYMUTIL \ NMEDIT \ LIPO \ OTOOL \ OTOOL64 \ shrext_cmds \ export_dynamic_flag_spec \ whole_archive_flag_spec \ compiler_needs_object \ with_gnu_ld \ allow_undefined_flag \ no_undefined_flag \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ install_override_mode \ finish_eval \ old_striplib \ striplib \ compiler_lib_search_dirs \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ LD_CXX \ reload_flag_CXX \ compiler_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_static_CXX \ lt_cv_prog_compiler_c_o_CXX \ export_dynamic_flag_spec_CXX \ whole_archive_flag_spec_CXX \ compiler_needs_object_CXX \ with_gnu_ld_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX \ file_list_spec_CXX \ compiler_lib_search_dirs_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in reload_cmds \ old_postinstall_cmds \ old_postuninstall_cmds \ old_archive_cmds \ extract_expsyms_cmds \ old_archive_from_new_cmds \ old_archive_from_expsyms_cmds \ archive_cmds \ archive_expsym_cmds \ module_cmds \ module_expsym_cmds \ export_symbols_cmds \ prelink_cmds \ postlink_cmds \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec \ reload_cmds_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ export_symbols_cmds_CXX \ prelink_cmds_CXX \ postlink_cmds_CXX; do case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "ini/Makefile") CONFIG_FILES="$CONFIG_FILES ini/Makefile" ;; "odbcinstQ4/Makefile") CONFIG_FILES="$CONFIG_FILES odbcinstQ4/Makefile" ;; "gtrtstQ4/Makefile") CONFIG_FILES="$CONFIG_FILES gtrtstQ4/Makefile" ;; "ODBCCreateDataSourceQ4/Makefile") CONFIG_FILES="$CONFIG_FILES ODBCCreateDataSourceQ4/Makefile" ;; "ODBCManageDataSourcesQ4/Makefile") CONFIG_FILES="$CONFIG_FILES ODBCManageDataSourcesQ4/Makefile" ;; "ODBCTestQ4/Makefile") CONFIG_FILES="$CONFIG_FILES ODBCTestQ4/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes. if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi cfgfile="${ofile}T" trap "$RM \"$cfgfile\"; exit 1" 1 2 15 $RM "$cfgfile" cat <<_LT_EOF >> "$cfgfile" #! $SHELL # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, # Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # GNU Libtool is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="CXX " # ### BEGIN LIBTOOL CONFIG # Assembler program. AS=$lt_AS # DLL creation program. DLLTOOL=$lt_DLLTOOL # Object dumper program. OBJDUMP=$lt_OBJDUMP # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # What type of objects to build. pic_mode=$pic_mode # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that protects backslashes. ECHO=$lt_ECHO # The host system. host_alias=$host_alias host=$host host_os=$host_os # The build system. build_alias=$build_alias build=$build build_os=$build_os # A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. Xsed="\$SED -e 1s/^X//" # A grep program that handles long lines. GREP=$lt_GREP # An ERE matcher. EGREP=$lt_EGREP # A literal string matcher. FGREP=$lt_FGREP # A BSD- or MS-compatible name lister. NM=$lt_NM # Whether we need soft or hard links. LN_S=$lt_LN_S # What is the maximum length of a command? max_cmd_len=$max_cmd_len # Object file suffix (normally "o"). objext=$ac_objext # Executable file suffix (normally ""). exeext=$exeext # whether the shell understands "unset". lt_unset=$lt_unset # turn spaces into newlines. SP2NL=$lt_lt_SP2NL # turn newlines into spaces. NL2SP=$lt_lt_NL2SP # convert \$build file names to \$host format. to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method # Command to use when deplibs_check_method = "file_magic". file_magic_cmd=$lt_file_magic_cmd # How to find potential files when deplibs_check_method = "file_magic". file_magic_glob=$lt_file_magic_glob # Find potential files using nocaseglob when deplibs_check_method = "file_magic". want_nocaseglob=$lt_want_nocaseglob # Command to associate shared and link libraries. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR # Flags to create an archive. AR_FLAGS=$lt_AR_FLAGS # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec # A symbol stripping program. STRIP=$lt_STRIP # Commands used to install an old-style archive. RANLIB=$lt_RANLIB old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Whether to use a lock for old archive extraction. lock_old_archive_extraction=$lock_old_archive_extraction # A C compiler. LTCC=$lt_CC # LTCC compiler flags. LTCFLAGS=$lt_CFLAGS # Take the output of nm and produce a listing of raw symbols and C names. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # Transform the output of nm in a C name address pair when lib prefix is needed. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix # Specify filename containing input files for \$NM. nm_file_list_spec=$lt_nm_file_list_spec # The root where to search for dependent libraries,and in which our libraries should be installed. lt_sysroot=$lt_sysroot # The name of the directory that contains temporary libtool files. objdir=$objdir # Used to examine libraries when file_magic_cmd begins with "file". MAGIC_CMD=$MAGIC_CMD # Must we lock files when doing compilation? need_locks=$lt_need_locks # Manifest tool. MANIFEST_TOOL=$lt_MANIFEST_TOOL # Tool to manipulate archived DWARF debug symbol files on Mac OS X. DSYMUTIL=$lt_DSYMUTIL # Tool to change global to local symbols on Mac OS X. NMEDIT=$lt_NMEDIT # Tool to manipulate fat objects and archives on Mac OS X. LIPO=$lt_LIPO # ldd/readelf like tool for Mach-O binaries on Mac OS X. OTOOL=$lt_OTOOL # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. OTOOL64=$lt_OTOOL64 # Old archive suffix (normally "a"). libext=$libext # Shared library suffix (normally ".so"). shrext_cmds=$lt_shrext_cmds # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Variables whose values should be saved in libtool wrapper scripts and # restored at link time. variables_saved_for_relink=$lt_variables_saved_for_relink # Do we need the "lib" prefix for modules? need_lib_prefix=$need_lib_prefix # Do we need a version for libraries? need_version=$need_version # Library versioning type. version_type=$version_type # Shared library runtime path variable. runpath_var=$runpath_var # Shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # Format of library name prefix. libname_spec=$lt_libname_spec # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME library_names_spec=$lt_library_names_spec # The coded name of the library, if different from the real name. soname_spec=$lt_soname_spec # Permission mode override for installation of shared libraries. install_override_mode=$lt_install_override_mode # Command to use after installation of a shared archive. postinstall_cmds=$lt_postinstall_cmds # Command to use after uninstallation of a shared archive. postuninstall_cmds=$lt_postuninstall_cmds # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # As "finish_cmds", except a single script fragment to be evaled but # not shown. finish_eval=$lt_finish_eval # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Compile-time system search path for libraries. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Whether dlopen is supported. dlopen_support=$enable_dlopen # Whether dlopen of programs is supported. dlopen_self=$enable_dlopen_self # Whether dlopen of statically linked programs is supported. dlopen_self_static=$enable_dlopen_self_static # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # The linker used to build libraries. LD=$lt_LD # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds # A language specific compiler. CC=$lt_compiler # Is the compiler the GNU compiler? with_gcc=$GCC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms # Symbols that must always be exported. include_expsyms=$lt_include_expsyms # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds # Specify filename containing input files. file_list_spec=$lt_file_list_spec # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects postdep_objects=$lt_postdep_objects predeps=$lt_predeps postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # ### END LIBTOOL CONFIG _LT_EOF case $host_os in aix3*) cat <<\_LT_EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems # vanish in a puff of smoke. if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac ltmain="$ac_aux_dir/ltmain.sh" # We use sed instead of cat because bash on DJGPP gets confused if # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? sed '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) if test x"$xsi_shell" = xyes; then sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ func_dirname ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_basename ()$/,/^} # func_basename /c\ func_basename ()\ {\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ func_dirname_and_basename ()\ {\ \ case ${1} in\ \ */*) func_dirname_result="${1%/*}${2}" ;;\ \ * ) func_dirname_result="${3}" ;;\ \ esac\ \ func_basename_result="${1##*/}"\ } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ func_stripname ()\ {\ \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ \ # positional parameters, so assign one to ordinary parameter first.\ \ func_stripname_result=${3}\ \ func_stripname_result=${func_stripname_result#"${1}"}\ \ func_stripname_result=${func_stripname_result%"${2}"}\ } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ func_split_long_opt ()\ {\ \ func_split_long_opt_name=${1%%=*}\ \ func_split_long_opt_arg=${1#*=}\ } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ func_split_short_opt ()\ {\ \ func_split_short_opt_arg=${1#??}\ \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ func_lo2o ()\ {\ \ case ${1} in\ \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ \ *) func_lo2o_result=${1} ;;\ \ esac\ } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_xform ()$/,/^} # func_xform /c\ func_xform ()\ {\ func_xform_result=${1%.*}.lo\ } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_arith ()$/,/^} # func_arith /c\ func_arith ()\ {\ func_arith_result=$(( $* ))\ } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_len ()$/,/^} # func_len /c\ func_len ()\ {\ func_len_result=${#1}\ } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$lt_shell_append" = xyes; then sed -e '/^func_append ()$/,/^} # func_append /c\ func_append ()\ {\ eval "${1}+=\\${2}"\ } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ func_append_quoted ()\ {\ \ func_quote_for_eval "${2}"\ \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: # Save a `func_append' function call where possible by direct use of '+=' sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: else # Save a `func_append' function call even when '+=' is not available sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ && mv -f "$cfgfile.tmp" "$cfgfile" \ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") test 0 -eq $? || _lt_function_replace_fail=: fi if test x"$_lt_function_replace_fail" = x":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} fi mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" cat <<_LT_EOF >> "$ofile" # ### BEGIN LIBTOOL TAG CONFIG: CXX # The linker used to build libraries. LD=$lt_LD_CXX # How to create reloadable object files. reload_flag=$lt_reload_flag_CXX reload_cmds=$lt_reload_cmds_CXX # Commands used to build an old-style archive. old_archive_cmds=$lt_old_archive_cmds_CXX # A language specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU compiler? with_gcc=$GCC_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Whether the compiler copes with passing no objects directly. compiler_needs_object=$lt_compiler_needs_object_CXX # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX # Commands used to build a loadable module if different from building # a shared archive. module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Whether we are building with GNU ld or not. with_gnu_ld=$lt_with_gnu_ld_CXX # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that enforces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single "-rpath" flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes # DIR into the resulting binary and the resulting library dependency is # "absolute",i.e impossible to change by setting \${shlibpath_var} if the # library is relocated. hardcode_direct_absolute=$hardcode_direct_absolute_CXX # Set to "yes" if using the -LDIR flag during linking hardcodes DIR # into the resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR # into the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # Set to "yes" if building a shared library automatically hardcodes DIR # into the library and all subsequent libraries and executables linked # against it. hardcode_automatic=$hardcode_automatic_CXX # Set to yes if linker adds runtime paths of dependent libraries # to runtime path list. inherit_rpath=$inherit_rpath_CXX # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # Set to "yes" if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # Commands necessary for linking programs (against libraries) with templates. prelink_cmds=$lt_prelink_cmds_CXX # Commands necessary for finishing linking programs. postlink_cmds=$lt_postlink_cmds_CXX # Specify filename containing input files. file_list_spec=$lt_file_list_spec_CXX # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # The directories searched by this compiler when creating a shared library. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX # Dependencies to place before and after the objects being linked to # create a shared library. predep_objects=$lt_predep_objects_CXX postdep_objects=$lt_postdep_objects_CXX predeps=$lt_predeps_CXX postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # ### END LIBTOOL TAG CONFIG: CXX _LT_EOF ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi # # CONFIG_SUBDIRS section. # if test "$no_recursion" != yes; then # Remove --cache-file, --srcdir, and --disable-option-checking arguments # so they do not pile up. ac_sub_configure_args= ac_prev= eval "set x $ac_configure_args" shift for ac_arg do if test -n "$ac_prev"; then ac_prev= continue fi case $ac_arg in -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | --c=*) ;; --config-cache | -C) ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) ;; --disable-option-checking) ;; *) case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append ac_sub_configure_args " '$ac_arg'" ;; esac done # Always prepend --prefix to ensure using the same prefix # in subdir configurations. ac_arg="--prefix=$prefix" case $ac_arg in *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" # Pass --silent if test "$silent" = yes; then ac_sub_configure_args="--silent $ac_sub_configure_args" fi # Always prepend --disable-option-checking to silence warnings, since # different subdirs can have different --enable and --with options. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" ac_popdir=`pwd` for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue # Do not complain, so a configure script can configure whichever # parts of a large source tree are present. test -d "$srcdir/$ac_dir" || continue ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" # Check for guested configure; otherwise get Cygnus style configure. if test -f "$ac_srcdir/configure.gnu"; then ac_sub_configure=$ac_srcdir/configure.gnu elif test -f "$ac_srcdir/configure"; then ac_sub_configure=$ac_srcdir/configure elif test -f "$ac_srcdir/configure.in"; then # This should be Cygnus configure. ac_sub_configure=$ac_aux_dir/configure else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} ac_sub_configure= fi # The recursion is here. if test -n "$ac_sub_configure"; then # Make the cache file name correct relative to the subdirectory. case $cache_file in [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; *) # Relative name. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} # The eval makes quoting arguments work. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 fi cd "$ac_popdir" done fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi unixodbc-gui-qt-2.3.0/Makefile.in0000644000175000001440000005520011506076377013533 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ ChangeLog INSTALL NEWS config.guess config.rpath config.sub \ depcomp install-sh ltmain.sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = \ ini \ gtrtstQ4 \ odbcinstQ4 \ ODBCCreateDataSourceQ4 \ ODBCManageDataSourcesQ4 \ ODBCTestQ4 EXTRA_DIST = \ AUTHORS \ ChangeLog \ common.pri \ config.pri \ configure.in \ COPYING \ defines.pri \ GPL.txt \ INSTALL \ LGPL.txt \ Makefile.am \ Makefile.svn \ NEWS \ odbc.pri \ qt.m4 \ README \ README.build \ README.dist \ README.qmake \ README.svn \ unixODBC-GUI-Qt.pro \ unixODBC-GUI-Qt.spec all: all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-libtool \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags tags-recursive uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/ODBCManageDataSourcesQ4/0000755000175000001440000000000011506076452015721 500000000000000unixodbc-gui-qt-2.3.0/ODBCManageDataSourcesQ4/Makefile.am0000644000175000001440000000054011506076311017666 00000000000000bin_PROGRAMS = ODBCManageDataSourcesQ4 INCLUDES = $(QT_CXXFLAGS) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"@libdir@\" $(LTDLINCL) ODBCManageDataSourcesQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ -lodbc -lodbcinst ODBCManageDataSourcesQ4_DEPENDANCIES = ../odbcinstQ4/libodbcinstQ4.la ODBCManageDataSourcesQ4_SOURCES = \ main.cpp unixodbc-gui-qt-2.3.0/ODBCManageDataSourcesQ4/Makefile.in0000644000175000001440000004163111506076376017720 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ODBCManageDataSourcesQ4$(EXEEXT) subdir = ODBCManageDataSourcesQ4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ODBCManageDataSourcesQ4_OBJECTS = main.$(OBJEXT) ODBCManageDataSourcesQ4_OBJECTS = \ $(am_ODBCManageDataSourcesQ4_OBJECTS) am__DEPENDENCIES_1 = ODBCManageDataSourcesQ4_DEPENDENCIES = $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(ODBCManageDataSourcesQ4_SOURCES) DIST_SOURCES = $(ODBCManageDataSourcesQ4_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ INCLUDES = $(QT_CXXFLAGS) \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" -DDEFLIB_PATH=\"@libdir@\" $(LTDLINCL) ODBCManageDataSourcesQ4_LDADD = \ $(QT_LDFLAGS) \ $(QT_LIBS) \ -lodbc -lodbcinst ODBCManageDataSourcesQ4_DEPENDANCIES = ../odbcinstQ4/libodbcinstQ4.la ODBCManageDataSourcesQ4_SOURCES = \ main.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ODBCManageDataSourcesQ4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu ODBCManageDataSourcesQ4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p || test -f $$p1; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ echo " rm -f" $$list; \ rm -f $$list || exit $$?; \ test -n "$(EXEEXT)" || exit 0; \ list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ echo " rm -f" $$list; \ rm -f $$list ODBCManageDataSourcesQ4$(EXEEXT): $(ODBCManageDataSourcesQ4_OBJECTS) $(ODBCManageDataSourcesQ4_DEPENDENCIES) @rm -f ODBCManageDataSourcesQ4$(EXEEXT) $(CXXLINK) $(ODBCManageDataSourcesQ4_OBJECTS) $(ODBCManageDataSourcesQ4_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-binPROGRAMS install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/ODBCManageDataSourcesQ4/main.cpp0000644000175000001440000000435411506076311017271 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 2 * \date 2007 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include #include #include /*! * \brief Invokes a UI to allow caller to manage/configure the ODBC environment. * * This wraps SQLManageDataSources to get a simple executable. We are a * Qt4 based app so we explicitly request the Qt4 based UI ("odbcinstQ4"). * * This app can be complimented with other apps which use a different * toolkit (ie GTK). Presumably those other apps will also use a file name * for the executable which follows a similar convention as this.. * * \li ODBCCreateDataSource * * We can then designate a default, to assist desktop environment developers, * using a symlink in the file system. * * \param argc * \param argv * * \return int * \retval 0 Success * \retval 1 Error */ int main( int argc, char **argv ) { // init Qt application... QApplication oApplication( argc, argv ); QCoreApplication::setOrganizationName("unixODBC-GUI-Qt"); QCoreApplication::setOrganizationDomain("unixodbc-gui-qt.sourceforge.net"); QCoreApplication::setApplicationName("ODBC Administrator"); // specify Qt4 UI plugin explicitly... ODBCINSTWND odbcinstwnd; strcpy( odbcinstwnd.szUI, "odbcinstQ4" ); odbcinstwnd.hWnd = qApp->desktop(); if ( SQLManageDataSources( (HWND)(&odbcinstwnd) ) == TRUE ) return 0; // oops - report any errors we can dig up... for ( WORD nError = 1; nError < 10; nError++ ) { DWORD nErrorCode; char szErrorMsg[SQL_MAX_MESSAGE_LENGTH]; RETCODE nRetCode = SQLInstallerError( nError, &nErrorCode, szErrorMsg, SQL_MAX_MESSAGE_LENGTH, NULL ); if ( !SQL_SUCCEEDED( nRetCode ) ) { QMessageBox::critical( 0, QObject::tr( "ODBC Administrator" ), QObject::tr( "failed: no more errors to report" ) ); break; } QMessageBox::critical( 0, QObject::tr( "ODBC Administrator" ), szErrorMsg ); } // exit with error return 1; } unixodbc-gui-qt-2.3.0/ltmain.sh0000755000175000001440000105017111446475757013324 00000000000000 # libtool (GNU libtool) 2.4 # Written by Gordon Matzigkeit , 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # GNU Libtool is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # As a special exception to the GNU General Public License, # if you distribute this file as part of a program or library that # is built using GNU Libtool, you may include this file under the # same distribution terms that you use for the rest of that program. # # GNU Libtool 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 # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --no-quiet, --no-silent # print informational messages (default) # --tag=TAG use configuration variables from tag TAG # -v, --verbose print more informational messages than default # --no-verbose don't print the extra informational messages # --version print version information # -h, --help, --help-all print short, long, or detailed help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. When passed as first option, # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.4 # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to . # GNU libtool home page: . # General help using GNU software: . PROGRAM=libtool PACKAGE=libtool VERSION=2.4 TIMESTAMP="" package_revision=1.3293 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF $1 _LTECHO_EOF' } # NLS nuisances: We save the old values to restore during execute mode. lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done LC_ALL=C LANGUAGE=C export LANGUAGE LC_ALL $lt_unset CDPATH # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" : ${CP="cp -f"} test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} : ${EGREP="grep -E"} : ${FGREP="grep -F"} : ${GREP="grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_dirname may be replaced by extended shell implementation # func_basename file func_basename () { func_basename_result=`$ECHO "${1}" | $SED "$basename"` } # func_basename may be replaced by extended shell implementation # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` } # func_dirname_and_basename may be replaced by extended shell implementation # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; esac } # func_stripname may be replaced by extended shell implementation # These SED scripts presuppose an absolute path with a trailing slash. pathcar='s,^/\([^/]*\).*$,\1,' pathcdr='s,^/[^/]*,,' removedotparts=':dotsl s@/\./@/@g t dotsl s,/\.$,/,' collapseslashes='s@/\{1,\}@/@g' finalslash='s,/*$,/,' # func_normal_abspath PATH # Remove doubled-up and trailing slashes, "." path components, # and cancel out any ".." path components in PATH after making # it an absolute path. # value returned in "$func_normal_abspath_result" func_normal_abspath () { # Start from root dir and reassemble the path. func_normal_abspath_result= func_normal_abspath_tpath=$1 func_normal_abspath_altnamespace= case $func_normal_abspath_tpath in "") # Empty path, that just means $cwd. func_stripname '' '/' "`pwd`" func_normal_abspath_result=$func_stripname_result return ;; # The next three entries are used to spot a run of precisely # two leading slashes without using negated character classes; # we take advantage of case's first-match behaviour. ///*) # Unusual form of absolute path, do nothing. ;; //*) # Not necessarily an ordinary path; POSIX reserves leading '//' # and for example Cygwin uses it to access remote file shares # over CIFS/SMB, so we conserve a leading double slash if found. func_normal_abspath_altnamespace=/ ;; /*) # Absolute path, do nothing. ;; *) # Relative path, prepend $cwd. func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath ;; esac # Cancel out all the simple stuff to save iterations. We also want # the path to end with a slash for ease of parsing, so make sure # there is one (and only one) here. func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` while :; do # Processed it all yet? if test "$func_normal_abspath_tpath" = / ; then # If we ascended to the root using ".." the result may be empty now. if test -z "$func_normal_abspath_result" ; then func_normal_abspath_result=/ fi break fi func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcar"` func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ -e "$pathcdr"` # Figure out what to do with it case $func_normal_abspath_tcomponent in "") # Trailing empty path component, ignore it. ;; ..) # Parent dir; strip last assembled component from result. func_dirname "$func_normal_abspath_result" func_normal_abspath_result=$func_dirname_result ;; *) # Actual path component, append it. func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent ;; esac done # Restore leading double-slash if one was found on entry. func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result } # func_relative_path SRCDIR DSTDIR # generates a relative path from SRCDIR to DSTDIR, with a trailing # slash if non-empty, suitable for immediately appending a filename # without needing to append a separator. # value returned in "$func_relative_path_result" func_relative_path () { func_relative_path_result= func_normal_abspath "$1" func_relative_path_tlibdir=$func_normal_abspath_result func_normal_abspath "$2" func_relative_path_tbindir=$func_normal_abspath_result # Ascend the tree starting from libdir while :; do # check if we have found a prefix of bindir case $func_relative_path_tbindir in $func_relative_path_tlibdir) # found an exact match func_relative_path_tcancelled= break ;; $func_relative_path_tlibdir*) # found a matching prefix func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" func_relative_path_tcancelled=$func_stripname_result if test -z "$func_relative_path_result"; then func_relative_path_result=. fi break ;; *) func_dirname $func_relative_path_tlibdir func_relative_path_tlibdir=${func_dirname_result} if test "x$func_relative_path_tlibdir" = x ; then # Have to descend all the way to the root! func_relative_path_result=../$func_relative_path_result func_relative_path_tcancelled=$func_relative_path_tbindir break fi func_relative_path_result=../$func_relative_path_result ;; esac done # Now calculate path; take care to avoid doubling-up slashes. func_stripname '' '/' "$func_relative_path_result" func_relative_path_result=$func_stripname_result func_stripname '/' '/' "$func_relative_path_tcancelled" if test "x$func_stripname_result" != x ; then func_relative_path_result=${func_relative_path_result}/${func_stripname_result} fi # Normalisation. If bindir is libdir, return empty string, # else relative path ending with a slash; either way, target # file name can be directly appended. if test ! -z "$func_relative_path_result"; then func_stripname './' '' "$func_relative_path_result/" func_relative_path_result=$func_stripname_result fi } # The name of this program: func_dirname_and_basename "$progpath" progname=$func_basename_result # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Sed substitution that turns a string into a regex matching for the # string literally. sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' # Sed substitution that converts a w32 file name or path # which contains forward slashes, into one that contains # (escaped) backslashes. A very naive implementation. lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname: ${opt_mode+$opt_mode: }$*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_echo_all arg... # Invoke $ECHO with all args, space-separated. func_echo_all () { $ECHO "$*" } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` done my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "$my_tmpdir" } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "$1" | $SED \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_tr_sh # Turn $1 into a string suitable for a shell variable name. # Result is stored in $func_tr_sh_result. All characters # not in the set a-zA-Z0-9_ are replaced with '_'. Further, # if $1 begins with a digit, a '_' is prepended as well. func_tr_sh () { case $1 in [0-9]* | *[!a-zA-Z0-9_]*) func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` ;; * ) func_tr_sh_result=$1 ;; esac } # func_version # Echo version message to standard output and exit. func_version () { $opt_debug $SED -n '/(C)/!b go :more /\./!{ N s/\n# / / b more } :go /^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $opt_debug $SED -n '/^# Usage:/,/^# *.*--help/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" echo $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help [NOEXIT] # Echo long help message to standard output and exit, # unless 'noexit' is passed as argument. func_help () { $opt_debug $SED -n '/^# Usage:/,/# Report bugs to/ { :print s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p d } /^# .* home page:/b print /^# General help using/b print ' < "$progpath" ret=$? if test -z "$1"; then exit $ret fi } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { $opt_debug func_error "missing argument for $1." exit_cmd=exit } # func_split_short_opt shortopt # Set func_split_short_opt_name and func_split_short_opt_arg shell # variables after splitting SHORTOPT after the 2nd character. func_split_short_opt () { my_sed_short_opt='1s/^\(..\).*$/\1/;q' my_sed_short_rest='1s/^..\(.*\)$/\1/;q' func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` } # func_split_short_opt may be replaced by extended shell implementation # func_split_long_opt longopt # Set func_split_long_opt_name and func_split_long_opt_arg shell # variables after splitting LONGOPT at the `=' sign. func_split_long_opt () { my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^--[^=]*=//' func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` } # func_split_long_opt may be replaced by extended shell implementation exit_cmd=: magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. nonopt= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "${1}=\$${1}\${2}" } # func_append may be replaced by extended shell implementation # func_append_quoted var value # Quote VALUE and append to the end of shell variable VAR, separated # by a space. func_append_quoted () { func_quote_for_eval "${2}" eval "${1}=\$${1}\\ \$func_quote_for_eval_result" } # func_append_quoted may be replaced by extended shell implementation # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "${@}"` } # func_arith may be replaced by extended shell implementation # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` } # func_len may be replaced by extended shell implementation # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` } # func_lo2o may be replaced by extended shell implementation # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` } # func_xform may be replaced by extended shell implementation # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { echo "host: $host" if test "$build_libtool_libs" = yes; then echo "enable shared libraries" else echo "disable shared libraries" fi if test "$build_old_libs" = yes; then echo "enable static libraries" else echo "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Option defaults: opt_debug=: opt_dry_run=false opt_config=false opt_preserve_dup_deps=false opt_features=false opt_finish=false opt_help=false opt_help_all=false opt_silent=: opt_verbose=: opt_silent=false opt_verbose=false # Parse options once, thoroughly. This comes as soon as possible in the # script to make things like `--version' happen as quickly as we can. { # this just eases exit handling while test $# -gt 0; do opt="$1" shift case $opt in --debug|-x) opt_debug='set -x' func_echo "enabling shell trace mode" $opt_debug ;; --dry-run|--dryrun|-n) opt_dry_run=: ;; --config) opt_config=: func_config ;; --dlopen|-dlopen) optarg="$1" opt_dlopen="${opt_dlopen+$opt_dlopen }$optarg" shift ;; --preserve-dup-deps) opt_preserve_dup_deps=: ;; --features) opt_features=: func_features ;; --finish) opt_finish=: set dummy --mode finish ${1+"$@"}; shift ;; --help) opt_help=: ;; --help-all) opt_help_all=: opt_help=': help-all' ;; --mode) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_mode="$optarg" case $optarg in # Valid mode arguments: clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac shift ;; --no-silent|--no-quiet) opt_silent=false func_append preserve_args " $opt" ;; --no-verbose) opt_verbose=false func_append preserve_args " $opt" ;; --silent|--quiet) opt_silent=: func_append preserve_args " $opt" opt_verbose=false ;; --verbose|-v) opt_verbose=: func_append preserve_args " $opt" opt_silent=false ;; --tag) test $# = 0 && func_missing_arg $opt && break optarg="$1" opt_tag="$optarg" func_append preserve_args " $opt $optarg" func_enable_tag "$optarg" shift ;; -\?|-h) func_usage ;; --help) func_help ;; --version) func_version ;; # Separate optargs to long options: --*=*) func_split_long_opt "$opt" set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} shift ;; # Separate non-argument short options: -\?*|-h*|-n*|-v*) func_split_short_opt "$opt" set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} shift ;; --) break ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) set dummy "$opt" ${1+"$@"}; shift; break ;; esac done # Validate options: # save first non-option argument if test "$#" -gt 0; then nonopt="$opt" shift fi # preserve --debug test "$opt_debug" = : || func_append preserve_args " --debug" case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps ;; esac $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$opt_dlopen" && test "$opt_mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$opt_mode' for more information." } # Bail if the options were screwed $exit_cmd $EXIT_FAILURE } ## ----------- ## ## Main. ## ## ----------- ## # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_resolve_sysroot PATH # Replace a leading = in PATH with a sysroot. Store the result into # func_resolve_sysroot_result func_resolve_sysroot () { func_resolve_sysroot_result=$1 case $func_resolve_sysroot_result in =*) func_stripname '=' '' "$func_resolve_sysroot_result" func_resolve_sysroot_result=$lt_sysroot$func_stripname_result ;; esac } # func_replace_sysroot PATH # If PATH begins with the sysroot, replace it with = and # store the result into func_replace_sysroot_result. func_replace_sysroot () { case "$lt_sysroot:$1" in ?*:"$lt_sysroot"*) func_stripname "$lt_sysroot" '' "$1" func_replace_sysroot_result="=$func_stripname_result" ;; *) # Including no sysroot. func_replace_sysroot_result=$1 ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_append_quoted CC_quoted "$arg" done CC_expanded=`func_echo_all $CC` CC_quoted_expanded=`func_echo_all $CC_quoted` case "$@ " in " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T </dev/null` if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | $SED -e "$lt_sed_naive_backslashify"` else func_convert_core_file_wine_to_w32_result= fi fi } # end: func_convert_core_file_wine_to_w32 # func_convert_core_path_wine_to_w32 ARG # Helper function used by path conversion functions when $build is *nix, and # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly # configured wine environment available, with the winepath program in $build's # $PATH. Assumes ARG has no leading or trailing path separator characters. # # ARG is path to be converted from $build format to win32. # Result is available in $func_convert_core_path_wine_to_w32_result. # Unconvertible file (directory) names in ARG are skipped; if no directory names # are convertible, then the result may be empty. func_convert_core_path_wine_to_w32 () { $opt_debug # unfortunately, winepath doesn't convert paths, only file names func_convert_core_path_wine_to_w32_result="" if test -n "$1"; then oldIFS=$IFS IFS=: for func_convert_core_path_wine_to_w32_f in $1; do IFS=$oldIFS func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" if test -n "$func_convert_core_file_wine_to_w32_result" ; then if test -z "$func_convert_core_path_wine_to_w32_result"; then func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" else func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" fi fi done IFS=$oldIFS fi } # end: func_convert_core_path_wine_to_w32 # func_cygpath ARGS... # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or # (2), returns the Cygwin file name or path in func_cygpath_result (input # file name or path is assumed to be in w32 format, as previously converted # from $build's *nix or MSYS format). In case (3), returns the w32 file name # or path in func_cygpath_result (input file name or path is assumed to be in # Cygwin format). Returns an empty string on error. # # ARGS are passed to cygpath, with the last one being the file name or path to # be converted. # # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH # environment variable; do not put it in $PATH. func_cygpath () { $opt_debug if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` if test "$?" -ne 0; then # on failure, ensure result is empty func_cygpath_result= fi else func_cygpath_result= func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" fi } #end: func_cygpath # func_convert_core_msys_to_w32 ARG # Convert file name or path ARG from MSYS format to w32 format. Return # result in func_convert_core_msys_to_w32_result. func_convert_core_msys_to_w32 () { $opt_debug # awkward: cmd appends spaces to result func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` } #end: func_convert_core_msys_to_w32 # func_convert_file_check ARG1 ARG2 # Verify that ARG1 (a file name in $build format) was converted to $host # format in ARG2. Otherwise, emit an error message, but continue (resetting # func_to_host_file_result to ARG1). func_convert_file_check () { $opt_debug if test -z "$2" && test -n "$1" ; then func_error "Could not determine host file name corresponding to" func_error " \`$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_file_result="$1" fi } # end func_convert_file_check # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH # Verify that FROM_PATH (a path in $build format) was converted to $host # format in TO_PATH. Otherwise, emit an error message, but continue, resetting # func_to_host_file_result to a simplistic fallback value (see below). func_convert_path_check () { $opt_debug if test -z "$4" && test -n "$3"; then func_error "Could not determine the host path corresponding to" func_error " \`$3'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This is a deliberately simplistic "conversion" and # should not be "improved". See libtool.info. if test "x$1" != "x$2"; then lt_replace_pathsep_chars="s|$1|$2|g" func_to_host_path_result=`echo "$3" | $SED -e "$lt_replace_pathsep_chars"` else func_to_host_path_result="$3" fi fi } # end func_convert_path_check # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT # and appending REPL if ORIG matches BACKPAT. func_convert_path_front_back_pathsep () { $opt_debug case $4 in $1 ) func_to_host_path_result="$3$func_to_host_path_result" ;; esac case $4 in $2 ) func_append func_to_host_path_result "$3" ;; esac } # end func_convert_path_front_back_pathsep ################################################## # $build to $host FILE NAME CONVERSION FUNCTIONS # ################################################## # invoked via `$to_host_file_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # Result will be available in $func_to_host_file_result. # func_to_host_file ARG # Converts the file name ARG from $build format to $host format. Return result # in func_to_host_file_result. func_to_host_file () { $opt_debug $to_host_file_cmd "$1" } # end func_to_host_file # func_to_tool_file ARG LAZY # converts the file name ARG from $build format to toolchain format. Return # result in func_to_tool_file_result. If the conversion in use is listed # in (the comma separated) LAZY, no conversion takes place. func_to_tool_file () { $opt_debug case ,$2, in *,"$to_tool_file_cmd",*) func_to_tool_file_result=$1 ;; *) $to_tool_file_cmd "$1" func_to_tool_file_result=$func_to_host_file_result ;; esac } # end func_to_tool_file # func_convert_file_noop ARG # Copy ARG to func_to_host_file_result. func_convert_file_noop () { func_to_host_file_result="$1" } # end func_convert_file_noop # func_convert_file_msys_to_w32 ARG # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_file_result. func_convert_file_msys_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_to_host_file_result="$func_convert_core_msys_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_w32 # func_convert_file_cygwin_to_w32 ARG # Convert file name ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_file_cygwin_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # because $build is cygwin, we call "the" cygpath in $PATH; no need to use # LT_CYGPATH in this case. func_to_host_file_result=`cygpath -m "$1"` fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_cygwin_to_w32 # func_convert_file_nix_to_w32 ARG # Convert file name ARG from *nix to w32 format. Requires a wine environment # and a working winepath. Returns result in func_to_host_file_result. func_convert_file_nix_to_w32 () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_file_wine_to_w32 "$1" func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_w32 # func_convert_file_msys_to_cygwin ARG # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_file_msys_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then func_convert_core_msys_to_w32 "$1" func_cygpath -u "$func_convert_core_msys_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_msys_to_cygwin # func_convert_file_nix_to_cygwin ARG # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed # in a wine environment, working winepath, and LT_CYGPATH set. Returns result # in func_to_host_file_result. func_convert_file_nix_to_cygwin () { $opt_debug func_to_host_file_result="$1" if test -n "$1"; then # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. func_convert_core_file_wine_to_w32 "$1" func_cygpath -u "$func_convert_core_file_wine_to_w32_result" func_to_host_file_result="$func_cygpath_result" fi func_convert_file_check "$1" "$func_to_host_file_result" } # end func_convert_file_nix_to_cygwin ############################################# # $build to $host PATH CONVERSION FUNCTIONS # ############################################# # invoked via `$to_host_path_cmd ARG' # # In each case, ARG is the path to be converted from $build to $host format. # The result will be available in $func_to_host_path_result. # # Path separators are also converted from $build format to $host format. If # ARG begins or ends with a path separator character, it is preserved (but # converted to $host format) on output. # # All path conversion functions are named using the following convention: # file name conversion function : func_convert_file_X_to_Y () # path conversion function : func_convert_path_X_to_Y () # where, for any given $build/$host combination the 'X_to_Y' value is the # same. If conversion functions are added for new $build/$host combinations, # the two new functions must follow this pattern, or func_init_to_host_path_cmd # will break. # func_init_to_host_path_cmd # Ensures that function "pointer" variable $to_host_path_cmd is set to the # appropriate value, based on the value of $to_host_file_cmd. to_host_path_cmd= func_init_to_host_path_cmd () { $opt_debug if test -z "$to_host_path_cmd"; then func_stripname 'func_convert_file_' '' "$to_host_file_cmd" to_host_path_cmd="func_convert_path_${func_stripname_result}" fi } # func_to_host_path ARG # Converts the path ARG from $build format to $host format. Return result # in func_to_host_path_result. func_to_host_path () { $opt_debug func_init_to_host_path_cmd $to_host_path_cmd "$1" } # end func_to_host_path # func_convert_path_noop ARG # Copy ARG to func_to_host_path_result. func_convert_path_noop () { func_to_host_path_result="$1" } # end func_convert_path_noop # func_convert_path_msys_to_w32 ARG # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic # conversion to w32 is not available inside the cwrapper. Returns result in # func_to_host_path_result. func_convert_path_msys_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from ARG. MSYS # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; # and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_msys_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_msys_to_w32 # func_convert_path_cygwin_to_w32 ARG # Convert path ARG from Cygwin to w32 format. Returns result in # func_to_host_file_result. func_convert_path_cygwin_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_cygwin_to_w32 # func_convert_path_nix_to_w32 ARG # Convert path ARG from *nix to w32 format. Requires a wine environment and # a working winepath. Returns result in func_to_host_file_result. func_convert_path_nix_to_w32 () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" func_convert_path_check : ";" \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" fi } # end func_convert_path_nix_to_w32 # func_convert_path_msys_to_cygwin ARG # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. # Returns result in func_to_host_file_result. func_convert_path_msys_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # See func_convert_path_msys_to_w32: func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_msys_to_cygwin # func_convert_path_nix_to_cygwin ARG # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a # a wine environment, working winepath, and LT_CYGPATH set. Returns result in # func_to_host_file_result. func_convert_path_nix_to_cygwin () { $opt_debug func_to_host_path_result="$1" if test -n "$1"; then # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_stripname : : "$1" func_to_host_path_tmp1=$func_stripname_result func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" func_to_host_path_result="$func_cygpath_result" func_convert_path_check : : \ "$func_to_host_path_tmp1" "$func_to_host_path_result" func_convert_path_front_back_pathsep ":*" "*:" : "$1" fi } # end func_convert_path_nix_to_cygwin # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) func_append pie_flag " $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) func_append later " $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_append_quoted lastarg "$arg" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. func_append base_compile " $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_append_quoted base_compile "$lastarg" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi func_append removelist " $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist func_append removelist " $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir func_append command " -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then func_append command " -o $obj" fi # Suppress compiler output if we already did a PIC compilation. func_append command "$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$opt_mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $opt_mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to build PIC objects only -prefer-non-pic try to build non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking -Wc,FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -bindir BINDIR specify path to binaries directory (for systems where libraries must be found in the PATH setting at runtime) -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$opt_mode'" ;; esac echo $ECHO "Try \`$progname --help' for more information about other modes." } # Now that we've collected a possible --mode arg, show help if necessary if $opt_help; then if test "$opt_help" = :; then func_mode_help else { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do func_mode_help done } | sed -n '1p; 2,$s/^Usage:/ or: /p' { func_help noexit for opt_mode in compile link execute install finish uninstall clean; do echo func_mode_help done } | sed '1d /^When reporting/,/^Report/{ H d } $x /information about other modes/d /more detailed .*MODE/d s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' fi exit $? fi # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $opt_dlopen; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then func_append dir "/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -* | *.la | *.lo ) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_append_quoted args "$file" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" echo "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$opt_mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libs= libdirs= admincmds= for opt in "$nonopt" ${1+"$@"} do if test -d "$opt"; then func_append libdirs " $opt" elif test -f "$opt"; then if func_lalib_unsafe_p "$opt"; then func_append libs " $opt" else func_warning "\`$opt' is not a valid libtool archive" fi else func_fatal_error "invalid argument \`$opt'" fi done if test -n "$libs"; then if test -n "$lt_sysroot"; then sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" else sysroot_cmd= fi # Remove sysroot references if $opt_dry_run; then for lib in $libs; do echo "removing references to $lt_sysroot and \`=' prefixes from $lib" done else tmpdir=`func_mktempdir` for lib in $libs; do sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ > $tmpdir/tmp-la mv -f $tmpdir/tmp-la $lib done ${RM}r "$tmpdir" fi fi if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || func_append admincmds " $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then echo "----------------------------------------------------------------------" echo "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done echo echo "If you ever happen to want to link against installed libraries" echo "in a given directory, LIBDIR, you must either use libtool, and" echo "specify the full pathname of the library, or use the \`-LLIBDIR'" echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then echo " - add LIBDIR to the \`$shlibpath_var' environment variable" echo " during execution" fi if test -n "$runpath_var"; then echo " - add LIBDIR to the \`$runpath_var' environment variable" echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi echo echo "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" echo "pages." ;; *) echo "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac echo "----------------------------------------------------------------------" fi exit $EXIT_SUCCESS } test "$opt_mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. case $nonopt in *shtool*) :;; *) false;; esac; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" func_append install_prog "$func_quote_for_eval_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; *) install_cp=false ;; esac # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= no_mode=: for arg do arg2= if test -n "$dest"; then func_append files " $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) if $install_cp; then :; else prev=$arg fi ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then if test "x$prev" = x-m && test -n "$install_override_mode"; then arg2=$install_override_mode no_mode=false fi prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" func_append install_prog " $func_quote_for_eval_result" if test -n "$arg2"; then func_quote_for_eval "$arg2" fi func_append install_shared_prog " $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else func_quote_for_eval "$install_override_mode" func_append install_shared_prog " -m $func_quote_for_eval_result" fi fi if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. func_append staticlibs " $file" ;; *.la) func_resolve_sysroot "$file" file=$func_resolve_sysroot_result # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) func_append current_libdirs " $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) func_append future_libdirs " $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" func_append dir "$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && func_append staticlibs " $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$opt_mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" #endif /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */ # define LT_DLSYM_CONST #elif defined(__osf__) /* This system does not cope well with relocations in const data. */ # define LT_DLSYM_CONST #else # define LT_DLSYM_CONST const #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` for progfile in $progfiles; do func_to_tool_file "$progfile" func_convert_file_msys_to_w32 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" case $host in *cygwin* | *mingw* | *cegcc* ) # if an import library, we need to obtain dlname if func_win32_import_lib_p "$dlprefile"; then func_tr_sh "$dlprefile" eval "curr_lafile=\$libfile_$func_tr_sh_result" dlprefile_dlbasename="" if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then # Use subshell, to avoid clobbering current variable values dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` if test -n "$dlprefile_dlname" ; then func_basename "$dlprefile_dlname" dlprefile_dlbasename="$func_basename_result" else # no lafile. user explicitly requested -dlpreopen . $sharedlib_from_linklib_cmd "$dlprefile" dlprefile_dlbasename=$sharedlib_from_linklib_result fi fi $opt_dry_run || { if test -n "$dlprefile_dlbasename" ; then eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' else func_warning "Could not compute DLL name from $name" eval '$ECHO ": $name " >> "$nlist"' fi func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" } else # not an import lib $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } fi ;; *) $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" } ;; esac done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 /dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else echo '/* NONE */' >> "$output_objdir/$my_dlsyms" fi echo >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; extern LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; LT_DLSYM_CONST lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac echo >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) func_append symtab_cflags " $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. # Despite the name, also deal with 64 bit binaries. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then func_to_tool_file "$1" func_convert_file_msys_to_w32 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_cygming_dll_for_implib ARG # # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib () { $opt_debug sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` } # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs # # The is the core of a fallback implementation of a # platform-specific function to extract the name of the # DLL associated with the specified import library LIBNAME. # # SECTION_NAME is either .idata$6 or .idata$7, depending # on the platform and compiler that created the implib. # # Echos the name of the DLL associated with the # specified import library. func_cygming_dll_for_implib_fallback_core () { $opt_debug match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` $OBJDUMP -s --section "$1" "$2" 2>/dev/null | $SED '/^Contents of section '"$match_literal"':/{ # Place marker at beginning of archive member dllname section s/.*/====MARK====/ p d } # These lines can sometimes be longer than 43 characters, but # are always uninteresting /:[ ]*file format pe[i]\{,1\}-/d /^In archive [^:]*:/d # Ensure marker is printed /^====MARK====/p # Remove all lines with less than 43 characters /^.\{43\}/!d # From remaining lines, remove first 43 characters s/^.\{43\}//' | $SED -n ' # Join marker and all lines until next marker into a single line /^====MARK====/ b para H $ b para b :para x s/\n//g # Remove the marker s/^====MARK====// # Remove trailing dots and whitespace s/[\. \t]*$// # Print /./p' | # we now have a list, one entry per line, of the stringified # contents of the appropriate section of all members of the # archive which possess that section. Heuristic: eliminate # all those which have a first or second character that is # a '.' (that is, objdump's representation of an unprintable # character.) This should work for all archives with less than # 0x302f exports -- but will fail for DLLs whose name actually # begins with a literal '.' or a single character followed by # a '.'. # # Of those that remain, print the first one. $SED -e '/^\./d;/^.\./d;q' } # func_cygming_gnu_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is a GNU/binutils-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_gnu_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` test -n "$func_cygming_gnu_implib_tmp" } # func_cygming_ms_implib_p ARG # This predicate returns with zero status (TRUE) if # ARG is an MS-style import library. Returns # with nonzero status (FALSE) otherwise. func_cygming_ms_implib_p () { $opt_debug func_to_tool_file "$1" func_convert_file_msys_to_w32 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` test -n "$func_cygming_ms_implib_tmp" } # func_cygming_dll_for_implib_fallback ARG # Platform-specific function to extract the # name of the DLL associated with the specified # import library ARG. # # This fallback implementation is for use when $DLLTOOL # does not support the --identify-strict option. # Invoked by eval'ing the libtool variable # $sharedlib_from_linklib_cmd # Result is available in the variable # $sharedlib_from_linklib_result func_cygming_dll_for_implib_fallback () { $opt_debug if func_cygming_gnu_implib_p "$1" ; then # binutils import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` elif func_cygming_ms_implib_p "$1" ; then # ms-generated import library sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` else # unknown sharedlib_from_linklib_result="" fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" if test "$lock_old_archive_extraction" = yes; then lockfile=$f_ex_an_ar_oldlib.lock until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done fi func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ 'stat=$?; rm -f "$lockfile"; exit $stat' if test "$lock_old_archive_extraction" = yes; then $opt_dry_run || rm -f "$lockfile" fi if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=${1-no} $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` $ECHO "\ # A function that is used when there is no print builtin or printf. func_fallback_echo () { eval 'cat <<_LTECHO_EOF \$1 _LTECHO_EOF' } ECHO=\"$qECHO\" fi # Very basic option parsing. These options are (a) specific to # the libtool wrapper, (b) are identical between the wrapper # /script/ and the wrapper /executable/ which is used only on # windows platforms, and (c) all begin with the string "--lt-" # (application programs are unlikely to have options which match # this pattern). # # There are only two supported options: --lt-debug and # --lt-dump-script. There is, deliberately, no --lt-help. # # The first argument to this parsing function should be the # script's $0 value, followed by "$@". lt_option_debug= func_parse_lt_options () { lt_script_arg0=\$0 shift for lt_opt do case \"\$lt_opt\" in --lt-debug) lt_option_debug=1 ;; --lt-dump-script) lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` cat \"\$lt_dump_D/\$lt_dump_F\" exit 0 ;; --lt-*) \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 exit 1 ;; esac done # Print the debug banner immediately: if test -n \"\$lt_option_debug\"; then echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 fi } # Used when --lt-debug. Prints its arguments to stdout # (redirection is the responsibility of the caller) func_lt_dump_args () { lt_dump_args_N=1; for lt_arg do \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` done } # Core function for launching the target application func_exec_program_core () { " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ if test -n \"\$lt_option_debug\"; then \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 func_lt_dump_args \${1+\"\$@\"} 1>&2 fi exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 } # A function to encapsulate launching the target application # Strips options in the --lt-* namespace from \$@ and # launches target application with the remaining arguments. func_exec_program () { for lt_wr_arg do case \$lt_wr_arg in --lt-*) ;; *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; esac shift done func_exec_program_core \${1+\"\$@\"} } # Parse options func_parse_lt_options \"\$0\" \${1+\"\$@\"} # Find the directory that this script lives in. thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` done # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # fixup the dll searchpath if we need to. # # Fix the DLL searchpath if we need to. Do this before prepending # to shlibpath, because on Windows, both are PATH and uninstalled # libraries must come first. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` export $shlibpath_var " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. func_exec_program \${1+\"\$@\"} fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat < #include #ifdef _MSC_VER # include # include # include #else # include # include # ifdef __CYGWIN__ # include # endif #endif #include #include #include #include #include #include #include #include /* declarations of non-ANSI functions */ #if defined(__MINGW32__) # ifdef __STRICT_ANSI__ int _putenv (const char *); # endif #elif defined(__CYGWIN__) # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif /* #elif defined (other platforms) ... */ #endif /* portability defines, excluding path handling macros */ #if defined(_MSC_VER) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv # define S_IXUSR _S_IEXEC # ifndef _INTPTR_T_DEFINED # define _INTPTR_T_DEFINED # define intptr_t int # endif #elif defined(__MINGW32__) # define setmode _setmode # define stat _stat # define chmod _chmod # define getcwd _getcwd # define putenv _putenv #elif defined(__CYGWIN__) # define HAVE_SETENV # define FOPEN_WB "wb" /* #elif defined (other platforms) ... */ #endif #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif /* path handling portability macros */ #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #if defined(LT_DEBUGWRAPPER) static int lt_debug = 1; #else static int lt_debug = 0; #endif const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_debugprintf (const char *file, int line, const char *fmt, ...); void lt_fatal (const char *file, int line, const char *message, ...); static const char *nonnull (const char *s); static const char *nonempty (const char *s); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); char **prepare_spawn (char **argv); void lt_dump_script (FILE *f); EOF cat <= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", nonempty (path)); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", nonempty (wrapper)); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", nonnull (strerror (errno))); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { lt_debugprintf (__FILE__, __LINE__, "checking path component for symlinks: %s\n", tmp_pathspec); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { lt_fatal (__FILE__, __LINE__, "error accessing file \"%s\": %s", tmp_pathspec, nonnull (strerror (errno))); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal (__FILE__, __LINE__, "could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } void lt_debugprintf (const char *file, int line, const char *fmt, ...) { va_list args; if (lt_debug) { (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } } static void lt_error_core (int exit_status, const char *file, int line, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *file, int line, const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); va_end (ap); } static const char * nonnull (const char *s) { return s ? s : "(null)"; } static const char * nonempty (const char *s) { return (s && !*s) ? "(empty)" : nonnull (s); } void lt_setenv (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_setenv) setting '%s' to '%s'\n", nonnull (name), nonnull (value)); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } void lt_update_exe_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { lt_debugprintf (__FILE__, __LINE__, "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", nonnull (name), nonnull (value)); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF case $host_os in mingw*) cat <<"EOF" /* Prepares an argument vector before calling spawn(). Note that spawn() does not by itself call the command interpreter (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&v); v.dwPlatformId == VER_PLATFORM_WIN32_NT; }) ? "cmd.exe" : "command.com"). Instead it simply concatenates the arguments, separated by ' ', and calls CreateProcess(). We must quote the arguments since Win32 CreateProcess() interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a special way: - Space and tab are interpreted as delimiters. They are not treated as delimiters if they are surrounded by double quotes: "...". - Unescaped double quotes are removed from the input. Their only effect is that within double quotes, space and tab are treated like normal characters. - Backslashes not followed by double quotes are not special. - But 2*n+1 backslashes followed by a double quote become n backslashes followed by a double quote (n >= 0): \" -> " \\\" -> \" \\\\\" -> \\" */ #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" char ** prepare_spawn (char **argv) { size_t argc; char **new_argv; size_t i; /* Count number of arguments. */ for (argc = 0; argv[argc] != NULL; argc++) ; /* Allocate new argument vector. */ new_argv = XMALLOC (char *, argc + 1); /* Put quoted arguments into the new argument vector. */ for (i = 0; i < argc; i++) { const char *string = argv[i]; if (string[0] == '\0') new_argv[i] = xstrdup ("\"\""); else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) { int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); size_t length; unsigned int backslashes; const char *s; char *quoted_string; char *p; length = 0; backslashes = 0; if (quote_around) length++; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') length += backslashes + 1; length++; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) length += backslashes + 1; quoted_string = XMALLOC (char, length + 1); p = quoted_string; backslashes = 0; if (quote_around) *p++ = '"'; for (s = string; *s != '\0'; s++) { char c = *s; if (c == '"') { unsigned int j; for (j = backslashes + 1; j > 0; j--) *p++ = '\\'; } *p++ = c; if (c == '\\') backslashes++; else backslashes = 0; } if (quote_around) { unsigned int j; for (j = backslashes; j > 0; j--) *p++ = '\\'; *p++ = '"'; } *p = '\0'; new_argv[i] = quoted_string; } else new_argv[i] = (char *) string; } new_argv[argc] = NULL; return new_argv; } EOF ;; esac cat <<"EOF" void lt_dump_script (FILE* f) { EOF func_emit_wrapper yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' cat <<"EOF" } EOF } # end: func_emit_cwrapperexe_src # func_win32_import_lib_p ARG # True if ARG is an import lib, as indicated by $file_magic_cmd func_win32_import_lib_p () { $opt_debug case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in *import*) : ;; *) false ;; esac } # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no bindir= dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in bindir) bindir="$arg" prev= continue ;; dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then func_append dlfiles " $arg" else func_append dlprefiles " $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) func_append deplibs " $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # func_append moreargs " $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) func_append rpath " $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) func_append xrpath " $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) func_append weak_libs " $arg" prev= continue ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) func_append compiler_flags " $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) func_append linker_flags " $qarg" func_append compiler_flags " $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -bindir) prev=bindir continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname "-L" '' "$arg" if test -z "$func_stripname_result"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "* | *" $arg "*) # Will only happen for absolute or sysroot arguments ;; *) # Preserve sysroot, but never include relative directories case $dir in [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; *) func_append deplibs " -L$dir" ;; esac func_append lib_search_path " $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) func_append dllsearchpath ":$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework func_append deplibs " System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi func_append deplibs " $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot|--sysroot) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) func_append compiler_flags " $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) func_append new_inherited_linker_flags " $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; =*) func_stripname '=' '' "$dir" dir=$lt_sysroot$func_stripname_result ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $func_quote_for_eval_result" func_append compiler_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" func_append arg " $wl$func_quote_for_eval_result" func_append compiler_flags " $wl$func_quote_for_eval_result" func_append linker_flags " $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # Flags to be passed through unchanged, with rationale: # -64, -mips[0-9] enable 64-bit mode for the SGI compiler # -r[0-9][0-9]* specify processor for the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler # +DA*, +DD* enable 64-bit mode for the HP compiler # -q* compiler args for the IBM compiler # -m*, -t[45]*, -txscale* architecture-specific flags for GCC # -F/path path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* profiling flags for GCC # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-flto*|-fwhopr*|-fuse-linker-plugin) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. func_append objs " $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then func_append dlfiles " $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. func_append dlprefiles " $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. func_append deplibs " $arg" func_append old_deplibs " $arg" continue ;; *.la) # A libtool-controlled library. func_resolve_sysroot "$arg" if test "$prev" = dlfiles; then # This library was specified with -dlopen. func_append dlfiles " $func_resolve_sysroot_result" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. func_append dlprefiles " $func_resolve_sysroot_result" prev= else func_append deplibs " $func_resolve_sysroot_result" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" func_to_tool_file "$output_objdir/" tool_output_objdir=$func_to_tool_file_result # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_preserve_dup_deps ; then case "$libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append libs " $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; esac func_append pre_post_deps " $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= func_resolve_sysroot "$lib" case $lib in *.la) func_source "$func_resolve_sysroot_result" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do func_basename "$deplib" deplib_base=$func_basename_result case " $weak_libs " in *" $deplib_base "*) ;; *) func_append deplibs " $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append compiler_flags " $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) func_append new_inherited_linker_flags " $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" func_resolve_sysroot "$func_stripname_result" dir=$func_resolve_sysroot_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) func_append xrpath " $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) func_resolve_sysroot "$deplib" lib=$func_resolve_sysroot_result ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then echo $ECHO "*** Warning: Trying to link with static lib archive $deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because the file extensions .$libext of this argument makes me believe" echo "*** that it is just a static archive that I should not use here." else echo $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. func_append newdlprefiles " $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else func_append newdlfiles " $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && func_append dlfiles " $dlopen" test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. func_append convenience " $ladir/$objdir/$old_library" func_append old_convenience " $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= if test -n "$old_library" && { test "$prefer_static_libs" = yes || test "$prefer_static_libs,$installed" = "built,no"; }; then linklib=$old_library else for l in $old_library $library_names; do linklib="$l" done fi if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. func_append dlprefiles " $lib $dependency_libs" else func_append newdlfiles " $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$lt_sysroot$libdir" absdir="$lt_sysroot$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later func_append notinst_path " $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later func_append notinst_path " $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi case "$host" in # special handling for platforms with PE-DLLs. *cygwin* | *mingw* | *cegcc* ) # Linker will automatically link against shared library if both # static and shared are present. Therefore, ensure we extract # symbols from the import library if a shared library is present # (otherwise, the dlopen module name will be incorrect). We do # this by putting the import library name into $newdlprefiles. # We recover the dlopen module name by 'saving' the la file # name in a special purpose variable, and (later) extracting the # dlname from the la file. if test -n "$dlname"; then func_tr_sh "$dir/$linklib" eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" func_append newdlprefiles " $dir/$linklib" else func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" fi ;; * ) # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then func_append newdlprefiles " $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ func_append dlpreconveniencelibs " $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then func_append newdlprefiles " $dir/$dlname" else func_append newdlprefiles " $dir/$linklib" fi ;; esac fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then func_append newlib_search_path " $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result" func_append newlib_search_path " $func_resolve_sysroot_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $deplib "*) func_append specialdeplibs " $deplib" ;; esac fi func_append tmp_libs " $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) func_append temp_rpath "$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded func_append notinst_deplibs " $lib" need_relink=no ;; *) if test "$installed" = no; then func_append notinst_deplibs " $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then echo if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) func_append compile_rpath " $absdir" ;; esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$opt_mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then echo echo "*** And there doesn't seem to be a static archive available" echo "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) func_append compile_shlibpath "$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$opt_mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) func_append finalize_shlibpath "$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) func_append add_dir " -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. echo $ECHO "*** Warning: This system can not link to static lib archive $lib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then echo "*** But as you try to build a module library, libtool will still create " echo "*** a static module, that should work as long as the dlopening application" echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) func_append xrpath " $temp_xrpath";; esac;; *) func_append temp_deplibs " $libdir";; esac done dependency_libs="$temp_deplibs" fi func_append newlib_search_path " $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" case $deplib in -L*) func_stripname '-L' '' "$deplib" func_resolve_sysroot "$func_stripname_result";; *) func_resolve_sysroot "$deplib" ;; esac if $opt_preserve_dup_deps ; then case "$tmp_libs " in *" $func_resolve_sysroot_result "*) func_append specialdeplibs " $func_resolve_sysroot_result" ;; esac fi func_append tmp_libs " $func_resolve_sysroot_result" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do path= case $deplib in -L*) path="$deplib" ;; *.la) func_resolve_sysroot "$deplib" deplib=$func_resolve_sysroot_result func_dirname "$deplib" "" "." dir=$func_dirname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) func_append lib_search_path " $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) func_append tmp_libs " $deplib" ;; esac ;; *) func_append tmp_libs " $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then func_append tmp_libs " $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" func_append objs "$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else echo $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" func_append libobjs " $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|qnx|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. func_append verstring ":${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" func_append libobjs " $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$opt_mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi func_append removelist " $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then func_append oldlibs " $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do func_replace_sysroot "$libdir" func_append temp_xrpath " -R$func_replace_sysroot_result" case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) func_append dlfiles " $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) func_append dlprefiles " $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework func_append deplibs " System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then func_append deplibs " -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c </dev/null` $nocaseglob else potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` fi for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) func_append newdeplibs " $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then func_append newdeplibs " $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes echo $ECHO "*** Warning: linker path does not have real file for library $a_deplib." echo "*** I have the capability to make that library automatically link in when" echo "*** you link to this library. But I can only do this if you have a" echo "*** shared version of the library, which you do not appear to have" echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. func_append newdeplibs " $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` done fi case $tmp_deplibs in *[!\ \ ]*) echo if test "X$deplibs_check_method" = "Xnone"; then echo "*** Warning: inter-library dependencies are not supported in this platform." else echo "*** Warning: inter-library dependencies are not known to be supported." fi echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes ;; esac ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then echo echo "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" echo "*** a static module, that should work as long as the dlopening" echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then echo echo "*** However, this would only work if libtool was able to extract symbol" echo "*** lists from a program, using \`nm' or equivalent, but libtool could" echo "*** not find such a program. So, this module is probably useless." echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else echo "*** The inter-library dependencies that have been dropped here will be" echo "*** automatically added whenever a program is linked with this library" echo "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then echo echo "*** Since this library must not contain undefined symbols," echo "*** because either the platform does not support them or" echo "*** it was explicitly requested with -no-undefined," echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$opt_mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then func_replace_sysroot "$libdir" libdir=$func_replace_sysroot_result if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append dep_rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_apped perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do func_append linknames " $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" func_append delfiles " $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd1 in $cmds; do IFS="$save_ifs" # Take the normal branch if the nm_file_list_spec branch # doesn't work or if tool conversion is not needed. case $nm_file_list_spec~$to_tool_file_cmd in *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) try_normal_branch=yes eval cmd=\"$cmd1\" func_len " $cmd" len=$func_len_result ;; *) try_normal_branch=no ;; esac if test "$try_normal_branch" = yes \ && { test "$len" -lt "$max_cmd_len" \ || test "$max_cmd_len" -le -1; } then func_show_eval "$cmd" 'exit $?' skipped_export=false elif test -n "$nm_file_list_spec"; then func_basename "$output" output_la=$func_basename_result save_libobjs=$libobjs save_output=$output output=${output_objdir}/${output_la}.nm func_to_tool_file "$output" libobjs=$nm_file_list_spec$func_to_tool_file_result func_append delfiles " $output" func_verbose "creating $NM input file list: $output" for obj in $save_libobjs; do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > "$output" eval cmd=\"$cmd1\" func_show_eval "$cmd" 'exit $?' output=$save_output libobjs=$save_libobjs skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) func_append tmp_deplibs " $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $convenience func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" func_append linker_flags " $flag" fi # Make a backup of the uninstalled library when relinking if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output func_basename "$output" output_la=$func_basename_result # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" echo 'INPUT (' > $output for obj in $save_libobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done echo ')' >> $output func_append delfiles " $output" func_to_tool_file "$output" output=$func_to_tool_file_result elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" >> $output done func_append delfiles " $output" func_to_tool_file "$output" output=$firstobj\"$file_list_spec$func_to_tool_file_result\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. reload_objs=$objlist eval concat_cmds=\"$reload_cmds\" else # All subsequent reloadable object files will link in # the last one created. reload_objs="$objlist $last_robj" eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=" $obj" func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ reload_objs="$objlist $last_robj" eval concat_cmds=\"\${concat_cmds}$reload_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi func_append delfiles " $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter func_append delfiles " $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append libobjs " $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$opt_mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$opt_mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` else gentop="$output_objdir/${obj}x" func_append generated " $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # If we're not building shared, we need to use non_pic_objs test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) func_append compile_command " ${wl}-bind_at_load" func_append finalize_command " ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) func_append new_libs " -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) func_append new_libs " $deplib" ;; esac ;; *) func_append new_libs " $deplib" ;; esac done compile_deplibs="$new_libs" func_append compile_command " $compile_deplibs" func_append finalize_command " $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) func_append finalize_rpath " $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) func_append perm_rpath " $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) func_append dllsearchpath ":$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) func_append dllsearchpath ":$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" func_append rpath " $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) func_append finalize_perm_rpath " $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cegcc* | *mingw32ce*) # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. wrappers_required=no ;; *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do func_append rpath "$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do func_append rpath "$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' if test -n "$postlink_cmds"; then func_to_tool_file "$output_objdir/$outputname" postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` func_execute_cmds "$postlink_cmds" 'exit $?' fi # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then func_append oldobjs " $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $addlibs func_append oldobjs " $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_extract_archives $gentop $dlprefiles func_append oldobjs " $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else echo "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" func_append generated " $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" func_append oldobjs " $gentop/$newobj" ;; *) func_append oldobjs " $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds elif test -n "$archiver_list_spec"; then func_verbose "using command file archive linking..." for obj in $oldobjs do func_to_tool_file "$obj" $ECHO "$func_to_tool_file_result" done > $output_objdir/$libname.libcmd func_to_tool_file "$output_objdir/$libname.libcmd" oldobjs=" $archiver_list_spec$func_to_tool_file_result" cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" ;; -L*) func_stripname -L '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -L$func_replace_sysroot_result" ;; -R*) func_stripname -R '' "$deplib" func_replace_sysroot "$func_stripname_result" func_append newdependency_libs " -R$func_replace_sysroot_result" ;; *) func_append newdependency_libs " $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" ;; *) func_append newdlfiles " $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlfiles " $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac func_append newdlprefiles " $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin # In fact, it would be nice if we could use this code for all target # systems that can't hard-code library paths into their executables # and that have no shared library path variable independent of PATH, # but it turns out we can't easily determine that from inspecting # libtool variables, so we have to hard-code the OSs to which it # applies here; at the moment, that means platforms that use the PE # object format with DLL files. See the long comment at the top of # tests/bindir.at for full details. tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) # If a -bindir argument was supplied, place the dll there. if test "x$bindir" != x ; then func_relative_path "$install_libdir" "$bindir" tdlname=$func_relative_path_result$dlname else # Otherwise fall back on heuristic. tdlname=../bin/$dlname fi ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$opt_mode" = link || test "$opt_mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) func_append RM " $arg"; rmforce=yes ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then odir="$objdir" else odir="$dir/$objdir" fi func_basename "$file" name="$func_basename_result" test "$opt_mode" = uninstall && odir="$dir" # Remember odir for removal later, being careful to avoid duplicates if test "$opt_mode" = clean; then case " $rmdirs " in *" $odir "*) ;; *) func_append rmdirs " $odir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do func_append rmfiles " $odir/$n" done test -n "$old_library" && func_append rmfiles " $odir/$old_library" case "$opt_mode" in clean) case " $library_names " in *" $dlname "*) ;; *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; esac test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then func_append rmfiles " $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then func_append rmfiles " $dir/$non_pic_object" fi fi ;; *) if test "$opt_mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe func_append rmfiles " $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result func_append rmfiles " $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles func_append rmfiles " $odir/$name $odir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then func_append rmfiles " $odir/lt-$name" fi if test "X$noexename" != "X$name" ; then func_append rmfiles " $odir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$opt_mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$opt_mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 unixodbc-gui-qt-2.3.0/README.dist0000644000175000001440000000246511506076311013301 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ dist (distribution) --------------------------------------------------------------- This readme is for those interested in *making* a unixODBC-GUI-Qt distribution of some sort. Linux ----- Create source 'tar-ball': 1. get sources - presumably from sourceforge 2. $ mv unixODBC-GUI-Qt- 3. $ cd 4. $ sh Clean.sh 5. $ cd ../ 6. $ tar -c unixODBC-GUI-Qt- > unixODBC-GUI-Qt-.tar 7. $ gzip unixODBC-GUI-Qt-.tar NOTE: If you have run the configure script then you should do the following... $ make distclean ...and then follow steps 4 onward. WARNING:Step 4 can be dangerous if executed from outside of the unixODBC-GUI-Qt source directory. Create binary & source RPM: 1. $ mv unixODBC-GUI-Qt-.tar.gz /SOURCES 2. $ cd /SOURCES 3. $ tar zxvf unixODBC-GUI-Qt-.tar.gz 4. $ rpmbuild -ba unixODBC-GUI-Qt-/unixODBC-GUI-Qt.spec NOTE: On openSuSE = /usr/src/packages On RedHat = /usr/src/redhat Windows ------- ToDo --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/unixODBC-GUI-Qt.spec0000644000175000001440000000333511506076311014747 00000000000000%define name unixODBC-GUI-Qt %define ver 2.3.0 %define rel 1 %define prefix /usr Summary: Several GUI (Qt) programs and plugins for unixODBC. Name: %{name} Version: %ver Release: %rel License: LGPL and GPL Group: Applications/Databases Source: %{name}-%{ver}.tar.gz BuildRoot: /var/tmp/%{name}-%{ver}-root URL: http://sourceforge.net/projects/unixodbc-gui-qt/ Vendor: unixODBC-GUI-Qt Project Packager: Peter Harvey Docdir: %{prefix}/doc Prefix: %prefix %description unixODBC-GUI-Qt provides several GUI (Qt) programs and plugins. * administrator (program) * create data source wizard (program) * test (program) * installer (plugin) * auto test (plugin) All programs are GPL. All libs are LGPL. %prep %setup -q %build make -f Makefile.svn cd doc/External/ qcollectiongenerator CollectionQ4.qhcp -o CollectionQ4.qhc cd ../../ ./configure CXXFLAGS=-O3 --prefix=$RPM_BUILD_ROOT/usr --libdir=$RPM_BUILD_ROOT%{_libdir} make %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT make install %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %pre %post cd %{_docdir}/unixODBC-GUI-Qt/doc/External/ assistant -collectionFile CollectionQ4.qhc -register Project.qch /sbin/ldconfig %preun cd %{_docdir}/unixODBC-GUI-Qt/doc/External/ assistant -collectionFile CollectionQ4.qhc -unregister Project.qch %postun -p /sbin/ldconfig %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS doc %{prefix}/bin/ODBCCreateDataSourceQ4 %{prefix}/bin/ODBCManageDataSourcesQ4 %{prefix}/bin/ODBCTestQ4 %{_libdir}/libgtrtstQ4.so* %{_libdir}/libgtrtstQ4.a %{_libdir}/libgtrtstQ4.la %{_libdir}/libodbcinstQ4.so* %{_libdir}/libodbcinstQ4.a %{_libdir}/libodbcinstQ4.la unixodbc-gui-qt-2.3.0/acinclude.m40000644000175000001440000005563411506076311013656 00000000000000## -*- autoconf -*- dnl unixODBC dnl dnl This file has been customized for unixODBC. dnl dnl AC_CHECK_LIBPT_NOC(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND dnl [, OTHER-LIBRARIES]]]) AC_DEFUN([AC_CHECK_LIBPT_NOC], [AC_MSG_CHECKING([for $2 in -l$1]) dnl Use a cache variable name containing both the library and function name, dnl because the test really is for library $1 defining function $2, not dnl just for library $1. Separate tests with the same $1 and different $2s dnl may have different results. ac_save_LIBS="$LIBS" LIBS="-l$1 $5 $LIBS" AC_TRY_LINK(dnl [ #ifdef __cplusplus extern "C" #endif #include ], [$2(0)], eval "ac_cv_lib_$ac_lib_var=yes", eval "ac_cv_lib_$ac_lib_var=no") LIBS="$ac_save_LIBS" dnl if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then AC_MSG_RESULT(yes) ifelse([$3], , [changequote(, )dnl ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` changequote([, ])dnl AC_DEFINE_UNQUOTED($ac_tr_lib) LIBS="-l$1 $LIBS" ], [$3]) else AC_MSG_RESULT(no) ifelse([$4], , , [$4 ])dnl fi ]) dnl Check if the compiler works with a given command line option dnl AC_CHECK_COMP_OPT(OPTION) AC_DEFUN([AC_CHECK_COMP_OPT], [AC_MSG_CHECKING([if compiler accepts -$1]) echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then AC_MSG_RESULT(yes) CFLAGS="$CFLAGS -$1" else AC_MSG_RESULT(no) fi rm -f conftest* ]) dnl Check for a lib, without checking the cache first dnl AC_CHECK_LIB_NOC(LIBRARY, FUNCTION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND dnl [, OTHER-LIBRARIES]]]) AC_DEFUN([AC_CHECK_LIB_NOC], [AC_MSG_CHECKING([for $2 in -l$1 $5]) ac_save_LIBS="$LIBS" LIBS="-l$1 $5 $LIBS" AC_TRY_LINK(dnl [/* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char $2(); ], [$2()], eval "ac_cv_lib_$ac_lib_var=yes", eval "ac_cv_lib_$ac_lib_var=no") LIBS="$ac_save_LIBS" if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then AC_MSG_RESULT(yes) ifelse([$3], , [changequote(, )dnl ac_tr_lib=HAVE_LIB`echo $1 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` changequote([, ])dnl AC_DEFINE_UNQUOTED($ac_tr_lib) LIBS="-l$1 $LIBS" ], [$3]) else AC_MSG_RESULT(no) ifelse([$4], , , [$4 ])dnl fi ]) dnl ## dnl ## GNU Pth - The GNU Portable Threads dnl ## Copyright (c) 1999-2000 Ralf S. Engelschall dnl ## dnl ## This file is part of GNU Pth, a non-preemptive thread scheduling dnl ## library which can be found at http://www.gnu.org/software/pth/. dnl ## dnl ## This library is free software; you can redistribute it and/or dnl ## modify it under the terms of the GNU Lesser General Public dnl ## License as published by the Free Software Foundation; either dnl ## version 2.1 of the License, or (at your option) any later version. dnl ## dnl ## This library is distributed in the hope that it will be useful, dnl ## but WITHOUT ANY WARRANTY; without even the implied warranty of dnl ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl ## Lesser General Public License for more details. dnl ## dnl ## You should have received a copy of the GNU Lesser General Public dnl ## License along with this library; if not, write to the Free Software dnl ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 dnl ## USA, or contact Ralf S. Engelschall . dnl ## dnl ## pth.m4: Autoconf macro for locating GNU Pth from within dnl ## configure.in of third-party software packages dnl ## dnl ## dnl ## Synopsis: dnl ## AC_CHECK_PTH([MIN-VERSION [, # minimum Pth version, e.g. 1.2b3 dnl ## DEFAULT-WITH-PTH [, # default value for --with-pth option dnl ## DEFAULT-WITH-PTH-TEST [,# default value for --with-pth-test option dnl ## EXTEND-VARS [, # whether CFLAGS/LDFLAGS/etc are extended dnl ## ACTION-IF-FOUND [, # action to perform if Pth was found dnl ## ACTION-IF-NOT-FOUND # action to perform if Pth was not found dnl ## ]]]]]]) dnl ## Examples: dnl ## AC_CHECK_PTH(1.2.0) dnl ## AC_CHECK_PTH(1.2.0,,,no,CFLAGS="$CFLAGS -DHAVE_PTH $PTH_CFLAGS") dnl ## AC_CHECK_PTH(1.2.0,yes,yes,yes,CFLAGS="$CFLAGS -DHAVE_PTH") dnl ## dnl dnl # auxilliary macros AC_DEFUN([_AC_PTH_ERROR], [dnl AC_MSG_RESULT([*FAILED*]) echo " +------------------------------------------------------------------------+" 1>&2 cat <>/ /' 1>&2 $1 EOT echo " +------------------------------------------------------------------------+" 1>&2 exit 1 ]) AC_DEFUN([_AC_PTH_VERBOSE], [dnl if test ".$verbose" = .yes; then AC_MSG_RESULT([ $1]) fi ]) dnl # the user macro AC_DEFUN([AC_CHECK_PTH], [dnl dnl dnl # prerequisites AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_CPP])dnl dnl PTH_CPPFLAGS='' PTH_CFLAGS='' PTH_LDFLAGS='' PTH_LIBS='' AC_SUBST(PTH_CPPFLAGS) AC_SUBST(PTH_CFLAGS) AC_SUBST(PTH_LDFLAGS) AC_SUBST(PTH_LIBS) dnl # command line options AC_MSG_CHECKING(for GNU Pth) _AC_PTH_VERBOSE([]) AC_ARG_WITH(pth,dnl [ --with-pth[=ARG] Build with GNU Pth Library (default=]ifelse([$2],,yes,$2)[)],dnl ,dnl with_pth="ifelse([$2],,yes,$2)" )dnl AC_ARG_WITH(pth-test,dnl [ --with-pth-test Perform GNU Pth Sanity Test (default=]ifelse([$3],,yes,$3)[)],dnl ,dnl with_pth_test="ifelse([$3],,yes,$3)" )dnl _AC_PTH_VERBOSE([+ Command Line Options:]) _AC_PTH_VERBOSE([ o --with-pth=$with_pth]) _AC_PTH_VERBOSE([ o --with-pth-test=$with_pth_test]) dnl dnl # configuration if test ".$with_pth" != .no; then _pth_subdir=no _pth_subdir_opts='' case "$with_pth" in subdir:* ) _pth_subdir=yes changequote(, )dnl _pth_subdir_opts=`echo $with_pth | sed -e 's/^subdir:[^ ]*[ ]*//'` with_pth=`echo $with_pth | sed -e 's/^subdir:\([^ ]*\).*$/\1/'` changequote([, ])dnl ;; esac _pth_version="" _pth_location="" _pth_type="" _pth_cppflags="" _pth_cflags="" _pth_ldflags="" _pth_libs="" if test ".$with_pth" = .yes; then # via config script in $PATH changequote(, )dnl _pth_version=`(pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` changequote([, ])dnl if test ".$_pth_version" != .; then _pth_location=`pth-config --prefix` _pth_type='installed' _pth_cppflags=`pth-config --cflags` _pth_cflags=`pth-config --cflags` _pth_ldflags=`pth-config --ldflags` _pth_libs=`pth-config --libs` fi elif test -d "$with_pth"; then with_pth=`echo $with_pth | sed -e 's;/*$;;'` _pth_found=no # via locally included source tree if test ".$_pth_subdir" = .yes; then _pth_location="$with_pth" _pth_type='local' _pth_cppflags="-I$with_pth" _pth_cflags="-I$with_pth" if test -f "$with_pth/ltconfig"; then _pth_ldflags="-L$with_pth/.libs" else _pth_ldflags="-L$with_pth" fi _pth_libs="-lpth" changequote(, )dnl _pth_version=`grep '^const char PTH_Hello' $with_pth/pth_vers.c |\ sed -e 's;^.*Version[ ]*\([0-9]*\.[0-9]*[.ab][0-9]*\)[ ].*$;\1;'` changequote([, ])dnl _pth_found=yes ac_configure_args="$ac_configure_args --enable-subdir $_pth_subdir_opts" with_pth_test=no fi # via config script under a specified directory # (a standard installation, but not a source tree) if test ".$_pth_found" = .no; then for _dir in $with_pth/bin $with_pth; do if test -f "$_dir/pth-config"; then test -f "$_dir/pth-config.in" && continue # pth-config in source tree! changequote(, )dnl _pth_version=`($_dir/pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` changequote([, ])dnl if test ".$_pth_version" != .; then _pth_location=`$_dir/pth-config --prefix` _pth_type="installed" _pth_cppflags=`$_dir/pth-config --cflags` _pth_cflags=`$_dir/pth-config --cflags` _pth_ldflags=`$_dir/pth-config --ldflags` _pth_libs=`$_dir/pth-config --libs` _pth_found=yes break fi fi done fi # in any subarea under a specified directory # (either a special installation or a Pth source tree) if test ".$_pth_found" = .no; then changequote(, )dnl _pth_found=0 for _file in x `find $with_pth -name "pth.h" -type f -print`; do test .$_file = .x && continue _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` _pth_version=`($_dir/pth-config --version) 2>/dev/null |\ sed -e 's/^.*\([0-9]\.[0-9]*[ab.][0-9]*\).*$/\1/'` if test ".$_pth_version" = .; then _pth_version=`grep '^#define PTH_VERSION_STR' $_file |\ sed -e 's;^#define[ ]*PTH_VERSION_STR[ ]*"\([0-9]*\.[0-9]*[.ab][0-9]*\)[ ].*$;\1;'` fi _pth_cppflags="-I$_dir" _pth_cflags="-I$_dir" _pth_found=`expr $_pth_found + 1` done for _file in x `find $with_pth -name "libpth.[aso]" -type f -print`; do test .$_file = .x && continue _dir=`echo $_file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'` _pth_ldflags="-L$_dir" _pth_libs="-lpth" _pth_found=`expr $_pth_found + 1` done changequote([, ])dnl if test ".$_pth_found" = .2; then _pth_location="$with_pth" _pth_type="uninstalled" else _pth_version='' fi fi fi _AC_PTH_VERBOSE([+ Determined Location:]) _AC_PTH_VERBOSE([ o path: $_pth_location]) _AC_PTH_VERBOSE([ o type: $_pth_type]) if test ".$_pth_version" = .; then if test ".$with_pth" != .yes; then _AC_PTH_ERROR([dnl Unable to locate GNU Pth under $with_pth. Please specify the correct path to either a GNU Pth installation tree (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a path to a pth-X.Y.Z/ directory; but make sure the package is already built, i.e., the "configure; make" step was already performed there).]) else _AC_PTH_ERROR([dnl Unable to locate GNU Pth in any system-wide location (see \$PATH). Please specify the correct path to either a GNU Pth installation tree (use --with-pth=DIR if you used --prefix=DIR for installing GNU Pth in the past) or to a GNU Pth source tree (use --with-pth=DIR if DIR is a path to a pth-X.Y.Z/ directory; but make sure the package is already built, i.e., the "configure; make" step was already performed there).]) fi fi dnl # dnl # Check whether the found version is sufficiently new dnl # _req_version="ifelse([$1],,1.0.0,$1)" for _var in _pth_version _req_version; do eval "_val=\"\$${_var}\"" _major=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\1/'` _minor=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\2/'` _rtype=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\3/'` _micro=`echo $_val | sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\([[ab.]]\)\([[0-9]]*\)/\4/'` case $_rtype in "a" ) _rtype=0 ;; "b" ) _rtype=1 ;; "." ) _rtype=2 ;; esac _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \ "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"` eval "${_var}_hex=\"\$_hex\"" done _AC_PTH_VERBOSE([+ Determined Versions:]) _AC_PTH_VERBOSE([ o existing: $_pth_version -> 0x$_pth_version_hex]) _AC_PTH_VERBOSE([ o required: $_req_version -> 0x$_req_version_hex]) _ok=0 if test ".$_pth_version_hex" != .; then if test ".$_req_version_hex" != .; then if test $_pth_version_hex -ge $_req_version_hex; then _ok=1 fi fi fi if test ".$_ok" = .0; then _AC_PTH_ERROR([dnl Found Pth version $_pth_version, but required at least version $_req_version. Upgrade Pth under $_pth_location to $_req_version or higher first, please.]) fi dnl # dnl # Perform Pth Sanity Compile Check dnl # if test ".$with_pth_test" = .yes; then _ac_save_CPPFLAGS="$CPPFLAGS" _ac_save_CFLAGS="$CFLAGS" _ac_save_LDFLAGS="$LDFLAGS" _ac_save_LIBS="$LIBS" CPPFLAGS="$CPPFLAGS $_pth_cppflags" CFLAGS="$CFLAGS $_pth_cflags" LDFLAGS="$LDFLAGS $_pth_ldflags" LIBS="$LIBS $_pth_libs" _AC_PTH_VERBOSE([+ Test Build Environment:]) _AC_PTH_VERBOSE([ o CPPFLAGS=\"$CPPFLAGS\"]) _AC_PTH_VERBOSE([ o CFLAGS=\"$CFLAGS\"]) _AC_PTH_VERBOSE([ o LDFLAGS=\"$LDFLAGS\"]) _AC_PTH_VERBOSE([ o LIBS=\"$LIBS\"]) cross_compile=no define(_code1, [dnl #include #include ]) define(_code2, [dnl int main(int argc, char *argv[]) { FILE *fp; if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "hmm"); fclose(fp); pth_init(); pth_kill(); if (!(fp = fopen("conftestval", "w"))) exit(1); fprintf(fp, "yes"); fclose(fp); exit(0); } ]) _AC_PTH_VERBOSE([+ Performing Sanity Checks:]) _AC_PTH_VERBOSE([ o pre-processor test]) AC_TRY_CPP(_code1, _ok=yes, _ok=no) if test ".$_ok" != .yes; then _AC_PTH_ERROR([dnl Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity pre-processor check. This means the GNU Pth header pth.h was not found. We used the following build environment: >> CPP="$CPP" >> CPPFLAGS="$CPPFLAGS" See config.log for possibly more details.]) fi _AC_PTH_VERBOSE([ o link check]) AC_TRY_LINK(_code1, _code2, _ok=yes, _ok=no) if test ".$_ok" != .yes; then _AC_PTH_ERROR([dnl Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity linker check. This means the GNU Pth library libpth.a was not found. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details.]) fi _AC_PTH_VERBOSE([ o run-time check]) AC_TRY_RUN(_code1 _code2, _ok=`cat conftestval`, _ok=no, _ok=no) if test ".$_ok" != .yes; then if test ".$_ok" = .no; then _AC_PTH_ERROR([dnl Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity execution check. This usually means that the GNU Pth shared library libpth.so is present but \$LD_LIBRARY_PATH is incomplete to execute a Pth test. In this case either disable this test via --without-pth-test, or extend \$LD_LIBRARY_PATH, or build GNU Pth as a static library only via its --disable-shared Autoconf option. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details.]) else _AC_PTH_ERROR([dnl Found GNU Pth $_pth_version under $_pth_location, but was unable to perform a sanity run-time check. This usually means that the GNU Pth library failed to work and possibly caused a core dump in the test program. In this case it is strongly recommended that you re-install GNU Pth and this time make sure that it really passes its "make test" procedure. We used the following build environment: >> CC="$CC" >> CFLAGS="$CFLAGS" >> LDFLAGS="$LDFLAGS" >> LIBS="$LIBS" See config.log for possibly more details.]) fi fi _extendvars="ifelse([$4],,yes,$4)" if test ".$_extendvars" != .yes; then CPPFLAGS="$_ac_save_CPPFLAGS" CFLAGS="$_ac_save_CFLAGS" LDFLAGS="$_ac_save_LDFLAGS" LIBS="$_ac_save_LIBS" fi else _extendvars="ifelse([$4],,yes,$4)" if test ".$_extendvars" = .yes; then if test ".$_pth_subdir" = .yes; then CPPFLAGS="$CPPFLAGS $_pth_cppflags" CFLAGS="$CFLAGS $_pth_cflags" LDFLAGS="$LDFLAGS $_pth_ldflags" LIBS="$LIBS $_pth_libs" fi fi fi PTH_CPPFLAGS="$_pth_cppflags" PTH_CFLAGS="$_pth_cflags" PTH_LDFLAGS="$_pth_ldflags" PTH_LIBS="$_pth_libs" AC_SUBST(PTH_CPPFLAGS) AC_SUBST(PTH_CFLAGS) AC_SUBST(PTH_LDFLAGS) AC_SUBST(PTH_LIBS) _AC_PTH_VERBOSE([+ Final Results:]) _AC_PTH_VERBOSE([ o PTH_CPPFLAGS=\"$PTH_CPPFLAGS\"]) _AC_PTH_VERBOSE([ o PTH_CFLAGS=\"$PTH_CFLAGS\"]) _AC_PTH_VERBOSE([ o PTH_LDFLAGS=\"$PTH_LDFLAGS\"]) _AC_PTH_VERBOSE([ o PTH_LIBS=\"$PTH_LIBS\"]) fi if test ".$with_pth" != .no; then AC_MSG_RESULT([version $_pth_version, $_pth_type under $_pth_location]) ifelse([$5], , :, [$5]) else AC_MSG_RESULT([no]) ifelse([$6], , :, [$6]) fi ]) # AC_CHECK_LONG_LONG #------------------- AC_DEFUN([AC_CHECK_LONG_LONG], [ AC_MSG_CHECKING(for long long) AC_CACHE_VAL(ac_cv_type_long_long, [ AC_TRY_COMPILE([ #include ], [ long long x; ], ac_cv_type_long_long=yes, ac_cv_type_long_long=no) ]) AC_MSG_RESULT($ac_cv_type_long_long) if eval "test \"`echo $ac_cv_type_long_long`\" = yes"; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have long long]) fi ])# AC_CHECK_LONG_LONG dnl From Bruno Haible. AC_DEFUN([AM_ICONV], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_ARG_WITH([libiconv-prefix], [ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [ for dir in `echo "$withval" | tr : ' '`; do if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi done ]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS -liconv" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi LIBICONV= if test "$am_cv_lib_iconv" = yes; then LIBICONV="-liconv" fi AC_SUBST(LIBICONV) ]) # AC_LIBLTDL_CONVENIENCE_G([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE_G], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience CFLAGS=-DWITHOUT_RTLD_GROUP" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE AC_DEFUN([AC_CHECK_SEMUNDOO], [ AC_LANG_C AC_MSG_CHECKING([for semundo union]) AC_CACHE_VAL(ac_cv_semundo_union, [ AC_TRY_LINK([ #include #include #include ], [ union semun semctl_arg; ], ac_cv_semundo_union=no, ac_cv_semundo_union=yes) ]) AC_MSG_RESULT($ac_cv_semundo_union) if eval "test \"`echo $ac_cv_semundo_union`\" = yes"; then AC_DEFINE(NEED_SEMUNDO_UNION, 1, [Define if you need semundo union]) fi ]) m4_include([qt.m4]) unixodbc-gui-qt-2.3.0/odbc.pri0000644000175000001440000000216611506076311013100 00000000000000# # \brief These bring in the core and dev stuff. # # # \sa *.pri *.pro # # # unixODBC-Test sources must be available so we can access autotest.h. unixODBC-Test # does not have to be built yet. This is needed for, at least, ODBCTestQ4. # INCLUDEPATH += $(UNIXODBC_TEST_SRC)/AutoTests/include # ######################################################### # WIN32 # ######################################################### win32 { INCLUDEPATH += ../../include # # We use MS's Driver Manager and Installer library. # LIBS += odbc32.lib odbccp32.lib } # ######################################################### # MAC/UNIX common # ######################################################### unix { } # ######################################################### # MAC/UNIX specific # ######################################################### mac { LIBS += -liodbc -liodbcinst } else:unix { # # unixODBC-Core and unixODBC-Dev must be installed. Here we bring them into our build. # INCLUDEPATH += $(UNIXODBC_DIR)/include LIBS += -L$(UNIXODBC_LIBDIR) LIBS += -lodbc -lodbcinst } unixodbc-gui-qt-2.3.0/AUTHORS0000644000175000001440000000162211506076311012521 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ AUTHORS --------------------------------------------------------------- This source code was forked (actually moved) from unixODBC. As such - some or all of the authors of unixODBC may have had a hand in this code. The principle author was Peter Harvey except for ODBCTestQ4 where it was Nick Gorham. ODBCTestQ4 was heavily modified, by Peter Harvey, upon creation of this project. See the main unixODBC project for a list of authors. The following is a list of folks who have since contributed to the unixODBC-GUI-Qt project. - Peter Harvey Please email the Project Leader if you think your name should be among those listed above. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/Makefile.svn0000644000175000001440000000071211506076311013715 00000000000000svn: @touch config.rpath @echo "*** Synchronizing libtool..." @libtoolize --force @echo "*** Retrieving configure tests needed by configure.in..." @aclocal @echo "*** Building Makefile templates (step one)..." @automake --add-missing @automake @echo "*** Building Makefile templates (step two)..." @autoconf @echo "*** Finished" @echo " Don't forget to run ./configure" @echo " If you haven't done so in a while, run ./configure --help" unixodbc-gui-qt-2.3.0/config.pri0000644000175000001440000000057211506076311013435 00000000000000# # \brief These are some CONFIG options for qmake. # # Edit these settings, as needed, before using qmake to # generate the Makefiles. All sources are likely to use # the options reflected here. # # Common CONFIG options are; # # thread # warn_on # debug | release # # # \sa *.pri *.pro # CONFIG += warn_on release CONFIG += thread unixodbc-gui-qt-2.3.0/GPL.txt0000644000175000001440000010451311506076311012637 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . unixodbc-gui-qt-2.3.0/gtrtstQ4/0000755000175000001440000000000011506076451013271 500000000000000unixodbc-gui-qt-2.3.0/gtrtstQ4/README0000644000175000001440000000143011506076306014066 00000000000000+-------------------------------------------------------------+ | gtrtstQ4 | +-------------------------------------------------------------+ README --------------------------------------------------------------- Description: This tiny library implements szLogPrintf and szMessageBox which are functions used by auto tests. In this case we implement them using Qt. Auto tests will use this when they are going to be run by ODBCTestQ4. unixODBC: This call is declared in unixODBC::autotest.h MS: This is a Qt version of what MS has. So on MS platforms you can choose to build/use auto tests with the MS stuff or the, cross-platform, Qt stuff. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/gtrtstQ4/szMessageBox.cpp0000644000175000001440000000547211506076306016336 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 1 * \date 2009 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include /*! * \brief szMessageBox. * * This is a Qt specific implementation of szMessageBox. This call * is declared in unixODBC::autotest.h. * * AutoTest libraries link to this when they want to be run from * ODBCTestQ4. */ int EXTFUNCDECL FAR szMessageBox( HWND hwnd, UINT nStyle, LPTSTR szTitle, LPTSTR szFormat, ... ) { // ok - you can call here with a null hwnd - but that is reason to question your code... if ( !hwnd ) return 0; // format the message... va_list ap; char szFormatted[ 1024 ]; va_start(ap, szFormat); vsprintf (szFormatted, szFormat, ap); va_end(ap); // activate buttons... int button0, button1, button2 = 0; button0 = QMessageBox::NoButton; button1 = QMessageBox::NoButton; button2 = QMessageBox::NoButton; switch ( nStyle & (MB_OK | MB_ABORTRETRYIGNORE | MB_OKCANCEL | MB_RETRYCANCEL | MB_YESNO | MB_YESNOCANCEL) ) { case MB_ABORTRETRYIGNORE: button0 = QMessageBox::Abort; button1 = QMessageBox::Retry; button2 = QMessageBox::Ignore; break; case MB_OKCANCEL: button0 = QMessageBox::Ok; button1 = QMessageBox::Cancel; break; case MB_RETRYCANCEL: button0 = QMessageBox::Retry; button1 = QMessageBox::Cancel; break; case MB_YESNO: button0 = QMessageBox::Yes; button1 = QMessageBox::No; break; case MB_YESNOCANCEL: button0 = QMessageBox::Yes; button1 = QMessageBox::No; button2 = QMessageBox::Cancel; break; default: button0 = QMessageBox::Ok; break; } // set default button... switch ( nStyle & (MB_DEFBUTTON1 | MB_DEFBUTTON2 | MB_DEFBUTTON3 ) ) { case MB_DEFBUTTON1: default: button0 |= QMessageBox::Default; break; case MB_DEFBUTTON2: button1 |= QMessageBox::Default; break; case MB_DEFBUTTON3: button2 |= QMessageBox::Default; break; } // icon... QMessageBox::Icon icon = QMessageBox::NoIcon; switch ( nStyle & (MB_ICONINFORMATION | MB_ICONQUESTION | MB_ICONSTOP ) ) { case MB_ICONINFORMATION : icon = QMessageBox::Information; break; case MB_ICONQUESTION: icon = QMessageBox::Warning; break; case MB_ICONSTOP: icon = QMessageBox::Critical; break; default: icon = QMessageBox::NoIcon; break; } QMessageBox MessageBox( szTitle, szFormatted, icon, button0, button1, button2 ); return MessageBox.exec(); } unixodbc-gui-qt-2.3.0/gtrtstQ4/Makefile.am0000644000175000001440000000100711506076306015242 00000000000000lib_LTLIBRARIES = libgtrtstQ4.la libgtrtstQ4_la_LDFLAGS = \ -no-undefined \ -version-info 2:1:1 \ -export-dynamic \ -export-symbols @srcdir@/gtrtstQ4.exp \ -module INCLUDES = -I@top_srcdir@/ini \ $(INCLUDES_COMMON) \ $(QT_CXXFLAGS) \ -DTHEPREFIX=\"@prefix@\" \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ -DDEFLIB_PATH=\"@libdir@\" \ -DSHLIBEXT=\"@SHLIBEXT@\" \ $(LTDLINCL) libgtrtstQ4_la_SOURCES = \ szLogPrintf.cpp \ szMessageBox.cpp EXTRA_DIST = \ README unixodbc-gui-qt-2.3.0/gtrtstQ4/Makefile.in0000644000175000001440000004274511506076376015300 00000000000000# Makefile.in generated by automake 1.11.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, # Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = gtrtstQ4 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 $(top_srcdir)/qt.m4 \ $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libgtrtstQ4_la_LIBADD = am_libgtrtstQ4_la_OBJECTS = szLogPrintf.lo szMessageBox.lo libgtrtstQ4_la_OBJECTS = $(am_libgtrtstQ4_la_OBJECTS) libgtrtstQ4_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ $(CXXFLAGS) $(libgtrtstQ4_la_LDFLAGS) $(LDFLAGS) -o $@ DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libgtrtstQ4_la_SOURCES) DIST_SOURCES = $(libgtrtstQ4_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ ICONV_CHAR_ENCODING = @ICONV_CHAR_ENCODING@ ICONV_UNICODE_ENCODING = @ICONV_UNICODE_ENCODING@ INCLTDL = @INCLTDL@ INCLUDES_COMMON = @INCLUDES_COMMON@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LFLAGS = @LFLAGS@ LIBADD_CRYPT = @LIBADD_CRYPT@ LIBADD_DL = @LIBADD_DL@ LIBADD_POW = @LIBADD_POW@ LIBICONV = @LIBICONV@ LIBLTDL = @LIBLTDL@ LIBNSL = @LIBNSL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBSOCKET = @LIBSOCKET@ LIBTOOL = @LIBTOOL@ LIPO = @LIPO@ LN_S = @LN_S@ LTDLDEPS = @LTDLDEPS@ LTDLINCL = @LTDLINCL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MOC = @MOC@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OTOOL = @OTOOL@ OTOOL64 = @OTOOL64@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PTH_CFLAGS = @PTH_CFLAGS@ PTH_CPPFLAGS = @PTH_CPPFLAGS@ PTH_LDFLAGS = @PTH_LDFLAGS@ PTH_LIBS = @PTH_LIBS@ QT_CXXFLAGS = @QT_CXXFLAGS@ QT_LDFLAGS = @QT_LDFLAGS@ QT_LIBS = @QT_LIBS@ RANLIB = @RANLIB@ READLINE = @READLINE@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SHLIBEXT = @SHLIBEXT@ STRIP = @STRIP@ UIC = @UIC@ VERSION = @VERSION@ XMKMF = @XMKMF@ X_CFLAGS = @X_CFLAGS@ X_EXTRA_LIBS = @X_EXTRA_LIBS@ X_LIBS = @X_LIBS@ X_PRE_LIBS = @X_PRE_LIBS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ subdirs = @subdirs@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ lib_LTLIBRARIES = libgtrtstQ4.la libgtrtstQ4_la_LDFLAGS = \ -no-undefined \ -version-info 2:1:1 \ -export-dynamic \ -export-symbols @srcdir@/gtrtstQ4.exp \ -module INCLUDES = -I@top_srcdir@/ini \ $(INCLUDES_COMMON) \ $(QT_CXXFLAGS) \ -DTHEPREFIX=\"@prefix@\" \ -DSYSTEM_FILE_PATH=\"@sysconfdir@\" \ -DDEFLIB_PATH=\"@libdir@\" \ -DSHLIBEXT=\"@SHLIBEXT@\" \ $(LTDLINCL) libgtrtstQ4_la_SOURCES = \ szLogPrintf.cpp \ szMessageBox.cpp EXTRA_DIST = \ README all: all-am .SUFFIXES: .SUFFIXES: .cpp .lo .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu gtrtstQ4/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu gtrtstQ4/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libgtrtstQ4.la: $(libgtrtstQ4_la_OBJECTS) $(libgtrtstQ4_la_DEPENDENCIES) $(libgtrtstQ4_la_LINK) -rpath $(libdir) $(libgtrtstQ4_la_OBJECTS) $(libgtrtstQ4_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/szLogPrintf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/szMessageBox.Plo@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.lo: @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-libLTLIBRARIES install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-libLTLIBRARIES .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ install-libLTLIBRARIES install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-libLTLIBRARIES # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: unixodbc-gui-qt-2.3.0/gtrtstQ4/szLogPrintf.cpp0000644000175000001440000000436711506076306016207 00000000000000/*! * \file * * \author Peter Harvey * \author \sa AUTHORS file * \version 1 * \date 2009 * \license Copyright unixODBC-GUI-Qt Project 2009-2010, LGPL */ #include #include /*! * \brief szLogPrintf. * * This is a Qt specific implementation of szLogPrintf. This call * is declared in unixODBC::autotest.h. * * AutoTest libraries link to this when they want to be run from * ODBCTestQ4. */ BOOL EXTFUNCDECL FAR szLogPrintf_( lpSERVERINFO pServerInfo ) { // ensure text is terminated... pServerInfo -> szBuff[ pServerInfo -> cBuff ] = '\0'; // to GUI... if ( pServerInfo -> fScreen && pServerInfo->hwnd ) { // the app (ie ODBCTestQ4) should have provided a QTextEdit for window handle... QTextEdit *pTextEdit = (QTextEdit*)pServerInfo->hwnd; pTextEdit->append( pServerInfo -> szBuff ); } // to file... if ( pServerInfo -> fLog ) { FILE *fp = fopen( pServerInfo -> szLogFile, "a+" ); if ( fp ) { fputs( pServerInfo -> szBuff, fp ); fputs( "\n", fp ); fclose( fp ); } } // reset... pServerInfo -> cBuff = 0; return true; } BOOL EXTFUNCDECL FAR szLogPrintf( lpSERVERINFO pServerInfo, BOOL bForce, LPTSTR szFormat, ... ) { va_list VariableArguments; char szFormatted[4096]; BOOL bReturn = FALSE; /* sanity checks... */ if ( !pServerInfo ) return FALSE; /* format the message... */ va_start( VariableArguments, szFormat ); vsprintf( szFormatted, szFormat, VariableArguments ); va_end( VariableArguments ); /* pass call via SERVERINFO::szBuff - 1 line at-a-time... */ char *pc = szFormatted; while ( *pc ) { if ( *pc == '\n' || pServerInfo->cBuff >= ( MAXFLUSH - 1 ) ) { bReturn = szLogPrintf_( pServerInfo ); } else if ( isprint( *pc )) { pServerInfo->szBuff[ pServerInfo->cBuff ] = *pc; pServerInfo->cBuff++; } pc++; } if ( bForce && pServerInfo->cBuff > 0 ) bReturn = szLogPrintf_( pServerInfo ); /* fini... */ return bReturn; } unixodbc-gui-qt-2.3.0/README.svn0000644000175000001440000000271411506076311013141 00000000000000+-------------------------------------------------------------+ | unixODBC-GUI-Qt | +-------------------------------------------------------------+ svn --------------------------------------------------------------- Few people will want to use this method to get unixODBC-GUI-Qt. This method is primarily for unixODBC-GUI-Qt developers and those wanting the very latest changes. Repository ---------- The source code can be downloaded using the svn tool from; http://unixodbc-gui-qt.sourceforge.net WARNING: This is the 'bleeding edge' code and as such the trunk may not build and will have some bugs in it. Build ----- See README.build Contributing ------------ Source code from svn is used by two different types of Users. 1. Those that want the 'bleeding edge' code; either to get the newest bug fixs/features or to test. This group of users will typically have read-only access to the svn code. Anyone can download the source code from svn and use it. No special permission is required. See LICENSE file. 2. Those who are actively improving things by making code and document changes. This group of users will have read/write access to the svn source code. If you want to contribute you can request 'write' permissions using the Source Forge web interface. This usually means sending an email request to one of the project admins. --------------------------------------------------------------- Peter Harvey unixodbc-gui-qt-2.3.0/configure.in0000644000175000001440000002661111506076311013767 00000000000000dnl dnl Process this file with autoconf to produce a configure script. dnl dnl NOTE: Ths needs a bit of cleanup as some things are not needed dnl simply inherited from unixODBC. dnl AC_INIT(unixODBC-GUI-Qt, 2.3.0) AM_INIT_AUTOMAKE dnl Checks for programs. AC_PROG_AWK AC_PROG_YACC AC_PROG_CC AC_PROG_CPP AM_PROG_LEX AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_CXX dnl Check if we want to worry about threads AC_ARG_ENABLE( threads, [ --enable-threads build with thread support [default=yes]], [ case "${enableval}" in yes) thread=true ;; no) thread=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-thread) ;; esac],[thread=true]) AC_ARG_ENABLE( gnuthreads, [ --enable-gnuthreads build with gnu threads support [default=no]], [ case "${enableval}" in yes) gnuthread=true ;; no) gnuthread=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-gnuthread) ;; esac],[gnuthread=false]) AC_ARG_ENABLE( readline, [ --enable-readline build with readline support [default=yes]], [ case "${enableval}" in yes) readline=true ;; no) readline=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-readline) ;; esac],[readline=true]) AC_ARG_ENABLE( inicaching, [ --enable-inicaching build with ini file caching support [default=yes]], [ case "${enableval}" in yes) inicaching=true ;; no) inicaching=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-inicaching) ;; esac],[inicaching=true]) dnl Check for sys/sem.h AC_CHECK_HEADERS(sys/sem.h, semh=true, semh=false) AC_ARG_ENABLE( stats, [ --enable-stats build with statistic gathering support [default=yes]], [ case "${enableval}" in yes) if test "x$semh" = "xfalse"; then AC_MSG_ERROR(stats enabled but required header was not found) fi stats=true ;; no) stats=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-stats) ;; esac],[stats=$semh]) AC_ARG_ENABLE( rtldgroup, [ --enable-rtldgroup build with RTLD_GROUP passed to dlopen (when supported) [default=yes]], [ case "${enableval}" in yes) rtldgroup=true ;; no) rtldgroup=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-rltdgroup) ;; esac],[rtldgroup=true]) AC_ARG_ENABLE( ltdllib, [ --enable-ltdllib Use system libltdl.so (if found) [default=no]], [ case "${enableval}" in yes) ltdllib=true ;; no) ltdllib=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-ltdllib) ;; esac],[ltdllib=false]) dnl Enable building of the convenience library dnl and set LIBLTDL accordingly INCLTDL="" LIBLTDL="" AC_MSG_CHECKING( Have we enabled using RTLD_GROUP ) if test "x$rtldgroup" = "xtrue"; then AC_MSG_RESULT( yes ) AC_LIBLTDL_CONVENIENCE else AC_MSG_RESULT( no ); AC_LIBLTDL_CONVENIENCE_G fi dnl Check for dlopen support AC_LIBTOOL_DLOPEN dnl for cygwin support AC_LIBTOOL_WIN32_DLL dnl Configure libtool AM_PROG_LIBTOOL dnl Configure libltdl AC_CONFIG_SUBDIRS(libltdl) use_builtin_libtool="no" dnl override the libtool lines if we use the system libs if test "x$ltdllib" = "xtrue"; then AC_CHECK_LIB( ltdl, lt_dlopen, [ LIBLTDL="-lltdl" ], [use_builtin_libtool="yes"] ) if test "x$use_builtin_libtool" = "xno"; then AC_CHECK_HEADERS(ltdl.h, [], [use_builtin_libtool="yes"] ) fi else use_builtin_libtool="yes" fi AC_MSG_CHECKING( if we are using the included libltdl ) AC_MSG_RESULT( $use_builtin_libtool ) dnl Substitute INCLTDL and LIBLTDL in the Makefiles AC_SUBST(LTDLINCL) AC_SUBST(LIBLTDL) dnl Find shared lib extension AC_MSG_CHECKING(for shared lib extension) SHLIBEXT="$shrext_cmds" AC_MSG_RESULT($shrext_cmds) AC_SUBST(SHLIBEXT) if test "x$iconv" = "xtrue"; then AM_ICONV iconv_char_enc="auto-search" AC_ARG_WITH(iconv_char_enc, [ --with-iconv-char-enc=enc Encoding to use as ASCII [default=auto-search] ], iconv_char_enc="$withval" ) ICONV_CHAR_ENCODING="$iconv_char_enc" iconv_ucode_enc="auto-search" AC_ARG_WITH(iconv_ucode_enc, [ --with-iconv-ucode-enc=enc Encoding to use as UNICODE [default=auto-search] ], iconv_ucode_enc="$withval" ) ICONV_CHAR_ENCODING="" ICONV_UNICODE_ENCODING="" if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING( for encoding to use for CHAR representations ); ICONV_CHAR_ENCODING="$iconv_char_enc" AC_MSG_RESULT( $iconv_char_enc ); AC_MSG_CHECKING( for encoding to use for UNICODE representations ); ICONV_UNICODE_ENCODING="$iconv_ucode_enc" AC_MSG_RESULT( $iconv_ucode_enc ); fi AC_SUBST(ICONV_CHAR_ENCODING) AC_SUBST(ICONV_UNICODE_ENCODING) fi dnl Checks for libraries. AC_CHECK_LIB(crypt, crypt, [ LIBADD_CRYPT="-lcrypt"; AC_DEFINE(HAVE_LIBCRYPT)],) AC_SUBST(LIBADD_CRYPT) AC_CHECK_LIB(m, pow, [ LIBADD_POW="-lm" ], ) AC_SUBST(LIBADD_POW) have_readline="no" if test "x$readline" = "xtrue"; then AC_CHECK_LIB_NOC(readline, readline, [ READLINE=-lreadline have_readline="yes" ], [ dnl try with -lcurses AC_CHECK_LIB_NOC(readline, readline, [ READLINE="-lreadline -lcurses" have_readline="yes" ], [ ], -lcurses ) ]) if test "x$have_readline" = "xyes"; then AC_CHECK_HEADERS(readline/history.h, [AC_DEFINE(HAVE_READLINE, 1)]) fi fi AC_SUBST(READLINE) AC_MSG_CHECKING( Are we using ini caching ) if test "x$inicaching" = "xtrue"; then CFLAGS="$CFLAGS -DENABLE_INI_CACHING" AC_MSG_RESULT( yes ); else AC_MSG_RESULT( no ); fi dnl Are we using flex if test "x$drivers" = "xtrue"; then AC_MSG_CHECKING( Are we using flex ) if test "x$LEX" = "xflex"; then LFLAGS="$LFLAGS -i" AC_MSG_RESULT( yes ); AC_CHECK_LIB(c, scandir, [AC_DEFINE(HAVE_SCANDIR, 1)] ) else AC_MSG_RESULT( no - text driver disabled ); fi AM_CONDITIONAL(HAVE_FLEX, test "x$LEX" = "xflex" ) AC_SUBST(LFLAGS) else AM_CONDITIONAL(HAVE_FLEX, test "xabc" = "xdef" ) fi case $host_os in *qnx* ) qnx="true" AC_DEFINE(QNX_LIBLTDL) ;; esac dnl check how time() can be used AC_HEADER_TIME AC_CHECK_HEADERS(sys/time.h) AC_CHECK_SIZEOF(long, 4) AC_MSG_CHECKING([if platform is 64 bit]) if test "$ac_cv_sizeof_long" = "8"; then AC_MSG_RESULT( Yes ); AC_DEFINE(PLATFORM64) else AC_MSG_RESULT( No ); fi AC_CHECK_LONG_LONG AC_CHECK_SIZEOF([long int]) AC_CHECK_FUNCS( strcasecmp strncasecmp vsnprintf strtol atoll strtoll endpwent gettimeofday ftime time stricmp strnicmp ) LIBADD_DL= AC_SUBST(LIBADD_DL) THREADLIB="" if test "x$thread" = "xtrue"; then if test "x$gnuthread" = "xtrue"; then AC_CHECK_PTH( 1.3.0 ) CPPFLAGS="$CPPFLAGS $PTH_CPPFLAGS" CFLAGS="$CFLAGS $PTH_CFLAGS" LDFLAGS="$LDFLAGS $PTH_LDFLAGS" THREADLIB="$PTH_LIBS" AC_DEFINE(HAVE_LIBPTH,1) AC_DEFINE(_REENTRANT) else gotthread="no"; AC_MSG_CHECKING( if os is AIX ) case $host_os in "aix"*) raw_threads="no"; AC_MSG_RESULT( yes - disable check for libthread ); ;; *) raw_threads="yes"; AC_MSG_RESULT( no - enable check for libthread ); ;; esac if test "x$raw_threads" = "xyes"; then AC_CHECK_LIB_NOC(thread, mutex_lock, [ AC_DEFINE(HAVE_LIBTHREAD,1) dnl Check if the compiler will build with -mt as a option, this is a solaris thing AC_CHECK_COMP_OPT(mt) AC_DEFINE(_REENTRANT) gotthread="yes"; THREADLIB="-lthread" ]) fi if test "x$gotthread" = "xno"; then AC_CHECK_LIBPT_NOC(pthread, pthread_mutex_lock, [ AC_DEFINE(HAVE_LIBPTHREAD,1) AC_DEFINE(_REENTRANT) gotthread="yes"; THREADLIB="-lpthread" if test "x$ac_cv_prog_gcc"="xyes"; then dnl Check if the compiler will build with -pthread as a option AC_CHECK_COMP_OPT(pthread) else dnl Check if the compiler will build with -mt as a option AC_CHECK_COMP_OPT(mt) fi ]) fi if test "x$gotthread" = "xno"; then AC_CHECK_LIBPT_NOC(c, pthread_mutex_lock, [ AC_DEFINE(HAVE_LIBPTHREAD,1) AC_DEFINE(_REENTRANT) gotthread="yes"; THREADLIB="" if test "x$ac_cv_prog_gcc"="xyes"; then dnl Check if the compiler will build with -pthread as a option AC_CHECK_COMP_OPT(pthread) else dnl Check if the compiler will build with -mt as a option AC_CHECK_COMP_OPT(mt) fi ]) fi if test "x$gotthread" = "xno"; then if test "x$ac_cv_prog_gcc"="xyes"; then dnl This is for freebsd that needs -lpthread before it finds the lib AC_CHECK_COMP_OPT(pthread) AC_CHECK_LIBPT_NOC(c, pthread_mutex_lock, [ AC_DEFINE(HAVE_LIBPTHREAD,1) AC_DEFINE(_REENTRANT) THREADLIB="-pthread -lc_r" gotthread="yes"; ]) fi fi dnl Check for AIX if test "x$gotthread" = "xno"; then SAVECFLAGS="$CFLAGS" CFLAGS="$CFLAGS -D_THREAD_SAFE -D_ALL_SOURCE -D_LONG_LONG" AC_CHECK_LIBPT_NOC(pthread, pthread_mutex_lock, [ AC_DEFINE(HAVE_LIBPTHREAD,1) gotthread="yes"; THREADLIB="-lpthread" ]) CFLAGS="$SAVECFLAGS" AC_DEFINE(_THREAD_SAFE) AC_DEFINE(_ALL_SOURCE) AC_DEFINE(_LONG_LONG) fi if test "x$gotthread" = "xyes"; then dnl do not add a -lc because of this save_LIBS=$LIBS AC_CHECK_LIB(c, localtime_r, [AC_DEFINE(HAVE_LOCALTIME_R, 1)] ) LIBS=$save_LIBS fi fi fi case $host_os in "darwin"*) stats="false" macosx="yes" AC_DEFINE(OSXHEADER) ;; sysv5Open*) if test "x$THREADLIB" = "x"; then LIBS="$LIBS $THREADLIB" else LIBS="$LIBS -Kthread" fi ;; *) LIBS="$LIBS $THREADLIB" ;; esac if test "x$stats" = "xtrue"; then AC_CHECK_FUNCS( ftok semget shmget semop snprintf,[],[stats=false]) fi if test "x$stats" = "xtrue"; then AC_CHECK_SEMUNDOO AC_DEFINE(COLLECT_STATS) fi dnl I need to check for libsocket before testing X AC_CHECK_LIB(socket, socket, [LIBSOCKET="-lsocket"]) dnl for Solaris AC_SUBST(LIBSOCKET) AC_CHECK_LIB(nsl, gethostbyname, [LIBNSL="-lnsl"]) dnl for Solaris AC_SUBST(LIBNSL) dnl dnl BEGIN: check for qt (using qt.m4)... dnl FUN_CHECK_QT dnl dnl END: check for qt dnl dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(malloc.h unistd.h pwd.h crypt.h limits.h synch.h strings.h string.h locale.h sys/malloc.h sys/types.h sys/sem.h stdarg.h varargs.h sys/time.h sys/timeb.h time.h ) dnl INCLUDES_COMMON="$INCLUDES_COMMON $USER_INCLUDES"; dnl AC_SUBST(all_includes) dnl AC_SUBST(all_libraries) dnl Export this so it can be used in an INCLUDES line in a Makefile.am... AC_SUBST(INCLUDES_COMMON) if test "x$fastvalidate" = "xtrue"; then AC_DEFINE(FAST_HANDLE_VALIDATE) fi if test "x$handlemap" = "xtrue"; then AC_DEFINE(WITH_HANDLE_REDIRECT) fi dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T AC_STRUCT_TM AC_TYPE_UID_T AC_HEADER_DIRENT dnl Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_VPRINTF AC_CHECK_FUNCS( putenv socket strdup strstr setenv setlocale strchr ) dnl LIB_VERSION="1:0:1" dnl AC_SUBST(LIB_VERSION) dnl We use the following version format to make some qmake friendly code happy... CFLAGS="$CFLAGS -DV_MAJOUR=1 -DV_MINOR=0 -DV_RELEASE=1" CXXFLAGS="$CXXFLAGS -DV_MAJOUR=1 -DV_MINOR=0 -DV_RELEASE=1" AC_OUTPUT( Makefile \ ini/Makefile \ odbcinstQ4/Makefile \ gtrtstQ4/Makefile \ ODBCCreateDataSourceQ4/Makefile \ ODBCManageDataSourcesQ4/Makefile \ ODBCTestQ4/Makefile )