Changeset 37668


Ignore:
Timestamp:
Mar 9, 2017, 3:21:01 PM (7 years ago)
Author:
Even Rouault
Message:

configure: warn about --without-static-proj and --with-fgdb with FileGDBAPI v1.5

Location:
trunk/gdal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/configure

    r37357 r37668  
    2526725267
    2526825268FGDB_ENABLED=no
     25269FGDB_LIB=
    2526925270
    2527025271if test "$with_fgdb" = "no" ; then
     
    2532425325    as_fn_error $? "not found." "$LINENO" 5
    2532525326  fi
     25327
     25328fi
     25329
     25330if test "$FGDB_LIB" != ""; then
     25331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pj_datums in -lFileGDBAPI" >&5
     25332$as_echo_n "checking for pj_datums in -lFileGDBAPI... " >&6; }
     25333if ${ac_cv_lib_FileGDBAPI_pj_datums+:} false; then :
     25334  $as_echo_n "(cached) " >&6
     25335else
     25336  ac_check_lib_save_LIBS=$LIBS
     25337LIBS="-lFileGDBAPI $FGDB_LIB $LIBS"
     25338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     25339/* end confdefs.h.  */
     25340
     25341/* Override any GCC internal prototype to avoid an error.
     25342   Use char because int might match the return type of a GCC
     25343   builtin and then its argument prototype would still apply.  */
     25344#ifdef __cplusplus
     25345extern "C"
     25346#endif
     25347char pj_datums ();
     25348int
     25349main ()
     25350{
     25351return pj_datums ();
     25352  ;
     25353  return 0;
     25354}
     25355_ACEOF
     25356if ac_fn_c_try_link "$LINENO"; then :
     25357  ac_cv_lib_FileGDBAPI_pj_datums=yes
     25358else
     25359  ac_cv_lib_FileGDBAPI_pj_datums=no
     25360fi
     25361rm -f core conftest.err conftest.$ac_objext \
     25362    conftest$ac_exeext conftest.$ac_ext
     25363LIBS=$ac_check_lib_save_LIBS
     25364fi
     25365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FileGDBAPI_pj_datums" >&5
     25366$as_echo "$ac_cv_lib_FileGDBAPI_pj_datums" >&6; }
     25367if test "x$ac_cv_lib_FileGDBAPI_pj_datums" = xyes; then :
     25368  FGDB_HAS_PROJ4=yes
     25369else
     25370  FGDB_HAS_PROJ4=no
     25371fi
    2532625372
    2532725373fi
     
    3658836634$as_echo "$as_me: WARNING: --with-libxml2 and --with-fgdb are both available. There might be some incompatibility between system libxml2 and the embedded copy within libFileGDBAPI" >&2;}
    3658936635fi
     36636
     36637if test "$PROJ_STATIC" = "no" -a "$FGDB_ENABLED" = "yes" -a "$FGDB_HAS_PROJ4" = "yes"; then
     36638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-static-proj and --with-fgdb are both available. There might be some incompatibility between system libproj and the embedded copy within libFileGDBAPI" >&5
     36639$as_echo "$as_me: WARNING: --without-static-proj and --with-fgdb are both available. There might be some incompatibility between system libproj and the embedded copy within libFileGDBAPI" >&2;}
     36640fi
  • trunk/gdal/configure.in

    r37357 r37668  
    25722572
    25732573FGDB_ENABLED=no
     2574FGDB_LIB=
    25742575
    25752576if test "$with_fgdb" = "no" ; then
     
    26222623  fi
    26232624
     2625fi
     2626
     2627if test "$FGDB_LIB" != ""; then
     2628  dnl pj_datums is not a function but an object, but for linking that doesn't matter.
     2629  AC_CHECK_LIB(FileGDBAPI,pj_datums,FGDB_HAS_PROJ4=yes,FGDB_HAS_PROJ4=no,$FGDB_LIB)
    26242630fi
    26252631
     
    54915497    AC_MSG_WARN([--with-libxml2 and --with-fgdb are both available. There might be some incompatibility between system libxml2 and the embedded copy within libFileGDBAPI])
    54925498fi
     5499
     5500dnl FileGDB v1.5
     5501if test "$PROJ_STATIC" = "no" -a "$FGDB_ENABLED" = "yes" -a "$FGDB_HAS_PROJ4" = "yes"; then
     5502    AC_MSG_WARN([--without-static-proj and --with-fgdb are both available. There might be some incompatibility between system libproj and the embedded copy within libFileGDBAPI])
     5503fi
Note: See TracChangeset for help on using the changeset viewer.