Changeset 36 for NEWT0/trunk/configure

Show
Ignore:
Timestamp:
07/17/05 21:26:55 (3 years ago)
Author:
gnue
Message:

add internal text encoding convert for NSOF
add file "NewtIconv.c", "NewtIconv.h"
add link libiconv

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/configure

    r19 r36  
    312312#endif" 
    313313 
    314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBREGEX NEWT_LDIMPORT NEWT_LDFLAGS LIBNEWT_LDSHARED LINK_NEWT_APP_ DLEXT LTLIBOBJS' 
     314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP LIBOBJS LIBREGEX NEWT_LDIMPORT NEWT_LDFLAGS LIBNEWT_LDSHARED LINK_NEWT_APP_ DLEXT LTLIBOBJS' 
    315315ac_subst_files='' 
    316316 
     
    25572557fi 
    25582558 
     2559 
     2560# 
     2561ac_aux_dir= 
     2562for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 
     2563  if test -f $ac_dir/install-sh; then 
     2564    ac_aux_dir=$ac_dir 
     2565    ac_install_sh="$ac_aux_dir/install-sh -c" 
     2566    break 
     2567  elif test -f $ac_dir/install.sh; then 
     2568    ac_aux_dir=$ac_dir 
     2569    ac_install_sh="$ac_aux_dir/install.sh -c" 
     2570    break 
     2571  elif test -f $ac_dir/shtool; then 
     2572    ac_aux_dir=$ac_dir 
     2573    ac_install_sh="$ac_aux_dir/shtool install -c" 
     2574    break 
     2575  fi 
     2576done 
     2577if test -z "$ac_aux_dir"; then 
     2578  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 
     2579echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 
     2580   { (exit 1); exit 1; }; } 
     2581fi 
     2582ac_config_guess="$SHELL $ac_aux_dir/config.guess" 
     2583ac_config_sub="$SHELL $ac_aux_dir/config.sub" 
     2584ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 
     2585 
     2586# Make sure we can run config.sub. 
     2587$ac_config_sub sun4 >/dev/null 2>&1 || 
     2588  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 
     2589echo "$as_me: error: cannot run $ac_config_sub" >&2;} 
     2590   { (exit 1); exit 1; }; } 
     2591 
     2592echo "$as_me:$LINENO: checking build system type" >&5 
     2593echo $ECHO_N "checking build system type... $ECHO_C" >&6 
     2594if test "${ac_cv_build+set}" = set; then 
     2595  echo $ECHO_N "(cached) $ECHO_C" >&6 
     2596else 
     2597  ac_cv_build_alias=$build_alias 
     2598test -z "$ac_cv_build_alias" && 
     2599  ac_cv_build_alias=`$ac_config_guess` 
     2600test -z "$ac_cv_build_alias" && 
     2601  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 
     2602echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 
     2603   { (exit 1); exit 1; }; } 
     2604ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 
     2605  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 
     2606echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 
     2607   { (exit 1); exit 1; }; } 
     2608 
     2609fi 
     2610echo "$as_me:$LINENO: result: $ac_cv_build" >&5 
     2611echo "${ECHO_T}$ac_cv_build" >&6 
     2612build=$ac_cv_build 
     2613build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     2614build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     2615build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     2616 
     2617 
     2618echo "$as_me:$LINENO: checking host system type" >&5 
     2619echo $ECHO_N "checking host system type... $ECHO_C" >&6 
     2620if test "${ac_cv_host+set}" = set; then 
     2621  echo $ECHO_N "(cached) $ECHO_C" >&6 
     2622else 
     2623  ac_cv_host_alias=$host_alias 
     2624test -z "$ac_cv_host_alias" && 
     2625  ac_cv_host_alias=$ac_cv_build_alias 
     2626ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 
     2627  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 
     2628echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 
     2629   { (exit 1); exit 1; }; } 
     2630 
     2631fi 
     2632echo "$as_me:$LINENO: result: $ac_cv_host" >&5 
     2633echo "${ECHO_T}$ac_cv_host" >&6 
     2634host=$ac_cv_host 
     2635host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     2636host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     2637host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     2638 
     2639 
     2640echo "$as_me:$LINENO: checking target system type" >&5 
     2641echo $ECHO_N "checking target system type... $ECHO_C" >&6 
     2642if test "${ac_cv_target+set}" = set; then 
     2643  echo $ECHO_N "(cached) $ECHO_C" >&6 
     2644else 
     2645  ac_cv_target_alias=$target_alias 
     2646test "x$ac_cv_target_alias" = "x" && 
     2647  ac_cv_target_alias=$ac_cv_host_alias 
     2648ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 
     2649  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 
     2650echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 
     2651   { (exit 1); exit 1; }; } 
     2652 
     2653fi 
     2654echo "$as_me:$LINENO: result: $ac_cv_target" >&5 
     2655echo "${ECHO_T}$ac_cv_target" >&6 
     2656target=$ac_cv_target 
     2657target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
     2658target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
     2659target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
     2660 
     2661 
     2662# The aliases save the names the user supplied, while $host etc. 
     2663# will get canonicalized. 
     2664test -n "$target_alias" && 
     2665  test "$program_prefix$program_suffix$program_transform_name" = \ 
     2666    NONENONEs,x,x, && 
     2667  program_prefix=${target_alias}- 
     2668 
     2669case "$target_os" in 
     2670  freebsd*) 
     2671    export LDFLAGS=-L/usr/local/lib 
     2672    export CPPFLAGS=-I/usr/local/include 
     2673    ;; 
     2674esac 
     2675 
     2676 
    25592677# Checks for libraries. 
     2678#AC_CHECK_LIB(iconv, iconv_open) 
     2679 
     2680SAVE_LIBS="$LIBS" 
     2681LIBS="$LIBS -liconv" 
     2682cat >conftest.$ac_ext <<_ACEOF 
     2683/* confdefs.h.  */ 
     2684_ACEOF 
     2685cat confdefs.h >>conftest.$ac_ext 
     2686cat >>conftest.$ac_ext <<_ACEOF 
     2687/* end confdefs.h.  */ 
     2688 
     2689    #include <stdlib.h> 
     2690    #include <iconv.h> 
     2691 
     2692int 
     2693main () 
     2694{ 
     2695 
     2696    iconv_t cd = iconv_open("", ""); 
     2697    iconv(cd, NULL, NULL, NULL, NULL); 
     2698    iconv_close(cd); 
     2699 
     2700  ; 
     2701  return 0; 
     2702} 
     2703_ACEOF 
     2704rm -f conftest.$ac_objext conftest$ac_exeext 
     2705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 
     2706  (eval $ac_link) 2>conftest.er1 
     2707  ac_status=$? 
     2708  grep -v '^ *+' conftest.er1 >conftest.err 
     2709  rm -f conftest.er1 
     2710  cat conftest.err >&5 
     2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2712  (exit $ac_status); } && 
     2713     { ac_try='test -z "$ac_c_werror_flag" 
     2714             || test ! -s conftest.err' 
     2715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     2716  (eval $ac_try) 2>&5 
     2717  ac_status=$? 
     2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2719  (exit $ac_status); }; } && 
     2720     { ac_try='test -s conftest$ac_exeext' 
     2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     2722  (eval $ac_try) 2>&5 
     2723  ac_status=$? 
     2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     2725  (exit $ac_status); }; }; then 
     2726  cat >>confdefs.h <<\_ACEOF 
     2727#define HAVE_LIBICONV 1 
     2728_ACEOF 
     2729 
     2730else 
     2731  echo "$as_me: failed program was:" >&5 
     2732sed 's/^/| /' conftest.$ac_ext >&5 
     2733 
     2734LIBS="$SAVE_LIBS" 
     2735fi 
     2736rm -f conftest.err conftest.$ac_objext \ 
     2737      conftest$ac_exeext conftest.$ac_ext 
    25602738 
    25612739# Checks for header files. 
     
    43944572 
    43954573 
    4396 ac_aux_dir= 
    4397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 
    4398   if test -f $ac_dir/install-sh; then 
    4399     ac_aux_dir=$ac_dir 
    4400     ac_install_sh="$ac_aux_dir/install-sh -c" 
    4401     break 
    4402   elif test -f $ac_dir/install.sh; then 
    4403     ac_aux_dir=$ac_dir 
    4404     ac_install_sh="$ac_aux_dir/install.sh -c" 
    4405     break 
    4406   elif test -f $ac_dir/shtool; then 
    4407     ac_aux_dir=$ac_dir 
    4408     ac_install_sh="$ac_aux_dir/shtool install -c" 
    4409     break 
    4410   fi 
    4411 done 
    4412 if test -z "$ac_aux_dir"; then 
    4413   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 
    4414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 
    4415    { (exit 1); exit 1; }; } 
    4416 fi 
    4417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 
    4418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 
    4419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 
    4420  
    4421 # Make sure we can run config.sub. 
    4422 $ac_config_sub sun4 >/dev/null 2>&1 || 
    4423   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 
    4424 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 
    4425    { (exit 1); exit 1; }; } 
    4426  
    4427 echo "$as_me:$LINENO: checking build system type" >&5 
    4428 echo $ECHO_N "checking build system type... $ECHO_C" >&6 
    4429 if test "${ac_cv_build+set}" = set; then 
    4430   echo $ECHO_N "(cached) $ECHO_C" >&6 
    4431 else 
    4432   ac_cv_build_alias=$build_alias 
    4433 test -z "$ac_cv_build_alias" && 
    4434   ac_cv_build_alias=`$ac_config_guess` 
    4435 test -z "$ac_cv_build_alias" && 
    4436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 
    4437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 
    4438    { (exit 1); exit 1; }; } 
    4439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 
    4440   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 
    4441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 
    4442    { (exit 1); exit 1; }; } 
    4443  
    4444 fi 
    4445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 
    4446 echo "${ECHO_T}$ac_cv_build" >&6 
    4447 build=$ac_cv_build 
    4448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    4449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    4450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    4451  
    4452  
    4453 echo "$as_me:$LINENO: checking host system type" >&5 
    4454 echo $ECHO_N "checking host system type... $ECHO_C" >&6 
    4455 if test "${ac_cv_host+set}" = set; then 
    4456   echo $ECHO_N "(cached) $ECHO_C" >&6 
    4457 else 
    4458   ac_cv_host_alias=$host_alias 
    4459 test -z "$ac_cv_host_alias" && 
    4460   ac_cv_host_alias=$ac_cv_build_alias 
    4461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 
    4462   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 
    4463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 
    4464    { (exit 1); exit 1; }; } 
    4465  
    4466 fi 
    4467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 
    4468 echo "${ECHO_T}$ac_cv_host" >&6 
    4469 host=$ac_cv_host 
    4470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    4471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    4472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    4473  
    4474  
    4475 echo "$as_me:$LINENO: checking target system type" >&5 
    4476 echo $ECHO_N "checking target system type... $ECHO_C" >&6 
    4477 if test "${ac_cv_target+set}" = set; then 
    4478   echo $ECHO_N "(cached) $ECHO_C" >&6 
    4479 else 
    4480   ac_cv_target_alias=$target_alias 
    4481 test "x$ac_cv_target_alias" = "x" && 
    4482   ac_cv_target_alias=$ac_cv_host_alias 
    4483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 
    4484   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 
    4485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 
    4486    { (exit 1); exit 1; }; } 
    4487  
    4488 fi 
    4489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5 
    4490 echo "${ECHO_T}$ac_cv_target" >&6 
    4491 target=$ac_cv_target 
    4492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 
    4493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 
    4494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 
    4495  
    4496  
    4497 # The aliases save the names the user supplied, while $host etc. 
    4498 # will get canonicalized. 
    4499 test -n "$target_alias" && 
    4500   test "$program_prefix$program_suffix$program_transform_name" = \ 
    4501     NONENONEs,x,x, && 
    4502   program_prefix=${target_alias}- 
    4503  
    4504  
     4574# 
     4575# AC_CANONICAL_SYSTEM 
    45054576 
    45064577case "$target_os" in 
     
    51865257s,@LEXLIB@,$LEXLIB,;t t 
    51875258s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 
    5188 s,@CPP@,$CPP,;t t 
    5189 s,@EGREP@,$EGREP,;t t 
    5190 s,@LIBOBJS@,$LIBOBJS,;t t 
    51915259s,@build@,$build,;t t 
    51925260s,@build_cpu@,$build_cpu,;t t 
     
    52015269s,@target_vendor@,$target_vendor,;t t 
    52025270s,@target_os@,$target_os,;t t 
     5271s,@CPP@,$CPP,;t t 
     5272s,@EGREP@,$EGREP,;t t 
     5273s,@LIBOBJS@,$LIBOBJS,;t t 
    52035274s,@LIBREGEX@,$LIBREGEX,;t t 
    52045275s,@NEWT_LDIMPORT@,$NEWT_LDIMPORT,;t t