Changeset 3455 for trunk/configure.ac

Show
Ignore:
Timestamp:
04/02/08 05:44:12 (9 months ago)
Author:
alonbl
Message:

Rename PC/SC library into PC/SC provider.
Sync symbols between configuration and source.
Put default provider in opensc.conf, opensc-tool.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r3453 r3455  
    485485                case "${host}" in 
    486486                        *-*-darwin*) 
    487                                 with_pcsc_provider="${full_usrlibdir}/libpcsclite.so" 
     487                                DEFAULT_PCSC_PROVIDER="${full_usrlibdir}/libpcsclite.so" 
    488488                        ;; 
    489489                        *-mingw32*|*-winnt*|*-cygwin*) 
    490                                 with_pcsc_provider="winscard.dll" 
     490                                DEFAULT_PCSC_PROVIDER="winscard.dll" 
    491491                        ;; 
    492492                        *) 
    493                                 with_pcsc_provider="${full_usrlibdir}/libpcsclite.so" 
     493                                DEFAULT_PCSC_PROVIDER="${full_usrlibdir}/libpcsclite.so" 
    494494                        ;; 
    495495                esac 
    496         fi 
    497         AC_DEFINE_UNQUOTED([PCSC_DEFAULT_LIBRARY_NAME], ["${with_pcsc_provider}"], [Default PC/SC library]) 
     496        else 
     497                DEFAULT_PCSC_PROVIDER="${with_pcsc_provider}" 
     498        fi 
     499        AC_DEFINE_UNQUOTED([DEFAULT_PCSC_PROVIDER], ["${DEFAULT_PCSC_PROVIDER}"], [Default PC/SC provider]) 
    498500fi 
    499501 
     
    534536        OPTIONAL_OPENCT_LIBS="${OPENCT_LIBS}" 
    535537fi 
    536 test "${enable_pcsc}" = "yes" && OPENSC_FEATURES="${OPENSC_FEATURES} pcsc" 
     538test "${enable_pcsc}" = "yes" && OPENSC_FEATURES="${OPENSC_FEATURES} pcsc(${DEFAULT_PCSC_PROVIDER})" 
    537539test "${enable_nsplugin}" = "yes" && OPENSC_FEATURES="${OPENSC_FEATURES} nsplugin" 
    538540 
     
    559561AC_SUBST([OPENSC_LT_OLDEST]) 
    560562AC_SUBST([WIN_LIBPREFIX]) 
     563AC_SUBST([DEFAULT_PCSC_PROVIDER]) 
    561564AC_SUBST([OPTIONAL_ZLIB_CFLAGS]) 
    562565AC_SUBST([OPTIONAL_ZLIB_LIBS]) 
     
    638641NSPlugin support:        ${enable_nsplugin} 
    639642 
    640 PC/SC default provider:  ${with_pcsc_provider} 
     643PC/SC default provider:  ${DEFAULT_PCSC_PROVIDER} 
    641644pinentry:                ${with_pinentry} 
    642645